Skip to content

Include postgres parameters somewhere #4754

@Fee0

Description

@Fee0

Description

Currently, for "postgres" detector, "raw" and "raw_v2" contain the same truncated connection string that looks something like this:

postgresql://XXXXX:YYYYYYYY@HOST:PORT

The real connection string may contain additional parameter after PORT like the DBNAME which is necessary to connect. Currently, there seems to be no field to access these additional parameters after the PORT except for "extra_data" which seems to parse "sslmode". In order to get the dbname I would need to manually query the link and parse the parameters.

postgresql://XXXXX:YYYYYYYY@HOST:PORT/DBNAME?sslmode=require ...

Preferred Solution

Since "raw" and "raw_v2" seem to contain the same string maybe we could make raw_v2 the real RAW connection string including all parameters?
Or parse more parameters into "extra_data" json blob.

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