SV-261908r1000729_rule
V-261908
SRG-APP-000266-DB-000162
CD16-00-006000
CAT II
10
Note: The following instructions use the PGDATA and PGVER environment variables. Refer to APPENDIX-F for instructions on configuring PGDATA and APPENDIX-H for PGVER.
As the database administrator, edit "postgresql.conf":
$ sudo su - postgres
$ vi $PGDATA/postgresql.conf
Change the client_min_messages parameter to be "error":
client_min_messages = error
Reload the server with the new configuration (this just reloads settings currently in memory; it will not cause an interruption):
$ sudo systemctl reload postgresql-${PGVER?}
To check the level of detail for errors exposed to clients, as the DBA (shown here as "postgres"), run the following:
$ sudo su - postgres
$ psql -c "SHOW client_min_messages;"
If client_min_messages is not set to error, this is a finding.
V-261908
False
CD16-00-006000
To check the level of detail for errors exposed to clients, as the DBA (shown here as "postgres"), run the following:
$ sudo su - postgres
$ psql -c "SHOW client_min_messages;"
If client_min_messages is not set to error, this is a finding.
M
5598