Skip to content

Commit 9d2081c

Browse files
committed
feat: limit /etc to readonly
https://www.freedesktop.org/software/systemd/man/latest/systemd.exec.html#ReadWritePaths= Prevent postgres, or child-process of, from writing to /etc
1 parent 084b914 commit 9d2081c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ansible/files/postgresql_config/postgresql.service.j2

+3
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,8 @@ RestartSec=5
2121
OOMScoreAdjust=-1000
2222
EnvironmentFile=-/etc/environment.d/postgresql.env
2323
LimitNOFILE=16384
24+
{% if supabase_internal is defined %}
25+
ReadOnlyPaths=/etc
26+
{% endif %}
2427
[Install]
2528
WantedBy=multi-user.target

0 commit comments

Comments
 (0)