zalando / zalando/postgres-operator

User Secret should contain connection string

Open
#2,272 5 comments 4 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

idea
Dominant language
Go
Stars
5.2k
Forks
1.1k
Avg merge
2d 16h
Merged PRs (30d)
3

Description

  • 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:

https://github.com/zalando/postgres-operator/blob/0ac5f58fa9991a9640203535c9c54087ac1c75a8/pkg/cluster/k8sres.go#L1814-L1826

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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in pkg/cluster/k8sres.go at generateSingleUserSecret and inspect how the existing user Secret values are assembled. Check the surrounding secret-generation code and determine the expected psql connection-string format, including TLS settings and the namespace in the URL. Done means the Secret also exposes the requested reusable connection-string value.

Written by the indexing model from the issue text.

Assessment

Tech stack
go, kubernetes, postgresql
Domain
databases, infrastructure
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
62/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.