TMA-POSTGRES-5.4
Ensure login via "host" TCP/IP Socket is configured correctly
설명
A large number of authentication METHODs are available for hosts connecting using TCP/IP sockets, including: ; trust ; reject ; md5 ; scram-sha-256 ; password ; gss ; sspi ; ident ; pam ; ldap ; radius ; cert ; oauth METHODs trust, password, and ident are not to be used for remote logins.
점검 방법
감사 방식: 수동 검토
이 권장 사항은 자동으로 점검할 수 없습니다. --include-manual 옵션을 전달하면 스캔 결과에 이 지침과 함께 표시됩니다.
Review 'host' lines in pg_hba.conf (SELECT * FROM pg_hba_file_rules WHERE type LIKE 'host%';). Test psql 'host=<server> user=postgres sslmode=disable' and sslmode=require locally and remotely: only intended encrypted, password-authenticated (scram-sha-256) logins may succeed.
조치 방법
조치 방식: 가이드 또는 인프라 패치
Use hostssl lines with scram-sha-256 for required users/networks and hostnossl ... reject for the rest, e.g. hostssl all postgres 0.0.0.0/0 scram-sha-256 and hostnossl all postgres 0.0.0.0/0 reject, then SELECT pg_reload_conf();
속성
- 운영 체제
- 모두
- 태그
- postgresdatabaseauthenticationpg_hbatlsmanual
- 참고 자료
- CIS PostgreSQL 18 Benchmark v1.0.0 - 5.4 Ensure login via "host" TCP/IP Socket is configured correctly