feat(rbac): complete HTTP endpoint integration + role configs
Build and Push / Test (push) Successful in 8m20s
Build and Push / Build and push image (push) Successful in 6m5s

HTTP Endpoints with RBAC:
- ingest_handler: project-level write access check
- learn_handler: project-level write access check
- projects_handler: filter returned projects by user access
- query_handler: filter search results by resource access
- context_handler: project-level read access check

Example Role Configurations (config/roles/):
- admin.yaml: full access to all resources
- portfolio-agent.yaml: public visitor access
- authenticated-user.yaml: logged-in user access
- homelab-team.yaml: team-scoped project access

All 660+ tests passing.
This commit is contained in:
2026-09-01 08:43:49 -07:00
parent 780af66b3e
commit 1945084136
6 changed files with 119 additions and 3 deletions
+15
View File
@@ -0,0 +1,15 @@
# Authenticated User role: logged in via Authentik
name: authenticated-user
description: Logged in user with access to all public + private docs
rules:
# Can read all wiki, embeddings, skills (including private)
- resources: [wiki, embedding, skill]
verbs: [read, query]
# No visibility restriction - can see public AND private
# Can manage own conversations (any project)
- resources: [conversation]
verbs: [read, write, delete]
scope:
owner: self