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
+12 -3
View File
@@ -11,6 +11,8 @@ from uuid import uuid4
import httpx
from PIL import Image
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 BASE, ROOT, actor, auth, command, compose, ready, sql
@@ -78,7 +80,10 @@ def main():
raw = buffer.getvalue()
sentinel = "PrivacyProbe-" + uuid4().hex
with httpx.Client(
base_url=BASE, timeout=15, trust_env=False
transport=FreshTrustTransport(),
base_url=BASE,
timeout=15,
trust_env=False,
) as client:
user, _, session = actor(client)
headers = auth(session)
@@ -266,10 +271,14 @@ def main():
assert all(sentinel not in json.dumps(s) for s in series)
report["metric_series_count"] = len(series)
report["metric_labels_low_cardinality"] = True
url = "http://127.0.0.1:" + os.getenv("GRAFANA_PORT", "3006")
url = "https://localhost:" + os.getenv("GRAFANA_PORT", "3447")
password = (ROOT / "secrets/grafana_password").read_text().strip()
with httpx.Client(
base_url=url, auth=("admin", password), trust_env=False, timeout=15
transport=FreshTrustTransport(),
base_url=url,
auth=("admin", password),
trust_env=False,
timeout=15,
) as grafana:
dashboard = grafana.get("/api/dashboards/uid/messenger-lab6")
dashboard.raise_for_status()