helm-charts icon indicating copy to clipboard operation
helm-charts copied to clipboard

Add ability to provide secretKey via reference

Open BlackDark opened this issue 1 year ago • 3 comments

Currently only directly supported via setting plain value in values file.

BlackDark avatar Jun 05 '23 14:06 BlackDark

@BlackDark have an example of what you are looking for?

nniehoff avatar Jun 05 '23 14:06 nniehoff

Yes, similar to the db password etc.

nautobot:
	secretKey:
		existingSecret: name-of-secret
		existingSecretKey: key

# currently only this option works
nautobot:
	secretKey: blablamagicsecret
# could go via sops and encrypt the file / value but why not using existing kubernetes features

BlackDark avatar Jun 05 '23 14:06 BlackDark

ah ok, I think I'm following that is the secret key for django to be passed to Nautobot... I had my head stuck on a kubernetes secret and key... more coffee helped... Yeah this is a good and simple add thanks for the suggestion...

nniehoff avatar Jun 05 '23 16:06 nniehoff

Hello @BlackDark. This is now supported from the release 2.1.0 (https://docs.nautobot.com/projects/helm-charts/en/stable/advanced-features/existing-secrets/).

I am closing the issue. If you find that the behavior is not what you expected, feel free to open a new issue.

ubajze avatar May 28 '24 08:05 ubajze