Skip to content

Database connections lack TLS certificate and hostname validation #1320

@m2ux

Description

@m2ux

Problem

The node's PostgreSQL connection helper (get_connection) does not enforce TLS certificate or hostname validation. Connections can fall back to plaintext or use unauthenticated TLS (Prefer mode), allowing potential man-in-the-middle attacks on database traffic.

Fix

PR #1104 sets ssl_mode to PgSslMode::VerifyFull and rejects insecure SSL modes (Prefer, Disable) except when explicitly opted in for local development via allow_non_ssl.

JIRA: https://shielded.atlassian.net/browse/PM-22023

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