question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Helm chart: cannot login with admin credentials

See original GitHub issue

It seems that there isn’t a possible way to log into postgres with the “admin” user defined in the Kubernetes helm chart here.

By default here are the users once I log in with -U postgres password tea.

postgres=# \du
                                           List of roles
 Role name  |                         Attributes                         |        Member of
------------+------------------------------------------------------------+-------------------------
 admin      | Create role, Create DB, Cannot login                       | {}
 pgq_admin  | Cannot login                                               | {pgq_reader,pgq_writer}
 pgq_reader | Cannot login                                               | {}
 pgq_writer | Cannot login                                               | {}
 postgres   | Superuser, Create role, Create DB, Replication, Bypass RLS | {}
 robot_zmon | Cannot login                                               | {}
 standby    | Replication                                                | {}

It doesn’t seem like there is an environment variable for PGPASSWORD_ADMIN either in the docs. Anywhere I can help with this issue I’d gladly open a PR as well.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
joaogbcravocommented, Nov 20, 2018

Thanks for the fast reply. I would suggest then that from the start the admin role shouldn’t have login permissions.

1reaction
ozgunecommented, Sep 25, 2017

I also ran into this issue when I followed the instructions in https://github.com/kubernetes/charts/tree/master/incubator/patroni

The repo says that the admin password is cola. However, when I try to log in as an admin user, I get the following.

root@ubuntu:/# psql -U admin -h my-release-patroni.default.svc.cluster.local postgres
Password for user admin: 
psql: FATAL:  password authentication failed for user "admin"
FATAL:  password authentication failed for user "admin"

The user postgres and password tea works.

Read more comments on GitHub >

github_iconTop Results From Across the Web

FAQ - Argo CD - Declarative GitOps CD for Kubernetes
I forgot the admin password, how do I reset it? How to disable admin user? Argo CD cannot deploy Helm Chart based applications...
Read more >
bitnami.keycloak Cannot login to the admin console after ...
I just installed bitnami/keycloak via the helm chart version, 10.1.6. But when I try to open the admin console on "/admin/master/console/", ...
Read more >
Reset a user's password - GitLab Docs
To reset a user password, you must be an administrator of a self-managed GitLab instance. The user's new password must meet all password...
Read more >
airflow 8.1.2 · airflow-helm/airflow-helm - Artifact Hub
default credentials -- user: admin - password: admin; How to create airflow users? How to authenticate airflow users with LDAP/OAUTH? Documentation ...
Read more >
Bootstrap Password | Rancher Manager
When the admin first logs in to Rancher, the UI shows commands that ... the bootstrap password variable by configuring it in the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found