VCPG-67-000012 - VMware Postgres must require authentication on all connections.

Information

To ensure accountability and prevent unauthenticated access, organizational users must be identified and authenticated to prevent potential misuse and compromise of the system.

Organizational users include organizational employees or individuals the organization deems to have equivalent status of employees (e.g., contractors). Organizational users (and any processes acting on behalf of users) must be uniquely identified and authenticated for all accesses, except the following:

(i) Accesses explicitly identified and documented by the organization. Organizations document specific user actions that can be performed on the information system without identification or authentication;

(ii) Accesses that occur through authorized use of group authenticators without individual authentication. Organizations may require unique identification of individuals using shared accounts for detailed accountability of individual activity.

Satisfies: SRG-APP-000148-DB-000103, SRG-APP-000171-DB-000074

Solution

Navigate to and open /storage/db/pgdata/pg_hba.conf.

Find and remove the line that has a method of 'trust' in the far right column.

A correct, typical line will look like the following:
# TYPE DATABASE USER ADDRESS METHOD
host all all 127.0.0.1/32 md5

See Also

https://dl.dod.cyber.mil/wp-content/uploads/stigs/zip/U_VMW_vSphere_6-7_Y22M04_STIG.zip

Item Details

Category: IDENTIFICATION AND AUTHENTICATION

References: 800-53|IA-2, CAT|I, CCI|CCI-000764, Rule-ID|SV-239204r678985_rule, STIG-ID|VCPG-67-000012, Vuln-ID|V-239204

Plugin: Unix

Control ID: 16b006bfce8dc7813f1a138c7470108c49f2a48820b7eac99e4bcc8fa73dd577