-
Notifications
You must be signed in to change notification settings - Fork 9.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[bitnami/postgresql-ha] Method to set postgres password with other user #2470
Comments
@MikaelSmith Have you looked into the
Let us know if you find any issues setting that option. |
That's only present in the postgresql chart, not the postgresql-ha chart. |
Oh, you're totally right @MikaelSmith. The Bitnami PostgreSQL with Replication Manager Docker image does support the I have created an internal task for making the change. Unfortunately I cannot give an ETA for when we would start working on this. If you would like to contribute the change by copying them from the Bitnami PostgreSQL chart, feel free to do so, we would be glad to review it! |
I have a few questions as I carry the implementation over. I'll raise them in a PR. |
When `postgresql.username` is not `postgres`, a new user is created that only has permissions for the database created with `postgresql.database` and the `postgres` user does not have a password and cannot be accessed remotely. This commit adds the `postgresql.postgresPassword` property that can be used to specify the password for the `postgres` user when `postgresql.username` is set to a different user. Resolves bitnami#2470.
* [bitnami/postgresql-ha] Add documentation for usePasswordFile option The `postgresql.usePasswordFile` option was previously added to mount passwords as a volume rather than in environment variables but was not documented. * [bitnami/postgresql-ha] Add postgresqlPassword option When `postgresql.username` is not `postgres`, a new user is created that only has permissions for the database created with `postgresql.database` and the `postgres` user does not have a password and cannot be accessed remotely. This commit adds the `postgresql.postgresPassword` property that can be used to specify the password for the `postgres` user when `postgresql.username` is set to a different user. Resolves #2470.
This does not seem to be working at the moment, Key does not show up as mounted on the workload. Authentication for postgres user fails.
|
I believe it only works on initial setup, so if the database already exists changes wouldn't be applied. I don't have a ton of experience with this; I believe I had it working at one point, and just ported over what the non-HA versions were doing. |
I just saw this #2061 (comment). |
Which chart:
postgresql-ha 3.1.1
Is your feature request related to a problem? Please describe.
I'm attempting to initialize postgres with a specific user/database, such as with
Doing that means the
postgres
user does not have a password set, as noted in https://github.com/bitnami/bitnami-docker-postgresql-repmgr#creating-a-database-user-on-first-run.My motivation for having access as the postgres user is to do database backups, and to be able to restore a backup to a new cluster. The documented methods for that use ConfigMaps, which have a limit of 1MB (because they're stored in etcd), limiting their use to re-initialize the database from a backup.
Describe the solution you'd like
I'd like to be able to set the
POSTGRESQL_POSTGRES_PASSWORD
setting in the container to provide a password for thepostgres
user when creating a separate database user.I'd also be open to other suggestions on how to do backup/restore.
The text was updated successfully, but these errors were encountered: