Skip to content
This repository has been archived by the owner on Jul 26, 2022. It is now read-only.

Support mounting existing secrets as files #213

Merged
merged 2 commits into from
Nov 11, 2019

Conversation

Pluies
Copy link
Contributor

@Pluies Pluies commented Nov 11, 2019

Hello 👋
I just realised we need to support mounting a CA file as a secret in this pod to communicate with Vault, which is best done through secrets.
This PR therefore copies the envVarsFromSecret construct, but for files.
I also bumped the chart version, but I'm not sure that's the correct way of doing things - please let me know if I need to do it differently!

  • Florent

@dschaaff
Copy link

I'm currently mounting the vault ca cert using this method. The only piece I'd add is that I had to add the NODE_EXTRA_CA_CERTS environment variable pointing to the mounted file.

@Pluies
Copy link
Contributor Author

Pluies commented Nov 11, 2019

That's what I'm using it for as well; but I left the env var side out of this PR as there's already support for it on the Helm templating side. This keeps the PR generic enough to be used for any other files as needed, and enables this use-case 👍

Copy link
Member

@Flydiverny Flydiverny left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not sure if the version should be changed other than that all good,

@keweilu ?

@keweilu
Copy link
Contributor

keweilu commented Nov 11, 2019

We should not change the chart version in the PR. Once the PR is merged, we can release a new chart to include the changes.

@Flydiverny Flydiverny merged commit ac9b9e2 into external-secrets:master Nov 11, 2019
@keweilu
Copy link
Contributor

keweilu commented Nov 12, 2019

Just released a new chart version which should include those changes

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants