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

introduce a --pristine flag to sops exec-env #912

Merged
merged 1 commit into from
Dec 15, 2023

Conversation

e-nikolov
Copy link
Contributor

@e-nikolov e-nikolov commented Jul 28, 2021

The purpose of this flag is to modify the exec-env's behaviour to only insert decrypted secrets into the environment of the supplied command, without forwarding any of the existing environment variables.

This is useful in cases where the environment needs to be sanitized from the existing environment variables.

This feature is inspired by envconsul's --pristine flag

@hiddeco hiddeco changed the base branch from master to main July 6, 2023 20:55
@felixfontein
Copy link
Contributor

@e-nikolov could you please rebase, sign-off on the commit, force-push the result? I think this would be a useful addition.

@e-nikolov e-nikolov force-pushed the add-pristine-flag-to-exec-env branch 2 times, most recently from 4b64d13 to 62ab52d Compare September 16, 2023 14:52
@e-nikolov
Copy link
Contributor Author

@felixfontein Done

Copy link
Contributor

@felixfontein felixfontein left a comment

Choose a reason for hiding this comment

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

Looks good to me.

@hiddeco hiddeco force-pushed the add-pristine-flag-to-exec-env branch from f7b274c to 29430c9 Compare December 15, 2023 20:52
@hiddeco hiddeco force-pushed the add-pristine-flag-to-exec-env branch from 29430c9 to 2ad1cfd Compare December 15, 2023 20:53
@hiddeco hiddeco added this to the v3.9.0 milestone Dec 15, 2023
@hiddeco hiddeco merged commit 0f19e7d into getsops:main Dec 15, 2023
9 checks passed
@felixfontein
Copy link
Contributor

@e-nikolov thanks for your contribution!

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

Successfully merging this pull request may close these issues.

3 participants