feat(security): add operator rotation and recovery commands
Skeleton contracts / contracts (pull_request) Canceled after 0s

This commit is contained in:
2026-11-20 19:02:00 +03:00
parent 1dd020d060
commit f2ea9d65a8
22 changed files with 983 additions and 46 deletions
+8 -2
View File
@@ -8,6 +8,8 @@ from datetime import UTC, datetime
import httpx
from scripts.tls_client import FreshTrustTransport
os.environ.setdefault("COMPOSE_FILE", "compose.yaml:compose.test.yaml")
from scripts.observe import fetch, logs, query, spans, wait
from scripts.stand import ROOT, command, compose
@@ -57,9 +59,13 @@ def main():
"complete": False,
}
password = (ROOT / "secrets/grafana_password").read_text().strip()
base = "http://127.0.0.1:" + os.getenv("GRAFANA_PORT", "3006")
base = "https://localhost:" + os.getenv("GRAFANA_PORT", "3447")
with httpx.Client(
base_url=base, auth=("admin", password), timeout=10, trust_env=False
transport=FreshTrustTransport(),
base_url=base,
auth=("admin", password),
timeout=10,
trust_env=False,
) as grafana:
preferences = grafana.get("/api/user/preferences")
preferences.raise_for_status()