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

Sops support #28

Merged
merged 57 commits into from
Oct 2, 2024
Merged

Sops support #28

merged 57 commits into from
Oct 2, 2024

Conversation

tvangundy
Copy link
Contributor

Add sops command support

@rmvangun
Copy link
Contributor

rmvangun commented Sep 29, 2024

I don't think there will be a windsor sops command.

All that the sops helper should do is decrypt an encrypted SOPS file in the context config, and inject those as environment variables. It should specifically implement the GetEnvVars function.

If you have something like contexts/local/secrets.enc.yaml (or some other pattern), it should decrypt the contents, so that if you had something like:

LOCALSTACK_API_KEY: abcd1234

it would inject that in to your environment when you're on that context.

Have a look at how this is implemented in the original Python.

@tvangundy tvangundy requested a review from rmvangun October 1, 2024 20:37
cmd/sops.go Outdated Show resolved Hide resolved
internal/helpers/sops_helper.go Show resolved Hide resolved
internal/helpers/sops_helper.go Show resolved Hide resolved
internal/helpers/sops_helper_test.go Show resolved Hide resolved
@tvangundy tvangundy merged commit a3116c9 into main Oct 2, 2024
5 checks passed
@tvangundy tvangundy deleted the sops-support branch October 2, 2024 22:38
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.

2 participants