Skip to content

DBHub not able to connect to RDS via AWS SSM #90

@niravjdn

Description

@niravjdn

When I trun dbhub to connect to postgres hosted on AWS RDS via AWS SSM, it shows below error.

Through I can connect from DBeaver.

Fatal error: error: no pg_hba.conf entry for host "10.xxx.162.xx", user "catalog_rw_user", database "metadata", no encryption
    at /app/node_modules/.pnpm/[email protected][email protected]/node_modules/pg-pool/index.js:45:11
    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
    at async PostgresConnector.connect (file:///app/dist/index.js:251:22)
    at async ConnectorManager.connectWithDSN (file:///app/dist/index.js:2364:5)
    at async main (file:///app/dist/index.js:3375:7) {
  length: 168,
  severity: 'FATAL',
  code: '28000',
  detail: undefined,
  hint: undefined,
  position: undefined,
  internalPosition: undefined,
  internalQuery: undefined,
  where: undefined,
  schema: undefined,
  table: undefined,
  column: undefined,
  dataType: undefined,
  constraint: undefined,

Below is my mcp config.

 "dbhub-postgres-docker": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "bytebase/dbhub",
        "--transport",
        "stdio",
        "--dsn",
        "postgres://username:[email protected]:5432/dbname"
      ]
    },

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions