forked from mtusi2026/mtusi2026lab7
Implement lab7 security and compromised worker recovery evidence
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
import os
|
||||
import sys
|
||||
from pathlib import Path
|
||||
|
||||
from capture import run
|
||||
|
||||
|
||||
def main():
|
||||
os.environ["PYTHONPATH"] = "tests"
|
||||
os.environ["BASE_URL"] = "https://127.0.0.1:8443"
|
||||
os.environ["CA_FILE"] = str(Path("secrets/public/ca.crt").resolve())
|
||||
for name in ("security_auth", "security_baseline"):
|
||||
run(name.replace("_", "-"), [sys.executable, "student-tests/" + name + ".py"])
|
||||
run(
|
||||
"bao-policy",
|
||||
["docker", "compose", "run", "--rm", "--no-deps", "-T", "audit", "/checks/bao_policy.py"],
|
||||
)
|
||||
run("security-lifecycle", [sys.executable, "student-tests/security_lifecycle.py"])
|
||||
run(
|
||||
"tls-matrix",
|
||||
["docker", "compose", "run", "--rm", "--no-deps", "-T", "audit", "/checks/tls_matrix.py"],
|
||||
)
|
||||
run("security-inventory", [sys.executable, "student-tests/security_inventory.py"])
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
Reference in New Issue
Block a user