Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Invalid --set format error when trying to set deeply nested value #1375

@sylvorg

Description

@sylvorg

Hello!

Using the following command on Windows 11:

sops --input-type yaml --output-type yaml --age [...] --set '["apps"]["tls"]["automation"]["policies"][0]["issuers"][0]["challeneges"]["dns"]["provider"] "api_token"' \\wsl.localhost\NixOS\mnt\wsl\sylvorg\sylvorg\caddy\argus

And the following yaml file argus:

admin:
  disabled: true
apps:
  [...]
  tls:
    automation:
      policies:
        - subjects:
            - '*.syvl.org'
            - syvl.org
          issuers:
            - email: [email protected]
              module: acme
              challenges:
                dns:
                  provider:
                    api_token: [...]
                    name: cloudflare

I'm getting the error in the title; however, the set command seems to be following the format here.

Any help would be greatly appreciated!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions