Skip to content

How to create a composition of values from a secret store to a new value in a Kubernetes secret? #1957

@bryantidd

Description

@bryantidd

I have a username and password in a secret in an external secret store, I want to generate from that a database connection string as a key in a Kubernetes secret...

So I have something like:
apiVersion: secrets-store.csi.x-k8s.io/v1 kind: SecretProviderClass metadata: name: coder-db-url spec: provider: aws parameters: region: us-east-2 objects: | - objectName: "someArn" jmesPath: - path: username objectAlias: dbusername - path: password objectAlias: dbpassword secretObjects: - secretName: coder-db-url type: Opaque data: - key: url objectAlias: ????
I want a key url with a value like: postgres://$dbusername:$dbpassword@somehost:someport/database?sslmode=disable

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs-triageIndicates an issue or PR lacks a `triage/foo` label and requires one.

    Type

    No type

    Projects

    Status

    Subprojects - Needs Triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions