- Introduced README.md for Zastava Evidence Locker Plan detailing artifacts to sign and post-signing steps. - Added example JSON schemas for observer events and webhook admissions. - Updated implementor guidelines with checklist for CI linting, determinism, secrets management, and schema control. - Created alert rules for Vuln Explorer to monitor API latency and projection errors. - Developed analytics ingestion plan for Vuln Explorer, focusing on telemetry and PII guardrails. - Implemented Grafana dashboard configuration for Vuln Explorer metrics visualization. - Added expected projection SHA256 for vulnerability events. - Created k6 load testing script for Vuln Explorer API. - Added sample projection and replay event data for testing. - Implemented ReplayInputsLock for deterministic replay inputs management. - Developed tests for ReplayInputsLock to ensure stable hash computation. - Created SurfaceManifestDeterminismVerifier to validate manifest determinism and integrity. - Added unit tests for SurfaceManifestDeterminismVerifier to ensure correct functionality. - Implemented Angular tests for VulnerabilityHttpClient and VulnerabilityDetailComponent to verify API interactions and UI rendering.
30 lines
1.0 KiB
YAML
30 lines
1.0 KiB
YAML
# Alert rules for tenant audit & auth (DEVOPS-TEN-49-001)
|
|
apiVersion: 1
|
|
groups:
|
|
- name: tenant-audit
|
|
rules:
|
|
- alert: tenant_error_rate_gt_0_5pct
|
|
expr: sum(rate(tenant_requests_total{status=~"5.."}[5m])) / sum(rate(tenant_requests_total[5m])) > 0.005
|
|
for: 5m
|
|
labels:
|
|
severity: page
|
|
annotations:
|
|
summary: Tenant error rate high
|
|
description: Error rate across tenant-labelled requests exceeds 0.5%.
|
|
- alert: jwks_cache_miss_spike
|
|
expr: rate(auth_jwks_cache_misses_total[5m]) / (rate(auth_jwks_cache_hits_total[5m]) + rate(auth_jwks_cache_misses_total[5m])) > 0.2
|
|
for: 5m
|
|
labels:
|
|
severity: warn
|
|
annotations:
|
|
summary: JWKS cache miss rate spike
|
|
description: JWKS miss ratio above 20% may indicate outage or cache expiry.
|
|
- alert: tenant_rate_limit_exceeded
|
|
expr: rate(tenant_rate_limit_hits_total[5m]) > 10
|
|
for: 5m
|
|
labels:
|
|
severity: warn
|
|
annotations:
|
|
summary: Frequent rate limit hits
|
|
description: Tenant rate limit exceeded more than 10 times per 5m window.
|