Skip to content

The credentials in the PostgreSQL connection string are not being recognized. #4527

@makuartur

Description

@makuartur

TruffleHog Version

3.90.12

Trace Output

https://gist.github.com/makuartur/789878b3516319e71983789d62a364ad

Expected Behavior

A PostgreSQL password should be detected in the connection string.

Actual Behavior

The secret was ignored and not detected.

Steps to Reproduce

mkdir trufflehog_postgres;
cd trufflehog_postgres;
cat << EOF > ./secrets.txt
#fake keys
[default]
aws_access_key_id = AKIAQYLPMN5HHHFPZAM2
aws_secret_access_key = 1tUm636uS1yOEcfP5pvfqJ/ml36mF7AkyHsEU0IU
postgres://test:test@127.0.0.1
postgresql://test:test@127.0.0.1
postgres://test:test@127.0.0.1:7432/test
postgresql://test:test@127.0.0.1:7432/test
EOF
trufflehog filesystem ./ --results=verified,unverified --log-level=5;

Environment

  • OS: macOS
  • Version 15.7.1

Additional Context

References

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions