M7.1 smoke harness: lift auth to compliance-core + compliance-smoke service #83
Reference in New Issue
Block a user
Delete Branch "feat/m7.1-smoke-harness"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
axumcargo feature, so every future product can consume one source of truth.compliance-smoke: a tiny Axum binary with three endpoints (public health, protected GET echo, protected POST echo) that mounts compliance-core's middleware end-to-end against a live Keycloak.scripts/smoke.sh: bash runner that hits the smoke service with tokens for the five certifai-realm test users (admin/user → active, trial, frozen, archived) and asserts the exact status code per (user × method × endpoint).Why independent of #82
PR #82 wired the original M7.1 middleware into compliance-agent inline. We parked it so this PR can land first as the canonical home — when #82 is rebased on top, it shrinks to "delete compliance-agent's local copy + import from compliance-core".
Smoke verdict (run against local certifai KC, 15/15 PASS)
/api/v1/health→ 200 (no auth)How to run locally
Test plan
Follow-ups (not in scope here)
dev-mem→dev-fileso the realm survives idle periods.