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

Retrieve list of secrets with only one ResourceName #181

Open
safeops-marboleda opened this issue Sep 23, 2022 · 1 comment
Open

Retrieve list of secrets with only one ResourceName #181

safeops-marboleda opened this issue Sep 23, 2022 · 1 comment
Labels

Comments

@safeops-marboleda
Copy link

TL;DR

Get list of secrets with a wildcard

Design

Proposal
Is it possible to get a list of secrets all together without having to reference every resourceName?
We have a considerable amount of secrets, and it would be easier to do something like:

apiVersion: secrets-store.csi.x-k8s.io/v1
kind: SecretProviderClass
metadata:
  name: app-secrets
spec:
  provider: gcp
  parameters:
    secrets: |
      - resourceName: "projects/$PROJECT_ID/secrets/*/versions/latest"
        path: "*.txt"

Alternatives considered
The alternative would be to have a hundreds of lines in the SecretProviderClass, which difficult to maintain.

@joebowbeer
Copy link

Also see open issue in CSI driver, and similar requests in other providers:

kubernetes-sigs/secrets-store-csi-driver#529

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants