SV-256953r961041_rule
V-256953
SRG-APP-000176-WSR-000096
APWS-AT-000400
CAT II
10
As a System Administrator for each Automation Controller NGINX web server host, set the permissions:
NGINXCONF=`nginx -V 2>&1 | tr ' ' '\n' | sed -ne '/conf-path/{s/.*conf-path=\(.*\)/\1/;p}' `
TOWER_KEY=`sed -n 's/^\s*ssl_certificate_key\s*\(.*\);/\1/p' $NGINXCONF`
sudo chown root:awx $TOWER_KEY
sudo chmod 600 $TOWER_KEY
As a System Administrator for each Automation Controller NGINX web server host, verify the location of the NGINX configuration:
NGINXCONF=`nginx -V 2>&1 | tr ' ' '\n' | sed -ne '/conf-path/{s/.*conf-path=\(.*\)/\1/;p}' `
TOWER_KEY=`sed -n 's/^\s*ssl_certificate_key\s*\(.*\);/\1/p' $NGINXCONF`
stat -c "%a %U %G" $TOWER_KEY| grep "600 root awx" || echo "FAILED"
If "FAILED" is displayed, this is a finding.
V-256953
False
APWS-AT-000400
As a System Administrator for each Automation Controller NGINX web server host, verify the location of the NGINX configuration:
NGINXCONF=`nginx -V 2>&1 | tr ' ' '\n' | sed -ne '/conf-path/{s/.*conf-path=\(.*\)/\1/;p}' `
TOWER_KEY=`sed -n 's/^\s*ssl_certificate_key\s*\(.*\);/\1/p' $NGINXCONF`
stat -c "%a %U %G" $TOWER_KEY| grep "600 root awx" || echo "FAILED"
If "FAILED" is displayed, this is a finding.
M
5535