Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

secrets-generator file pattern? #276

Open
jetersen opened this issue Jan 30, 2025 · 0 comments
Open

secrets-generator file pattern? #276

jetersen opened this issue Jan 30, 2025 · 0 comments
Labels
kind:enhancement New feature or request

Comments

@jetersen
Copy link

jetersen commented Jan 30, 2025

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
@dosubot dosubot bot added the kind:enhancement New feature or request label Jan 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind:enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant