Skip to content

Commit 7ce04f4

Browse files
staaldraadpcnc
andauthored
chore: systemd hardening (#1837)
* chore: systemd hardening ProtectHome and InaccessiblePaths to senstive internal locations * Apply suggestion from @pcnc Co-authored-by: Paul Cioanca <[email protected]> * chore: more paths --------- Co-authored-by: Paul Cioanca <[email protected]>
1 parent 309557b commit 7ce04f4

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

ansible/files/postgresql_config/postgresql.service.j2

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@ OOMScoreAdjust=-1000
2222
EnvironmentFile=-/etc/environment.d/postgresql.env
2323
LimitNOFILE=16384
2424
{% if supabase_internal is defined %}
25-
ReadOnlyPaths=/etc
25+
ProtectHome=yes
26+
ReadOnlyPaths=/etc /opt
27+
InaccessiblePaths=-/var/lib/supabase -/var/lib/supabase-admin-agent -/var/lib/cloud -/var/cache/supabase-admin-agent -/opt/saltstack -/etc/salt
2628
{% endif %}
2729
[Install]
2830
WantedBy=multi-user.target

ansible/vars.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ postgres_major:
1010

1111
# Full version strings for each major version
1212
postgres_release:
13-
postgresorioledb-17: "17.5.1.042-orioledb"
14-
postgres17: "17.6.1.021"
15-
postgres15: "15.14.1.021"
13+
postgresorioledb-17: "17.5.1.043-orioledb"
14+
postgres17: "17.6.1.022"
15+
postgres15: "15.14.1.022"
1616

1717
# Non Postgres Extensions
1818
pgbouncer_release: 1.19.0

0 commit comments

Comments
 (0)