summary refs log tree commit diff
path: root/modules
diff options
context:
space:
mode:
authorRory& <root@rory.gay>2024-12-24 05:47:04 +0100
committerRory& <root@rory.gay>2024-12-24 05:47:04 +0100
commitc3d34949585c22a391c21fe0686cbfb242d168f7 (patch)
treed60f7186f5d7d8e281bfefe1cfe41fb9835db926 /modules
parentAllow redpanda to use sudo (diff)
downloadRory-Open-Architecture-c3d34949585c22a391c21fe0686cbfb242d168f7.tar.xz
Dont use dynamic users if sudo is enabled
Diffstat (limited to 'modules')
-rw-r--r--modules/packages/redpanda-connect/module.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/packages/redpanda-connect/module.nix b/modules/packages/redpanda-connect/module.nix

index 7940697..8060cd4 100644 --- a/modules/packages/redpanda-connect/module.nix +++ b/modules/packages/redpanda-connect/module.nix
@@ -46,8 +46,8 @@ in "${cfg.package}/bin/redpanda-connect run ${configFile}"; Restart = "always"; RestartSec = "5"; - DynamicUser = true; - NoNewPrivileges = !pipeline.allowSudo; + DynamicUser = !pipeline.allowSudo; + User = if pipeline.allowSudo then "redpanda-connect-${name}" else null; }; }; }) cfg.pipelines