Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PostgreSQL - "Include Error Detail" connection string parameter - how sensitive is the information returned?

https://www.npgsql.org/doc/connection-string-parameters.html

Include Error Detail - When enabled, PostgreSQL error and notice details are included on PostgresException.Detail and PostgresNotice.Detail. These can contain sensitive data.

If I provide the "Include Error Detail=True" in the connection stringg to PostgreSQL, what sensitive data do I need to be concerned about? If the query itself is returned in an exception or error message, that is fine by me, but if say the connection password were returned in plaintext obviously that would be bad. What sensitive data is conditionally included in errors based on this parameter?

like image 510
Anssssss Avatar asked May 23 '26 07:05

Anssssss


1 Answers

These messages include no sensitive data that the database user should not see. So I wouldn't worry, unless perhaps you show the information to the application user rather than logging them. Your database user may have access to information that the application user shouldn't see.

like image 128
Laurenz Albe Avatar answered May 24 '26 21:05

Laurenz Albe



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!