Skip to content

Commit 2683ed1

Browse files
committed
chore: systemd hardening
ProtectHome and InaccessiblePaths to senstive internal locations
1 parent 309557b commit 2683ed1

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

ansible/files/postgresql_config/postgresql.service.j2

Lines changed: 2 additions & 0 deletions
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+
ProtectHome=yes
2526
ReadOnlyPaths=/etc
27+
InaccessiblePaths=-/var/lib/supabase -/var/lib/supabase-admin-agent -/var/lib/cloud
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)