Skip to content
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] Pgpool connecting without password even provided password in values.yaml file #27063

Closed
venkatne opened this issue Jun 9, 2024 · 8 comments
Assignees
Labels
postgresql-ha solved tech-issues The user has a technical issue about an application

Comments

@venkatne
Copy link

venkatne commented Jun 9, 2024

Name and Version

bitnami/postgresql-ha-14.2.3

What architecture are you using?

amd64

What steps will reproduce the bug?

Deploy postgresha solution with below values and deploy with command helm install -f values.yaml postgresql bitnami/postgresql-ha -n psql

global:
  imageRegistry: ""
  ## E.g.
  ## imagePullSecrets:
  ##   - myRegistryKeySecretName
  ##
  imagePullSecrets: []
  storageClass: ""
  postgresql:
    username: "postgres"
    password: "test1234"
    database: ""
    repmgrUsername: "postgres"
    repmgrPassword: "test1234"
    repmgrDatabase: ""
    existingSecret: ""
  ldap:
    bindpw: ""
    existingSecret: ""
  pgpool:
    adminUsername: "postgres"
    adminPassword: "test1234"
    existingSecret: ""

### Are you using any custom parameters or values?

Yes here is values file 

  postgresql:
    username: "postgres"
    password: "test1234"
    database: ""
    repmgrUsername: "postgres"
    repmgrPassword: "test1234"
    repmgrDatabase: ""
    existingSecret: ""
  ldap:
    bindpw: ""
    existingSecret: ""
  pgpool:
    adminUsername: "postgres"
    adminPassword: "test1234"
    existingSecret: ""

What is the expected behavior?

Service postgresql-postgresql-ha-pgpool should only connect with password test1234 provided in values.yaml but it is connecting with out password authentication

What do you see instead?

Service postgresql-postgresql-ha-pgpool should only connect with password test1234 provided in values.yaml but it is connecting with out password authentication

Additional information

If I deploy with providing values.yaml I see it is working fine, I mean if deployed helm install postgresql bitnami/postgresql-ha -n psql which is working as expected(only able to connect with password generated automatically)

@venkatne venkatne added the tech-issues The user has a technical issue about an application label Jun 9, 2024
@github-actions github-actions bot added the triage Triage is needed label Jun 9, 2024
@javsalgar javsalgar changed the title Pgpool connecting without password even provided password in values.yaml file [bitnami/postgresql-ha] Pgpool connecting without password even provided password in values.yaml file Jun 10, 2024
@github-actions github-actions bot removed the triage Triage is needed label Jun 10, 2024
@github-actions github-actions bot assigned rafariossaa and unassigned javsalgar Jun 10, 2024
@rafariossaa
Copy link
Contributor

Hi,
Sorry for the long delay.
Could you check version >= 14.2.5 ? We fixed a related issue in that version.

Copy link

This Issue has been automatically marked as "stale" because it has not had recent activity (for 15 days). It will be closed if no further activity occurs. Thanks for the feedback.

@github-actions github-actions bot added the stale 15 days without activity label Jul 10, 2024
@venkatne
Copy link
Author

Even with 14.2.7 we still see the same issue!

Copy link

Due to the lack of activity in the last 5 days since it was marked as "stale", we proceed to close this Issue. Do not hesitate to reopen it later if necessary.

@bitnami-bot bitnami-bot closed this as not planned Won't fix, can't repro, duplicate, stale Jul 17, 2024
@venkatne
Copy link
Author

I am seeing the issue with latest release also!

@Nickmman
Copy link
Contributor

Nickmman commented Aug 13, 2024

Hi @rafariossaa Can you please reopen this? Running 14.2.7, the issue is still present:

postgres@tmp-shell:/$ psql -h postgresql-ha-pgpool -U postgres postgres
psql (16.3)
Type "help" for help.

postgres=# \q
postgres@tmp-shell:/$ psql -h postgresql-ha-postgresql -U postgres postgres
Password for user postgres:
psql (16.3)
Type "help" for help.

postgres=# \q
postgres@tmp-shell:/$

@javsalgar javsalgar reopened this Aug 14, 2024
@github-actions github-actions bot added triage Triage is needed and removed solved labels Aug 14, 2024
@javsalgar javsalgar added in-progress and removed stale 15 days without activity labels Aug 14, 2024
@github-actions github-actions bot removed the triage Triage is needed label Aug 14, 2024
@github-actions github-actions bot assigned fmulero and unassigned rafariossaa and carrodher Aug 14, 2024
@fmulero
Copy link
Collaborator

fmulero commented Aug 16, 2024

Please amend me if I am wrong but It seems a consequence of using the same admin user and password for postgresql and the replication manager, which is not a good practice.

@Nickmman
Copy link
Contributor

Nickmman commented Aug 16, 2024

Please amend me if I am wrong but It seems a consequence of using the same admin user and password for postgresql and the replication manager, which is not a good practice.

That does seem to be the case in this scenario, I just tested with a new deployment having individual usernames and passwords for each purpose and I get asked for a password for each test, both in the pgpool service and the regular postgresql service.

Given this information, I think the original issue can be closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
postgresql-ha solved tech-issues The user has a technical issue about an application
Projects
None yet
Development

No branches or pull requests

7 participants