feat(security): add operator rotation and recovery commands
Skeleton contracts / contracts (pull_request) Canceled after 0s
Skeleton contracts / contracts (pull_request) Canceled after 0s
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user