ARCHOS 525 BLUEPRINT · /d/dgm_rag-enterprise-acl
Enterprise RAG with per-document access control
11 COMPONENTS · 15 FLOWS · UPDATED 2026-11-20
GITHUB README / PR PREVIEW CARD
[](https://archos.sageideas.dev/d/dgm_rag-enterprise-acl) *Interactive architecture diagram powered by [ArchOS Studio](https://archos.sageideas.dev/d/dgm_rag-enterprise-acl)*
NOTION / DOCS / CONFLUENCE EMBED
<iframe src="https://archos.sageideas.dev/embed/dgm_rag-enterprise-acl" width="100%" height="580" style="border:1px solid rgba(240,236,225,0.14);border-radius:6px;" loading="lazy" title="Enterprise RAG with per-document access control — Interactive in ArchOS"></iframe>
PORTABLE MERMAID SPEC (GITHUB / NOTION / RFC)
flowchart LR
client_0[("API Client")]
api_1["API gateway"]
pdp_2["Policy decision point (PDP)"]
rag_3["Container runtime"]
emb_4["Embedding"]
vs_5[("Vector database")]
llm_6["Inference server"]
secrets_7[("Secrets manager")]
tsdb_8[("Time-series database (TSDB)")]
alerting_9[("Alerting")]
capacity_10["Capacity Estimate"]
client_0 -->|"1. Asks with JWT · HTTPS"| api_1
api_1 -->|"2. Asks groups (mTLS) · HTTP/2"| pdp_2
pdp_2 -->|"3. Returns groups · HTTP/2"| api_1
api_1 -->|"4. Forwards (mTLS) · HTTP/2"| rag_3
rag_3 -->|"5. Embeds question · HTTP/2"| emb_4
emb_4 -->|"6. Returns vector · HTTP/2"| rag_3
rag_3 -->|"7. Searches in groups · HTTP/2"| vs_5
vs_5 -->|"8. Returns chunks · HTTP/2"| rag_3
rag_3 -->|"9. Sends prompt · HTTP/2"| llm_6
llm_6 -->|"10. Returns answer · HTTP/2"| rag_3
rag_3 -->|"11. Returns answer · HTTP/2"| api_1
api_1 -->|"12. Returns answer or 429 · HTTPS"| client_0
rag_3 -->|"Fetches keys · HTTPS"| secrets_7
rag_3 -->|"Exports (OTLP) · OTLP"| tsdb_8
tsdb_8 -->|"Feeds metrics · HTTP"| alerting_9COMPONENT STACK (10)
- API ClientSTATEFULEmployee app on an untrusted network
- API gatewaySTATELESSChecks the JWT, then asks policy
- Policy decision point (PDP)STATELESSReturns user groups; fail closed
- Container runtimeSTATELESSRAG service: filters search by groups
- EmbeddingSTATELESSTurns the question into a vector
- Vector databaseSTATEFULChunks carry their allowed groups
- Inference serverSTATELESSSees only chunks the stored ACLs allow
- Secrets managerSTATEFULHolds the model and index keys
- Time-series database (TSDB)STATEFULStores latency, errors and no-hits
- AlertingSTATEFULPages on-call on error spikes
REQUEST & DATA FLOW (15)
- API Client → API gateway (Asks with JWT)[HTTPS]
- API gateway → Policy decision point (PDP) (Asks groups (mTLS))[HTTP/2]
- Policy decision point (PDP) → API gateway (Returns groups)[HTTP/2]
- API gateway → Container runtime (Forwards (mTLS))[HTTP/2]
- Container runtime → Embedding (Embeds question)[HTTP/2]
- Embedding → Container runtime (Returns vector)[HTTP/2]
- Container runtime → Vector database (Searches in groups)[HTTP/2]
- Vector database → Container runtime (Returns chunks)[HTTP/2]
- Container runtime → Inference server (Sends prompt)[HTTP/2]
- Inference server → Container runtime (Returns answer)[HTTP/2]
- Container runtime → API gateway (Returns answer)[HTTP/2]
- API gateway → API Client (Returns answer or 429)[HTTPS]
- Container runtime → Secrets manager (Fetches keys)[HTTPS]
- Container runtime → Time-series database (TSDB) (Exports (OTLP))[OTLP]