fix: hardening and fixes
This commit is contained in:
32 files changed
+619
-256
No files matched your search
@@ -76,6 +76,14 @@ let
|
||||
(mkAssertion (
|
||||
!cfg.warp.enable || cfg.warp.asOutbound || cfg.warp.asAmneziaWg
|
||||
) "proxy-suite: warp.enable = true needs warp.asOutbound or warp.asAmneziaWg")
|
||||
# One key, one session: the second peer on a WARP key takes the session over.
|
||||
(mkAssertion (!(cfg.warp.enable && cfg.warp.asOutbound && cfg.warp.asAmneziaWg))
|
||||
"proxy-suite: warp.asOutbound and warp.asAmneziaWg share one WARP key and would knock each other off; enable one"
|
||||
)
|
||||
# Daemon configs are readable by the service group; users must not share it.
|
||||
(mkAssertion (cfg.userControl.group != derived.constants.serviceUser)
|
||||
"proxy-suite: userControl.group must not be ${derived.constants.serviceUser}, the group that can read backend configs"
|
||||
)
|
||||
(requireEnabled derived.warpOutboundEnabled proxyEnabled
|
||||
"proxy-suite: warp.asOutbound requires proxy.enable = true"
|
||||
)
|
||||
|
||||
Reference in new issue
Block a user