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

Sort SOPS masterkeys so offline decrypt methods are tried first #726

Merged
merged 1 commit into from
Sep 12, 2022

Conversation

bkreitch
Copy link
Contributor

This is to sort master keys so PGP/age keys appear before the others and being used first. Thus if one of local methods is successful we avoid going to remote KMS/HCVault which may not be accessible from specific network and cause unnecessary timeouts or have some other cost.

Originally I've submitted PR to SOPS project as solution for this issue, but as it seems it could be a while till that PR is reviewed and new version is released. And since kustomize-controller has some internal SOPS implementation same thing could be achieved before passing data to SOPS.

@bkreitch bkreitch marked this pull request as ready for review September 10, 2022 13:13
@aryan9600
Copy link
Member

I think it'd be better to get this merged to upstream SOPS rather than here, we have been trying to get rid of all our custom SOPS code by contributing it back upstream. cc: @hiddeco

@bkreitch bkreitch changed the title Sort masterkeys so offline decrypt methods are tried first Sort SOPS masterkeys so offline decrypt methods are tried first Sep 10, 2022
@stefanprodan
Copy link
Member

I'm for merging this, it could take months before the next SOPS release.

@stefanprodan stefanprodan added enhancement New feature or request area/sops SOPS related issues and pull requests labels Sep 12, 2022
@stefanprodan stefanprodan merged commit 8feccf0 into fluxcd:main Sep 12, 2022
@bkreitch bkreitch deleted the try-offline-methods-first branch September 12, 2022 09:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/sops SOPS related issues and pull requests enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants