fastapi-gsap/gsap_broker
Tyler J King 782f5654ac fix: shared bearer auth, delegation depth, SQLite permissions
C-4: MCP endpoint requires verified bearer token. Unauthenticated
     requests rejected. _extract_principal() replaced by verified
     AuthResult from middleware.
C-8: All delegation endpoints require verified bearer token.
     X-Delegator-DID header removed — identity from token only.
     delegator_ac_id validated to belong to authenticated principal.
     Only delegators can revoke. Only delegator/delegate can view.
H-6: SQLite file permissions restricted to 0o600 (owner-only).
     Umask set before creation. WAL/SHM files also restricted.
H-7: Delegation depth tracked and enforced against max_delegation_depth.
     Sub-delegations increment depth. Exceeded depth → 403.

Shared TokenAuthenticator auto-detects identity driver from JWT
issuer claim (Keycloak or Entra). verify_bearer FastAPI dependency
for all protected endpoints. Health endpoint remains public.

ALL 10 critical findings CLOSED. ALL 10 high findings CLOSED.

Signed-off-by: Tyler King <tking@guildhouse.dev>
2026-04-14 17:31:46 -04:00
..
auth fix: shared bearer auth, delegation depth, SQLite permissions 2026-04-14 17:31:46 -04:00
chronicle docs: M6.2 TODO on Chronicle webhook poster — replace with gRPC RecordEvent 2026-04-08 13:49:18 -04:00
connectors fix: capability enforcement, credential safety, atomic delegations, input validation 2026-04-14 08:13:27 -04:00
credentials fix: capability enforcement, credential safety, atomic delegations, input validation 2026-04-14 08:13:27 -04:00
delegations fix: shared bearer auth, delegation depth, SQLite permissions 2026-04-14 17:31:46 -04:00
drivers fix(drivers): JWKS verification for Keycloak, remove Entra fallback, gate on_behalf_of 2026-04-14 07:51:38 -04:00
functions feat: governed function runtime + billing drain 2026-03-30 22:12:29 -04:00
intune feat(connectors): add Intune device management connector 2026-04-14 05:21:47 -04:00
models feat(authorize): add Intune compliance-gated AC issuance 2026-04-14 05:24:03 -04:00
routers fix: capability enforcement, credential safety, atomic delegations, input validation 2026-04-14 08:13:27 -04:00
routing feat(routing): add DeviceRouter for automatic connector selection 2026-04-14 06:01:55 -04:00
templates feat(templates): add template system — manifest, policy, loader, registries 2026-04-14 11:09:41 -04:00
__init__.py feat: fastapi-gsap — lightweight GSAP broker PoC 2026-03-30 14:10:21 -04:00
app.py fix: shared bearer auth, delegation depth, SQLite permissions 2026-04-14 17:31:46 -04:00
db.py fix: shared bearer auth, delegation depth, SQLite permissions 2026-04-14 17:31:46 -04:00
db_models.py feat: session-scoped ACs — multiple CRs per session 2026-04-03 02:06:15 -04:00
mcp.py fix: shared bearer auth, delegation depth, SQLite permissions 2026-04-14 17:31:46 -04:00
settings.py fix: capability enforcement, credential safety, atomic delegations, input validation 2026-04-14 08:13:27 -04:00