NoNewPrivileges on most containers. drop all caps on a few others
This commit is contained in:
parent
fb2dd2c723
commit
b3e4af5aca
36 changed files with 80 additions and 1 deletions
|
|
@ -17,6 +17,8 @@ HealthCmd=redis-cli ping
|
|||
HealthOnFailure=kill
|
||||
HealthStartPeriod=10s
|
||||
Notify=healthy
|
||||
# Security
|
||||
NoNewPrivileges=true
|
||||
|
||||
[Service]
|
||||
Restart=always
|
||||
|
|
|
|||
|
|
@ -10,6 +10,8 @@ EnvironmentFile=/etc/containers/systemd/mastodon/.env.secrets
|
|||
EnvironmentFile=/etc/containers/systemd/mastodon/.env
|
||||
Network=mastodon.network
|
||||
Network=postgresql.network
|
||||
# Security
|
||||
NoNewPrivileges=true
|
||||
|
||||
[Service]
|
||||
Restart=always
|
||||
|
|
|
|||
|
|
@ -17,6 +17,8 @@ HealthCmd=ps aux | grep '[s]idekiq\ 8' || false
|
|||
HealthOnFailure=kill
|
||||
HealthStartPeriod=1m
|
||||
Notify=healthy
|
||||
# Security
|
||||
NoNewPrivileges=true
|
||||
|
||||
[Service]
|
||||
Restart=always
|
||||
|
|
|
|||
|
|
@ -17,6 +17,8 @@ HealthCmd=curl -s --noproxy localhost localhost:4000/api/v1/streaming/health | g
|
|||
HealthOnFailure=kill
|
||||
HealthStartPeriod=1m
|
||||
Notify=healthy
|
||||
# Security
|
||||
NoNewPrivileges=true
|
||||
|
||||
[Service]
|
||||
Restart=always
|
||||
|
|
|
|||
|
|
@ -20,6 +20,8 @@ HealthCmd=curl -s --noproxy localhost localhost:3000/health | grep -q 'OK' || ex
|
|||
HealthOnFailure=kill
|
||||
HealthStartPeriod=1m
|
||||
Notify=healthy
|
||||
# Security
|
||||
NoNewPrivileges=true
|
||||
|
||||
[Service]
|
||||
Restart=always
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue