Skip to content

Optional customUser.secretKeys #693

@mreiche

Description

@mreiche

Name and Version

postgres:0.12.1

What is the problem this feature will solve?

It is not possible to define the custom user secret key only like:

  customUser:
    name: "my-user"
    database: "my-database"
    existingSecret: "my-external-secret"
    secretKeys:
        password: "psql-user-password"

which will result in:

  - name: CUSTOM_DB
    valueFrom:
      secretKeyRef:
        name: my-external-secret
        key: ''
  - name: CUSTOM_USER
    valueFrom:
      secretKeyRef:
        name: my-external-secret
        key: ''
  - name: CUSTOM_PASSWORD
    valueFrom:
      secretKeyRef:
        name: my-external-secret
        key: psql-user-password

Describe the solution you'd like?

Please make the secretKeys for username and database optional with fallback to the customUser.name and customUser.database.

That makes it a lot more easier to define username and database as convention (by overriding values) and store the actual database user secret in a secret only. Especially when your secret is defined by an ExternalSecretProvider.

What alternatives have you considered?

No response

Additional informations

No response

Affected Helm charts

postgres

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requestpostgresIssues regarding the postgres chart

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions