feat: add connectivity fix options + hardening

This commit is contained in:
fufsob committed 2026-09-29 03:14:24 +00:00
1 parent 364bed8d51
commit c8b9b3de46
41 files changed
+626 -111

No files matched your search

+4 -1
View File
@@ -99,7 +99,10 @@ in
assert pkgs.lib.hasInfix "BACKEND_JQ_FILTER=" localProxyAuthStartScript;
assert pkgs.lib.hasInfix ''-f "$BACKEND_JQ_FILTER"'' localProxyAuthStartScript;
assert pkgs.lib.hasInfix "--arg user local-user" localProxyAuthStartScript;
assert pkgs.lib.hasInfix ''--arg password "$LOCAL_PROXY_PASSWORD"'' localProxyAuthStartScript;
# From a pipe: argv is readable by every local user.
assert pkgs.lib.hasInfix ''--rawfile password <(printf '%s' "$LOCAL_PROXY_PASSWORD")''
localProxyAuthStartScript;
assert !(pkgs.lib.hasInfix ''--arg password "$LOCAL_PROXY_PASSWORD"'' localProxyAuthStartScript);
assert pkgs.lib.hasInfix ''select(.type == "mixed" and .tag == "mixed-in") | .users''
localProxyAuthBackendJqFilter;
# The password is in the config: root and the backend's group only.