The vCenter PostgreSQL service must use Coordinated Universal Time (UTC) for log timestamps.

Overview

Finding IDVersionRule IDIA ControlsSeverity
V-259182VCPG-80-000075SV-259182r935450_ruleCCI-001890medium
Description
If time stamps are not consistently applied and there is no common time reference, it is difficult to perform forensic analysis. Time stamps generated by PostgreSQL must include date and time. Time is commonly expressed in UTC, a modern continuation of Greenwich Mean Time (GMT), or local time with an offset from UTC.
STIGDate
VMware vSphere 8.0 vCenter Appliance PostgreSQL Security Technical Implementation Guide2023-10-29

Details

Check Text (C-259182r935450_chk)

At the command prompt, run the following command: # /opt/vmware/vpostgres/current/bin/psql -U postgres -A -t -c "SHOW log_timezone;" Expected result: UTC If the output does not match the expected result, this is a finding.

Fix Text (F-62831r935449_fix)

A script is included with vCenter to generate a PostgreSQL STIG configuration. At the command prompt, run the following commands: # chmod +x /opt/vmware/vpostgres/current/bin/vmw_vpg_config/vmw_vpg_config.py # /opt/vmware/vpostgres/current/bin/vmw_vpg_config/vmw_vpg_config.py --action stig_enable --pg-data-dir /storage/db/vpostgres # chmod -x /opt/vmware/vpostgres/current/bin/vmw_vpg_config/vmw_vpg_config.py Restart the PostgreSQL service by running the following command: # vmon-cli --restart vmware-vpostgres