[go: nahoru, domu]

Skip to content
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

Configuration Secrets from Environment Variables #373

Open
michaelquigley opened this issue Jul 18, 2023 · 1 comment
Open

Configuration Secrets from Environment Variables #373

michaelquigley opened this issue Jul 18, 2023 · 1 comment
Assignees
Labels
epic Top-level marquee features feature New feature description spike Spikes
Milestone

Comments

@michaelquigley
Copy link
Collaborator

Once cf includes support for merging environment variables with a bound config, we'll be able to inject configuration from the environment.

@michaelquigley michaelquigley self-assigned this Jul 18, 2023
@michaelquigley michaelquigley added spike Spikes feature New feature description labels Jul 18, 2023
@michaelquigley michaelquigley added this to the v0.5 milestone Jul 18, 2023
@qrkourier
Copy link
Member

One way this will reduce friction and accelerate the proliferation of interesting zrok configurations is that examples can be more freely shared without the admin needing first to sanitize the YAML.

Currently, it's necessary to either sanitize the configs or employ a templating system to avoid commiting secrets.

Sanitization example

docker run -i --rm mikefarah/yq '(.oauth.hash_key, .oauth.providers[0].client_id, .oauth.providers[0].client_secret) = ""' < ./zrok_etc/frontend.yml | tee ./zrok_frontend.scrubbed.yml

Templating example

source .env; 
for ENVSUBST in *.envsubst; do 
    envsubst < $ENVSUBST > ${ENVSUBST%.envsubst}; 
done

@michaelquigley michaelquigley added the epic Top-level marquee features label Aug 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
epic Top-level marquee features feature New feature description spike Spikes
Projects
Development

No branches or pull requests

2 participants