Python GSAP broker reference implementation
Find a file
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
ansible_collection/guildhouse/bastion feat(ansible): add guildhouse.bastion Ansible Galaxy collection 2026-04-14 11:23:03 -04:00
gsap_broker fix: shared bearer auth, delegation depth, SQLite permissions 2026-04-14 17:31:46 -04:00
tests fix: shared bearer auth, delegation depth, SQLite permissions 2026-04-14 17:31:46 -04:00
.gitignore chore: add .venv to gitignore, remove from tracking 2026-04-14 08:13:35 -04:00
Dockerfile feat: fastapi-gsap — lightweight GSAP broker PoC 2026-03-30 14:10:21 -04:00
INTUNE.md docs: add Intune connector configuration guide 2026-04-14 05:30:06 -04:00
pyproject.toml feat: absorb llm-principal-broker as gsap_broker/delegations/ 2026-04-08 13:37:06 -04:00
README.md Initial commit 2026-03-30 18:03:34 +00:00
requirements.txt feat: fastapi-gsap — lightweight GSAP broker PoC 2026-03-30 14:10:21 -04:00
ROADMAP.md docs: add Bastion product roadmap 2026-04-14 10:35:07 -04:00
uv.lock fix: capability enforcement, credential safety, atomic delegations, input validation 2026-04-14 08:13:27 -04:00

fastapi-gsap

Lightweight FastAPI reference implementation of the GSAP broker (GCAP-SPEC-SHELLBOUND-BROKER-0001)