-
Notifications
You must be signed in to change notification settings - Fork 74
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docs: adding support for privateKey sample #166
Comments
make sure the key isn't rpotected by a passphrase |
You should add the private key to a kubernetes secret and mount it as file or environment var |
@viceice Thanks for the reply, its not protected by passphrase and indeed its working if I mount it as a file using the volumeMounts. However the current chart doesnt support adding the file as a secret file, but instead its only supported to add the file as an environment var. When Ive attempted to do it like this its failed (I assume the issue is with the format of the file vs the env var). |
you should manually create a kubernetes secret and reference it from extraVolumes:
- name: private-key
secret:
secretName: renovate-private-key |
That did the trick, thanks |
Reopen to track docs update to incluse the sample |
should be added here: https://github.com/renovatebot/helm-charts/tree/main/charts/renovate#redis
|
Hello,
Im having trouble adding my custom private key to the container, my setup:
while this solution works on my local machine I cannot deploy it on our live cluster since I will need to upload the private key to all the nodes and that's not secure/scalable.
so far Ive tried this options:
Adding the private key to the secret section replacing newlines with \n characters for each line-
secrets:
RENOVATE_PRIVATE_KEY: "-----BEGIN PGP PRIVATE KEY BLOCK-----\n......"
tried also to add it w/o the /n and it also not working
Both cases were printed the error:
"error": {
"validationError": "Failed to decrypt field npmrc. Please re-encrypt and try again.",
"message": "config-validation",
What is the best approach here to add the private key?
The text was updated successfully, but these errors were encountered: