SV-261892r1000681_rule
V-261892
SRG-APP-000172-DB-000075
CD16-00-003900
CAT I
10
Note: The following instructions use the PGDATA environment variable. Refer to APPENDIX-F for instructions on configuring PGDATA.
As the database administrator (shown here as "postgres"), edit pg_hba.conf authentication file and change all entries of "password" to "scram-sha-256":
$ sudo su - postgres
$ vi ${PGDATA?}/pg_hba.conf
host all all .example.com scram-sha-256
Note: The following instructions use the PGDATA environment variable. Refer to APPENDIX-F for instructions on configuring PGDATA.
As the database administrator (shown here as "postgres"), review the authentication entries in pg_hba.conf:
$ sudo su - postgres
$ cat ${PGDATA?}/pg_hba.conf
If any entries use the auth_method (last column in records) "password" or "md5", this is a finding.
V-261892
False
CD16-00-003900
Note: The following instructions use the PGDATA environment variable. Refer to APPENDIX-F for instructions on configuring PGDATA.
As the database administrator (shown here as "postgres"), review the authentication entries in pg_hba.conf:
$ sudo su - postgres
$ cat ${PGDATA?}/pg_hba.conf
If any entries use the auth_method (last column in records) "password" or "md5", this is a finding.
M
5598