Commit b6ae8fedbaf5

Vincent Demeester <vincent@sbr.pm>
2026-11-24 11:50:04
fix: Hardened Joplin container privileges
Reduced the risk of privilege escalation while retaining the existing database connection. Signed-off-by: Vincent Demeester <vincent@sbr.pm>
1 parent 967a2ab
Changed files (1)
systems
systems/rhea/extra.nix
@@ -918,6 +918,10 @@ in
         POSTGRES_PORT = toString config.services.postgresql.settings.port;
       };
       environmentFiles = [ config.age.secrets."joplin.env".path ];
+      extraOptions = [
+        "--cap-drop=ALL"
+        "--security-opt=no-new-privileges"
+      ];
       ports = [ "127.0.0.1:22300:22300" ];
       volumes = [ "/run/postgresql:/var/run/postgresql" ];
     };