Skip to content

Cannot override configuration settings #617

Description

@barlik

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions