Skip to content

Secrets are printed in the log #470

@moltar

Description

@moltar

Describe the bug

Database connection URI with a password is printed in the logs:

migrate.New: failed to open database: parse "postgres://outpost:PLAIN_TEXT_PASSWORD_HERE@foo:5432/outpost?sslmode=require": net/url: invalid userinfo

To Reproduce

N/A

Expected behavior

Sanitize the logs.

Screenshots

N/A

Additional context

N/A

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

Projects

Status

Todo

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions