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

Feature request: encryption (or failure) based on entropy #1557

Open
cgetzen opened this issue Jul 12, 2024 · 0 comments
Open

Feature request: encryption (or failure) based on entropy #1557

cgetzen opened this issue Jul 12, 2024 · 0 comments

Comments

@cgetzen
Copy link

cgetzen commented Jul 12, 2024

https://github.com/getsops/sops?tab=readme-ov-file#encrypting-only-parts-of-a-file has many ways to partially encrypt files.

One risk is that the regex, prefix, or postfix doesn't account for new secrets, causing them to mistakenly be committed in plaintext.

I'd like for sops to either:

  • encrypt data that looks like a secret, regardless of its key
  • cause a failure when a secret-looking string is not encrypted (with a corresponding --ignore flag)

https://github.com/Yelp/detect-secrets has some definitions of entropy that could be useful references: Base64HighEntropyString and HexHighEntropyString.

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

No branches or pull requests

1 participant