rknall avatar

GitLab Stack Secrets Manager

If you're running GitLab stack projects with Docker and tired of secrets leaking into .env files or getting committed to repos, this handles the migration to Docker secrets properly. It'll audit your current setup, catch exposures in git, generate secure random values, and help you rotate credentials without breaking things. The skill enforces the core principle of keeping secrets out of compose files and environment variables entirely. Useful when you're inheriting a project with secrets sprawled everywhere or setting up a new stack and want to get the security model right from the start. Saves you from writing the same secret validation scripts again.

GitHub stars
58
last updated
Aug 21, 2026

Install

$ npx -y skills add rknall/claude-skills --skill 'GitLab Stack Secrets Manager' --agent claude-code

Installs into .claude/skills of the current project.

Files

GitLab Stack Secrets Manager

This skill manages secrets for GitLab stack projects, ensuring secrets are stored securely, never exposed in configuration files, and properly integrated with Docker secrets.

When to Use This Skill

Activate this skill when the user requests:

  • Create or manage Docker secrets
  • Migrate environment variables to Docker secrets
  • Validate secret configuration and permissions
  • Audit secret usage and detect leaks
  • Ensure secrets aren't in .env or docker-compose.yml
  • Check if secrets are exposed in git
  • Generate secure random secrets
  • Rotate existing secrets
  • Fix secret-related security issues

Core Security Principles

CRITICAL RULES - Never violated:

  1. No Secrets in .env: Secrets MUST NEVER be in .env file
  2. No Secrets in docker-compose.yml: No plaintext secrets in environment variables
  3. ./secrets Directory: All secrets in ./secrets with 700 permissions
  4. Secret Files: Individual files with 600 permissions
  5. Git Protection: ./secrets/* in .gitignore, never committed
  6. Proper Ownership: All files owned by Docker user (not root)
  7. Docker Secrets Only: Use Docker secrets mechanism exclusively

Sponsors

Details

Repository
github.com/rknall/claude-skills
Categories
DevOps & CI/CD, Git & Pull Requests, Mobile Development
First seen
Jun 3, 2026

More from rknall/claude-skills

All 9
1rknall avatarGitLab Stack Validatorrknall/claude-skillsValidates GitLab stack projects before deployment, ensuring proper architecture patterns, directory structure, secrets management, .env configuration, and Docke0skills.sh installs
2sickn33 avatardocker-expertsickn33/antigravity-awesome-skillsAdvanced Docker containerization expert for multi-stage builds, security hardening, and production deployment patterns.23.5Kskills.sh installs
3jeffallan avatarkubernetes-specialistjeffallan/claude-skillsUse when deploying or managing Kubernetes workloads. Invoke to create deployment manifests, configure pod security policies, set up service accounts, define net14.6Kskills.sh installs
4hashicorp avatarterraform-testhashicorp/agent-skillsComprehensive guide for writing and running Terraform tests. Use when creating test files (.tftest.hcl), writing test scenarios with run blocks, validating infr9.2Kskills.sh installs
5anthropics avatardeploy-checklistanthropics/knowledge-work-pluginsPre-deployment verification checklist. Use when about to ship a release, deploying a change with database migrations or feature flags, verifying CI status and a5.8Kskills.sh installs
6claude-office-skills avatardata-pipelineclaude-office-skills/skillsData pipeline and ETL automation - extract, transform, load workflows for data integration and analytics5Kskills.sh installs