You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(tests): add X-Internal-Secret header to internal API test fixtures #754
5 tests in `tests/test_internal.py` fail with HTTP 403:
```json
{"detail": "Invalid or missing internal API secret"}
```
The tests call `POST /api/internal/...` endpoints without providing the `X-Internal-Secret` header required by architectural invariant C-003. The backend now enforces this header on all `/api/internal/` routes.
Context
Discovered via full test suite run on 2026-05-10. The internal secret enforcement (C-003) was added to `routers/internal.py` but the corresponding test fixtures were not updated to supply the header.
Acceptance Criteria
Add a fixture (or helper) in `tests/test_internal.py` that reads `INTERNAL_API_SECRET` (falling back to `SECRET_KEY`) from the environment and passes it as `X-Internal-Secret` on all internal API requests
Activity
vybe commentedon May 10, 2026
/claim
github-actions commentedon May 10, 2026
Claimed by @vybe. Label
status-in-progressadded.Next steps:
feature/754-<short-slug>Fixes #754fix(tests): load SECRET_KEY from .env for internal API tests (#754) (#…
vybe commentedon May 10, 2026
Fixed by #757 — merged to dev.
test(gates): existing gate worlds' approvers can open the agent; shap…