Enforce RAG entitlement on document APIs and RAG chat path #44

Open
opened 2026-08-01 13:05:29 -07:00 by westfarn · 0 comments
Owner

Parent: #42

Depends on: allows_rag entitlement field.

Summary

Gate DocumentWorkspaceView / DocumentUploadView / DocumentDetailView and WS PromptType.RAG with assert_feature_allowed(user, "rag"). Standard users get clear feature_not_allowed responses.

Acceptance

  • Document REST endpoints refuse Standard
  • RAG chat path refuses Standard before retrieval
  • Entitled plans succeed
  • Tests cover allow/deny
Parent: [#42](https://git.aimloperations.com/ai_ml_operations/chat_backend/issues/42) Depends on: allows_rag entitlement field. ## Summary Gate `DocumentWorkspaceView` / `DocumentUploadView` / `DocumentDetailView` and WS `PromptType.RAG` with `assert_feature_allowed(user, "rag")`. Standard users get clear `feature_not_allowed` responses. ## Acceptance - [ ] Document REST endpoints refuse Standard - [ ] RAG chat path refuses Standard before retrieval - [ ] Entitled plans succeed - [ ] Tests cover allow/deny
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: ai_ml_operations/chat_backend#44