Cannot override configuration settings
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 23.1k
- Forks
- 1.1k
- Avg merge
- 1d 11h
- Merged PRs (30d)
- 9
Description
Suppose I have a .sops.yaml config file with these settings:
creation_rules:
- pgp: ...
encrypted_regex: '^(data|stringData)$'
I would like unset the encrypted_regex for a single ad-hoc file encryption. At the moment, it's not possible to do so without changing the config file. If I use --encrypted-regex='' command line option, instead of unsetting it, the regex is taken from the config file instead.
Proposed changes:
Command line options would always take precedence, specifying --encrypted-regex="" will unset the settings from the config file.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing how the .sops.yaml encrypted_regex setting is combined with the --encrypted-regex command-line option. Verify the behavior for an empty command-line value, and consider the work complete when that value overrides and unsets the configuration setting for a single file without requiring changes to .sops.yaml.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- cli, devops, security
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100