Skip to content

secrets-generator file pattern? #276

@jetersen

Description

@jetersen

One improvement to the secrets generator would be to take a file pattern over a list of files.
The file pattern should either be regex or wildcard.

apiVersion: viaduct.ai/v1
kind: ksops
metadata:
  name: secrets-generator
  annotations:
    config.kubernetes.io/function: |
        exec:
          path: ksops
filePatterns:
  - \./.*\.sops\.yaml
  - ./*.sops.yaml

Which works together with how .sops.yaml config file works:

creation_rules:
  - path_regex: .*.sops.yaml
    encrypted_regex: ^(data|stringData)$
    key_groups:
      - age: bob

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions