fix(swarm-mgmt): exclude .env from bundle, chmod +x decnet, mkdir log

This commit is contained in:
2026-04-19 04:58:55 -04:00
parent b4df9ea0a1
commit 95ae175e1b
3 changed files with 15 additions and 0 deletions

View File

@@ -159,6 +159,10 @@ async def test_get_tgz_contents(client, auth_token, tmp_path):
assert "__pycache__" not in bad
assert not bad.endswith(".pyc")
assert "node_modules" not in bad
# Dev-host env leaks would bake absolute master paths into the agent.
assert not bad.endswith(".env"), f"leaked env file: {bad}"
assert ".env.local" not in bad, f"leaked env file: {bad}"
assert ".env.example" not in bad, f"leaked env file: {bad}"
# INI content is correct
ini = tf.extractfile("etc/decnet/decnet.ini").read().decode()