secrets: add sandbox user

This commit is contained in:
lassulus
2024-01-30 11:56:22 +01:00
parent a0ebf882c5
commit 0dbfe52d62
2 changed files with 15 additions and 3 deletions

View File

@@ -56,6 +56,8 @@ def generate_secrets(machine: Machine) -> None:
"--bind", str(facts_dir), str(facts_dir),
"--bind", str(secrets_dir), str(secrets_dir),
"--unshare-all",
"--unshare-user",
"--uid", "1000",
"--",
"bash", "-c", machine.secrets_data[service]["generator"]
],