Skip to main content
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
[![Enterprise RAG with per-document access control — ArchOS Architecture](https://archos.sageideas.dev/d/dgm_rag-enterprise-acl/opengraph-image)](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_9

COMPONENT STACK (10)

  • API ClientSTATEFUL
    Employee app on an untrusted network
  • API gatewaySTATELESS
    Checks the JWT, then asks policy
  • Policy decision point (PDP)STATELESS
    Returns user groups; fail closed
  • Container runtimeSTATELESS
    RAG service: filters search by groups
  • EmbeddingSTATELESS
    Turns the question into a vector
  • Vector databaseSTATEFUL
    Chunks carry their allowed groups
  • Inference serverSTATELESS
    Sees only chunks the stored ACLs allow
  • Secrets managerSTATEFUL
    Holds the model and index keys
  • Time-series database (TSDB)STATEFUL
    Stores latency, errors and no-hits
  • AlertingSTATEFUL
    Pages on-call on error spikes

REQUEST & DATA FLOW (15)

  1. API Client → API gateway (Asks with JWT)[HTTPS]
  2. API gateway → Policy decision point (PDP) (Asks groups (mTLS))[HTTP/2]
  3. Policy decision point (PDP) → API gateway (Returns groups)[HTTP/2]
  4. API gateway → Container runtime (Forwards (mTLS))[HTTP/2]
  5. Container runtime → Embedding (Embeds question)[HTTP/2]
  6. Embedding → Container runtime (Returns vector)[HTTP/2]
  7. Container runtime → Vector database (Searches in groups)[HTTP/2]
  8. Vector database → Container runtime (Returns chunks)[HTTP/2]
  9. Container runtime → Inference server (Sends prompt)[HTTP/2]
  10. Inference server → Container runtime (Returns answer)[HTTP/2]
  11. Container runtime → API gateway (Returns answer)[HTTP/2]
  12. API gateway → API Client (Returns answer or 429)[HTTPS]
  13. Container runtime → Secrets manager (Fetches keys)[HTTPS]
  14. Container runtime → Time-series database (TSDB) (Exports (OTLP))[OTLP]
Configure NGINX / Postgres / K8s →60-Sec L4–L7 Diagnostic →