Skip to content

PostgreSQL connection to RDS with enforced SSL fails on permissions to certificates #1112

Open
@ignatenkobrain

Description

@ignatenkobrain

Current Behavior

I've configured netbox-docker to connect to the RDS PostgreSQL, and it fails to connect there (surprisingly migrations worked without issue).

... /root/.postgresql/postgresql.crt: Permission denied
connection to server at "netbox.cwfyakept1w9.us-east-1.rds.amazonaws.com" (172.16.255.153), port 5432 failed: FATAL: no pg_hba.conf entry for host "172.16.254.223", user "netbox", database "netbox", no encryption

Setting rds.force_ssl to 0 in RDS solves the issue but in such case SSL is not used which is 😿

Expected Behavior

No issues with permissions and SSL is used by default.

Docker Compose Version

N/A

Docker Version

N/A

The git Revision

N/A

The git Status

N/A

Startup Command

N/A

NetBox Logs

N/A

Content of docker-compose.override.yml

N/A

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