mirror of
https://github.com/bpmforge/kryptkeeper.git
synced 2026-11-23 16:02:01 +00:00
e0d82a4ed0
First stable release. Notes: docs/release/RELEASE_NOTES_v1.0.0.md Lab record: docs/release/LIVE_RESULTS_v1.0.0.md
W30-19: SLO breach drill (real Prometheus + Grafana)
bash tests/live/slo/run.sh
Needs podman, go, curl, python3, openssl, ssh-keygen and the two images
already pulled (pinned tags, override with KK_SLO_PROM_IMAGE /
KK_SLO_GRAFANA_IMAGE):
podman pull docker.io/prom/prometheus:v2.55.1 docker.io/grafana/grafana-oss:11.3.0
No operator credentials are involved. The Grafana admin password is generated
per run (openssl rand) and never printed. Runtime is about 8 minutes (it
waits on real sweep intervals: KRYPTKEEPER_SLO_SWEEP_MINUTES=1).
What it does
- Starts the hub with the webhook as the only channel
(
WEBHOOK_URL-> echo receiver/slo,KRYPTKEEPER_SLO_NOTIFY_TARGET=slo-drill), Prometheus scrapinghost.containers.internal:<hub>/metricsevery 5 s, and Grafana with the Prometheus datasource as default; importsdocs/ops/pki-slo-dashboard.json. - Idle check: 2 sweeps, 0 records at
/slo. - Forces the breach (details below), then asserts exactly 1 record at
/slomentioningrenewal-success-ratewithin 150 s and still exactly 1 after 3 more sweeps (a steady breach does not re-page). - Series check: the renewal panel expression returns a series from
Prometheus and a frame from Grafana's
POST /api/ds/query, andGET /api/dashboards/uid/kryptkeeper-pki-slofinds the dashboard.
Deviations from the ticket text (verified against code)
- The hub egress guard (
internal/egress) always refuses loopback, so the echo receiver binds a private LAN address of this host (auto-detected; overrideKK_SLO_ECHO_HOST), not127.0.0.1. - The breach is not "5 failures, success stays 0": the first
renewal/executerenews the certificate and then fails to install over SSH (connect_failed), which the executor counts as a renewal success. Calls 2..6 return 409 "certificate already has a successor" and each incrementskryptkeeper_cert_renewal_failure_total. Net: 1 success, 5 failures, rate 0.17 < 0.99. - Single-channel setup is kept deliberately (W30-04 fans out to every configured channel), so "exactly once" is unambiguous.
Dry run without the images
KK_SLO_NO_OBS=1 bash tests/live/slo/run.sh runs only the hub half (idle
check, forced breach, exactly-once, no re-page). It does not satisfy
acceptance 2 (dashboard series).
Results
See "Live results" below; fill it in after a real run.
| Part | Status | Date | Notes |
|---|---|---|---|
Hub half (KK_SLO_NO_OBS=1): idle, breach, exactly-once, no re-page |
ALL PASS (agent, local) | 2026-10-16 | 0 pages idle; failure_total=5 success_total=1; exactly 1 /slo record, still 1 after 3 sweeps |
| Prometheus + Grafana + dashboard series | PENDING-RUN (images not available offline) |