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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user