fix: hardening and fixes

This commit is contained in:
fufsob committed 2026-09-15 08:56:33 +00:00
1 parent aa19042ee5
commit a82417a2bd
32 files changed
+619 -256

No files matched your search

+14 -2
View File
@@ -66,8 +66,19 @@ let
];
tgWithGlobalTunServiceConfig =
tgWithGlobalTun.config.systemd.services."proxy-suite-tg-ws-proxy".serviceConfig;
tgWithGlobalTunBypassUp = generated.readDerivation tgWithGlobalTunServiceConfig.ExecStartPre;
tgWithGlobalTunBypassDown = generated.readDerivation tgWithGlobalTunServiceConfig.ExecStopPost;
tgWithGlobalTunModule =
let
inherit (tgWithGlobalTun) pkgs;
cfg = tgWithGlobalTun.config.services.proxy-suite;
in
import ../../../modules/proxy-suite/tg-ws-proxy.nix {
inherit (pkgs) lib;
inherit pkgs cfg;
packages = import ../../../pkgs/default.nix { inherit pkgs; };
derived = import ../../../modules/proxy-suite/derived.nix { inherit (pkgs) lib; inherit cfg; };
};
tgWithGlobalTunBypassUp = generated.readDerivation tgWithGlobalTunModule.bypassUpScript;
tgWithGlobalTunBypassDown = generated.readDerivation tgWithGlobalTunModule.bypassDownScript;
tgWithGlobalTunRules = mkRoutingRules tgWithGlobalTun;
tgWithGlobalTproxy = evalProxySuite [
@@ -134,6 +145,7 @@ in
tgWithGlobalTunServiceConfig
tgWithGlobalTunBypassUp
tgWithGlobalTunBypassDown
tgWithGlobalTunModule
tgWithGlobalTunRules
tgWithGlobalTproxyNft
invalidTgWsProxyAssertions