Aegis-BPF

Staging Canary Runbook

This runbook defines how to run staged canary validation before production release.

Preconditions

Phase 1: Audit canary

Run an audit-only pass first to evaluate false positives without process termination.

sudo AEGIS_BIN=./build/aegisbpf \
  PHASE=audit \
  DURATION_SECONDS=300 \
  MAX_RINGBUF_DROPS=100 \
  MAX_RSS_GROWTH_KB=65536 \
  scripts/canary_gate.sh

Collect evidence:

Phase 2: Enforce canary

Use SIGTERM as the default staged enforcement signal.

sudo AEGIS_BIN=./build/aegisbpf \
  PHASE=enforce \
  ENFORCE_SIGNAL=term \
  DURATION_SECONDS=300 \
  MAX_RINGBUF_DROPS=100 \
  MAX_RSS_GROWTH_KB=65536 \
  scripts/canary_gate.sh

Collect evidence:

Rollback drill

During canary, execute one rollback drill:

  1. Apply candidate policy in staging.
  2. Trigger a controlled failure case.
  3. Validate rollback behavior and post-rollback health.
  4. Capture aegisbpf health --json and aegisbpf metrics output.

Exit criteria

Canary is considered pass only when:

Record final status in docs/GO_LIVE_CHECKLIST.md.