GitLab Secrets Manager
Best practices to keep secrets out of GitLab repositories

Best practices to keep secrets out of GitLab repositories

10/31/2024 · Matt Coons

What this post added

This post details best practices for preventing secrets from being exposed in public GitLab repositories. It emphasizes limiting public visibility of groups and projects, securing CI secrets by using encryption container technologies like GCP Secret Manager, AWS KMS, and HashiCorp Vault, and leveraging GitLab's built-in secret detection capabilities: secret push protection, pipeline secret detection, and client-side secret detection. It also provides guidance on what to do if credentials are accidentally leaked, including resetting them and revoking tokens.

Read the original post ↗