Skip to content

User Secret should contain connection string #2272

Open
@genofire

Description

@genofire
  • Type of issue? feature request

It would be nice, to have also an key with an psql connection string in it, so that this value could easy reuse in application or helm-charts.

affected function generateSingleUserSecret - code is here:

secret := v1.Secret{
ObjectMeta: metav1.ObjectMeta{
Name: c.credentialSecretName(username),
Namespace: pgUser.Namespace,
Labels: lbls,
Annotations: c.annotationsSet(nil),
},
Type: v1.SecretTypeOpaque,
Data: map[string][]byte{
"username": []byte(pgUser.Name),
"password": []byte(pgUser.Password),
},
}

secrets should contain best values (with tls if enabled and namespace in url)

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