Compare commits

...

3 Commits

Author SHA1 Message Date
124f1ee226
denc-webcluster: nginx AppArmor rules
Some checks failed
ci/lysergic/push/pipeline Pipeline failed
Allow access to static content.

Signed-off-by: Georg Pfuetzenreuter <mail@georg-pfuetzenreuter.net>
2023-02-12 16:28:19 +01:00
33ea034b90
web-proxy: include apparmor.local
- allow access to trust certificate
- some web proxy servers need additional AppArmor drop-ins, for example
for serving static content

Signed-off-by: Georg Pfuetzenreuter <mail@georg-pfuetzenreuter.net>
2023-02-12 16:27:40 +01:00
0eca62f4ce
Add AppArmor profile
Simple profile to allow for management of local profile drop-ins using
pillar values.

Signed-off-by: Georg Pfuetzenreuter <mail@georg-pfuetzenreuter.net>
2023-02-12 16:20:44 +01:00
4 changed files with 22 additions and 0 deletions

View File

@ -209,3 +209,9 @@ firewalld:
services:
- http
- https
profile:
apparmor:
local:
usr.sbin.nginx:
- '/srv/www/{libsso.net,sso.casa,sso.syscid.com}/{index.html,stuff/tacit-css-1.5.2.min.css} r,'

View File

@ -68,3 +68,9 @@ firewalld:
services:
- http
- https
profile:
apparmor:
local:
usr.sbin.nginx:
- '{{ trustcrt }} r,'

View File

@ -0,0 +1,9 @@
{%- set aapillar = salt['pillar.get']('profile:apparmor') %}
{%- if 'local' in aapillar %}
{%- for profile, lines in aapillar['local'].items() %}
/etc/apparmor.d/local/{{ profile }}:
file.managed:
- contents: {{ lines }}
{%- endfor %}
{%- endif %}

View File

@ -1,4 +1,5 @@
include:
- apparmor.local
- nginx.pkg
- nginx.config
- nginx.snippets