getsops / getsops/sops

Cannot override configuration settings

Open
#617 1 comment 5 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement help wanted priority/low
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.