operator-sample-go icon indicating copy to clipboard operation
operator-sample-go copied to clipboard

Protect credentials in secrets from inadvertent commit

Open timroster opened this issue 2 years ago • 0 comments

When a user needs to place service credentials (e.g. COS) into a secret like operator-database-backup/kubernetes/secret.yaml a good pattern is to use a template file, like cos-secret.template.yaml and then have the user rename to cos-secret.yaml after adding credentials. By adding cos-secret.yaml to .gitignore, there's less risk of having a commit/push expose the credential.

timroster avatar Jun 30 '22 13:06 timroster