Skip to content

Unable to connect application user to acid-minimal-cluster due to pg_hba.conf  #2287

Open
@CaptTofu

Description

@CaptTofu

Please, answer some short questions which should help us to understand your problem / question better?

  • *registry.opensource.zalan.do/acid/postgres-operator:v1.9.0
  • Where do you run it - cloud or metal? Kubernetes or OpenShift? [microk8s VM]
  • Are you running Postgres Operator in production? [no, not yet]
  • Type of issue? [issue with application connection.]

The operator is working fine, and most likely something I need to configure: I've created a simple two-node cluster (acid-minimal-cluster) and specified an application user which can connect locally, but not through the service with the error:

psql -U project_victor app-db-name -W -h acid-minimal-cluster-repl
Password: 
psql: error: connection to server at "acid-minimal-cluster-repl" (10.152.183.203), port 5432 failed: FATAL:  password authentication failed for user "project_victor"
connection to server at "acid-minimal-cluster-repl" (10.152.183.203), port 5432 failed: FATAL:  pg_hba.conf rejects connection for host "10.1.76.169", user "project_victor", database "app-db-name", no encryption

What do I need to specify so that the user is allowed to connect through the service?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions