SV-256960r961353_rule
V-256960
SRG-APP-000340-WSR-000029
APWS-AT-000700
CAT II
10
As a system administrator, for each Automation Controller NGINX web server host, set the permissions and owner of Automation Controller web server program configuration directory:
sudo chown -R root:root /etc/nginx/
sudo chmod 755 /etc/nginx /etc/nginx
sudo chmod 755 /etc/nginx /etc/nginx/conf.d
sudo chmod 644 /etc/nginx/nginx.conf
As a system administrator, for each Automation Controller NGINX web server program configuration files.
sudo chown root:root /usr/lib/systemd/system/nginx.service
sudo chmod 644 /usr/lib/systemd/system/nginx.service
Set the permissions and owner of Automation Controller application content directory:
sudo chmod 755 /var/lib/awx/public/static
sudo chown root:awx /var/lib/awx/public/static
As a system administrator, for each Automation Controller NGINX web server host, inspect the current permissions and owner of Tower's web server configuration directory:
stat -c "%a %U %G" /etc/nginx | grep -q "755 root root" || echo "FAILED"
stat -c "%a %U %G" /etc/nginx/conf.d | grep -q "755 root root" || echo "FAILED"
stat -c "%a %U %G" /etc/nginx/nginx.conf | grep -q "644 root root" || echo "FAILED"
If "FAILED" is displayed, this is a finding.
Inspect the current permissions and owner of Automation Controller web server program configuration files:
stat -c "%a %U %G" /usr/lib/systemd/system/nginx.service | grep -q "644 root root" || echo "FAILED"
If "FAILED" is displayed, this is a finding.
Inspect the current permissions and owner of Automation Controller application content directory:
stat -c "%a %U %G" /var/lib/awx/public/static | grep -q "755 root awx" || echo "FAILED"
If "FAILED" is displayed, this is a finding.
Inspect the current permissions and owner of Automation Controller web server log directory:
stat -c "%a %U %G" /var/log/nginx| grep -q "770 nginx root" || echo "FAILED"
If "FAILED" is displayed, this is a finding.
V-256960
False
APWS-AT-000700
As a system administrator, for each Automation Controller NGINX web server host, inspect the current permissions and owner of Tower's web server configuration directory:
stat -c "%a %U %G" /etc/nginx | grep -q "755 root root" || echo "FAILED"
stat -c "%a %U %G" /etc/nginx/conf.d | grep -q "755 root root" || echo "FAILED"
stat -c "%a %U %G" /etc/nginx/nginx.conf | grep -q "644 root root" || echo "FAILED"
If "FAILED" is displayed, this is a finding.
Inspect the current permissions and owner of Automation Controller web server program configuration files:
stat -c "%a %U %G" /usr/lib/systemd/system/nginx.service | grep -q "644 root root" || echo "FAILED"
If "FAILED" is displayed, this is a finding.
Inspect the current permissions and owner of Automation Controller application content directory:
stat -c "%a %U %G" /var/lib/awx/public/static | grep -q "755 root awx" || echo "FAILED"
If "FAILED" is displayed, this is a finding.
Inspect the current permissions and owner of Automation Controller web server log directory:
stat -c "%a %U %G" /var/log/nginx| grep -q "770 nginx root" || echo "FAILED"
If "FAILED" is displayed, this is a finding.
M
5535