chore(deploy): pass target password through env
This commit is contained in:
1 parent
5f3a6953ee
commit
2fbb247a1e
5 files changed
+76
-97
No files matched your search
@@ -9,20 +9,20 @@ entrypoint = (directory.parents[1] / "managed-target-entrypoint.sh").read_text()
|
||||
readme = (directory / "README.md").read_text()
|
||||
|
||||
# ponytail: checks the committed Compose shape, not arbitrary YAML; use a YAML
|
||||
# parser if this definition grows beyond its single service and single secret.
|
||||
# parser if this definition grows beyond its single target service.
|
||||
assert " privileged: false\n" in compose
|
||||
assert " cap_drop: [ALL]\n" in compose
|
||||
assert " cap_add: [NET_ADMIN, NET_RAW, SETUID, SETGID, DAC_OVERRIDE]\n" in compose
|
||||
assert " cap_add: [NET_ADMIN, NET_RAW, SETUID, SETGID]\n" in compose
|
||||
assert compose.count(" - type: bind\n") == 1
|
||||
assert " source: ./target-state\n" in compose
|
||||
assert " target: /var/lib/zapret-autotune/target\n" in compose
|
||||
assert " create_host_path: false\n" in compose
|
||||
assert " secrets: [ss_password]\n" in compose
|
||||
assert compose.endswith("secrets:\n ss_password:\n file: ./ss_password\n")
|
||||
assert "SS_PASSWORD" not in compose
|
||||
assert "ss_password=$(cat /run/secrets/ss_password) || exit 1" in entrypoint
|
||||
assert "SS_PASSWORD: ${SS_PASSWORD:?Set SS_PASSWORD in the deployment environment}" in compose
|
||||
assert "secrets:" not in compose
|
||||
assert "ss_password=${SS_PASSWORD-}" in entrypoint
|
||||
assert "unset SS_PASSWORD" in entrypoint
|
||||
assert "export ss_password" not in entrypoint
|
||||
assert "export SS_PASSWORD" not in entrypoint
|
||||
assert "container-wide, not restricted" in readme
|
||||
assert "mode `0600`" in readme
|
||||
assert "not a symlink" in readme
|
||||
assert "Docker administrators/root can still read container" in readme
|
||||
assert "removed\nfrom the entrypoint environment" in readme
|
||||
assert "No host networking" in readme
|
||||
Reference in new issue
Block a user