fix(security): remove credentialed reboot SOP command
All checks were successful
CD Pipeline / workflow-shape (push) Successful in 2s
CD Pipeline / cancel-stale-cd (push) Has been skipped
CD Pipeline / tests (push) Successful in 2m17s
CD Pipeline / build-and-deploy (push) Successful in 13m58s
CD Pipeline / post-deploy-checks (push) Successful in 1m55s
All checks were successful
CD Pipeline / workflow-shape (push) Successful in 2s
CD Pipeline / cancel-stale-cd (push) Has been skipped
CD Pipeline / tests (push) Successful in 2m17s
CD Pipeline / build-and-deploy (push) Successful in 13m58s
CD Pipeline / post-deploy-checks (push) Successful in 1m55s
This commit is contained in:
@@ -15,6 +15,13 @@ def read(path: str) -> str:
|
||||
return (ROOT / path).read_text(encoding="utf-8")
|
||||
|
||||
|
||||
def test_reboot_sop_never_embeds_passworded_sudo_startup() -> None:
|
||||
sop = read("docs/runbooks/REBOOT-RECOVERY-SOP.md")
|
||||
|
||||
assert "sudo -n /usr/local/bin/awoooi-startup-110.sh" in sop
|
||||
assert "| sudo -S /usr/local/bin/awoooi-startup-110.sh" not in sop
|
||||
|
||||
|
||||
def load_public_maintenance_probe() -> ModuleType:
|
||||
path = ROOT / "scripts/reboot-recovery/public-maintenance-fallback-probe.py"
|
||||
spec = importlib.util.spec_from_file_location(
|
||||
|
||||
Reference in New Issue
Block a user