You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
Software like matrix-synapse expects a yaml file for the postgres configuration.
The generated secret should be both consumable by postgres (reading from an environment variable) as well as from matrix-synapse.
Describe the solution you'd like
One of the easiest versions to support this would be by something on the lines of templating, aka sed aka helm alike:
Not sure which other ways are there to support one value that needs to be formatted differently.
Additional context
The main problem is that different software is bound, but uses different formatting. Matrix Synapse and postgresql is a good example, but the new libpq feature for managing passwords, which is now used in Django 4.0 is another one:
The secret should contain:
hostname:port:database:username:password
as a value.
The username and password might be generated by the generator, whereas hostname/port/database is likely coming from something like helm/argocd/etc.
However, that file needs to be generated and above solution could solve this, too:
There has not been any activity to this issue in the last 30 days. It will automatically be closed after 7 more days. Remove the stale label to prevent this.
I'm hesitant to add additional complex features that are configurable using annotations (in fact, I'd prefer phasing out annotation support entirely in favour of using CRs).
Maybe we could extend the CR definition to allow templated values? Maybe something like this:
I'm also in favor for CR >> annotations. The template looks great, unfortunately my go skills are not really existing :-(
In regards to the template, I think you meant to refer {{ .data.postgresPassword }}, didn't you?
Is your feature request related to a problem? Please describe.
Software like matrix-synapse expects a yaml file for the postgres configuration.
The generated secret should be both consumable by postgres (reading from an environment variable) as well as from matrix-synapse.
Describe the solution you'd like
One of the easiest versions to support this would be by something on the lines of templating, aka sed aka helm alike:
Describe alternatives you've considered
Not sure which other ways are there to support one value that needs to be formatted differently.
Additional context
The main problem is that different software is bound, but uses different formatting. Matrix Synapse and postgresql is a good example, but the new libpq feature for managing passwords, which is now used in Django 4.0 is another one:
The secret should contain:
as a value.
The username and password might be generated by the generator, whereas hostname/port/database is likely coming from something like helm/argocd/etc.
However, that file needs to be generated and above solution could solve this, too:
The lower two can be injected into the postgres container, pgpass can be injected into the client (f.i. django) container.
See also:
The text was updated successfully, but these errors were encountered: