GitLab Secrets Manager: Govern... Note
GitLab

GitLab Secrets Manager: Govern secrets like your code

GitLab Secrets Manager offers enhanced credential security by integrating secrets with code permissions and audit trails. This feature, now generally available for Premium and Ultimate tiers, aims to reduce the risk of compromised credentials in CI/CD pipelines. It addresses vulnerabilities associated with storing raw credentials in unscoped CI/CD variables or managing separate vault solutions. Secrets Manager scopes access based on job context, including project, branch, and environment, ensuring credentials are only available to authorized jobs. Declared using the secrets: keyword in .gitlab-ci.yml, secrets are injected into temporary files, masked in logs, and discarded after job completion. Secrets are encrypted at rest with AES-256-GCM and retrieved using short-lived tokens for enhanced security. This system simplifies credential management by centralizing secrets for pipelines, Kubernetes, and infrastructure as code. It strengthens supply chain security by precisely controlling access to sensitive information. The platform provides granular control over who can access, write, or delete secrets, mirroring code permission models. Secrets Manager integrates with various runtime tools like Kubernetes, Terraform, and OpenBao, offering a unified store. This feature is a paid add-on, priced per secret stored and per read operation, with a free trial available for eligible users.