Skip to content

On connection failure logs are leaking secrets #368

@sisidra

Description

@sisidra

What happens?

Attaching to Postgres using secrets will leak secret information in logs on failure.

To Reproduce

CREATE SECRET (
      TYPE postgres,
      PASSWORD 'MySecret'
  );
ATTACH '' AS pgdb (TYPE postgres);

IO Error:
Unable to connect to Postgres at password='MySecret' : connection to server on socket "/tmp/.s.PGSQL.5432" failed: No such file or directory
Is the server running locally and accepting connections on that socket?

OS:

MacOS

PostgreSQL Version:

DuckDB Version:

1.3.2

DuckDB Client:

CLI, Python

Full Name:

Mārtiņš Kalvāns

Affiliation:

NymTech

Have you tried this on the latest main branch?

  • I agree

Have you tried the steps to reproduce? Do they include all relevant data and configuration? Does the issue you report still appear there?

  • I agree

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions