The living list docs/GOVERNANCE.md’s change-control and exception
process (both already written, but previously non-functional because this
file didn’t exist yet) actually points at. Two sections: open items
(known, standing risks — not necessarily anything to fix immediately, just
tracked so they’re never silently forgotten) and accepted exceptions
(a control knowingly, temporarily relaxed — see GOVERNANCE.md’s exception
process for what belongs here and why).
Seeded from a production-readiness audit conducted 2026-09-01 (verified
against the running code and a live benchmark run, not just design review —
see docs/PRODUCTION_READINESS_REPORT.md for the full assessment this list
is drawn from). Owner for every item below is Suraj Kumar, the sole
maintainer (GOVERNANCE.md’s “Ownership”).
GOVERNANCE.md’s review-cadence section — not a promise it’ll be fixed
by then, just a promise it won’t be silently forgotten past that date.Severity: Critical (if deployed beyond single-user/local use) · Status: CLOSED (was: Mitigated)
Update (Prompt 25, 2026-10-03): this entry’s own title is now
actively misleading if read on its own — real authentication and
per-user authorization are not just “mitigated,” they’re a real,
default-available, extensively tested system (unchanged status quo since
the Phase 1-3 updates below, restated here because a reader skimming
titles alone, not bodies, would reasonably conclude otherwise). Prompt 20
additionally added real multi-tenancy on top of this (tenant resolved
only from a server-signed token claim, never a client-supplied header;
deny-by-default on an unresolvable/suspended tenant) — see
docs/MULTI_TENANCY.md and
docs/PRODUCTION_READINESS_RELEASE_GATE.md’s §3 for the current,
authoritative statement. docs/PRODUCTION_CHECKLIST.md’s own
now-corrected “neither the UI nor the API has real auth” line was the
same misreading, closed the same way.
Update (2026 Phase 1/2, restated here since this entry had gone stale):
real authentication (security/oidc.py — standard OIDC/JWT validation
against any compliant identity provider, algorithm allowlisting, audience
validation, bounded clock skew) and real per-user authorization
(agent/authz.py/api/authz.py — RBAC, 15 permissions, 4 extensible
roles, wired into every data-touching route and the multi-source router’s
own source-selection decision) both now exist — see docs/AUTHENTICATION.md/
docs/AUTHORIZATION.md. ENVIRONMENT=production refuses to start with no
authentication configured at all.
Update (2026 Phase 3, 2026-09-16): the React dashboard can now
actually obtain a real per-user OIDC token (frontend/src/lib/auth.ts,
Authorization Code + PKCE) — previously the SPA’s only possible credential
was a static, build-time-baked, admin-granting shared token.
What’s still open, narrower than this entry’s original scope: none
remains the default auth_mode (unchanged behavior for local/single-user
use, so turning this on is an operator decision, not automatic); the
static_token/none modes still grant a fixed “admin”-equivalent
identity, a deliberate, documented continuation of prior behavior, not a
new gap; there is no per-resource ownership even with RBAC on (any admin
can delete/see any document — see R-009, and docs/AUTHORIZATION.md’s
“Known limitations,” a deliberate design choice for a shared knowledge
base); and the frontend OIDC flow has not been exercised against a live
identity provider (see SECURITY_FINAL_REPORT.md).
Mitigation today: OIDC + RBAC, when configured, are a real fix, not
just a documented boundary. The reverse-proxy-auth deployment pattern
(docs/DEPLOYMENT.md) and the shared-token hook remain available as
lighter-weight alternatives for a trusted-network deployment.
Review date: revisit before any deployment reachable beyond a trusted
local network — confirm auth_mode is actually oidc (not the default
none) and that roles are assigned deliberately, not left at whatever an
IdP’s default claim happens to produce.
Severity: High (for any schema carrying real PII) · Status: Open
config/sensitive_columns.yaml ships tables: []. The enforcement
mechanism is real and tested (db/value_sampling.py,
agent/nodes.py::validate_sql_node, tests/test_sensitive_columns.py) but
protects zero columns until a human reviews and classifies the connected
database’s actual columns, per docs/GOVERNANCE.md’s “Data classification
policy.” Anyone pointing this at a database with unreviewed PII columns is
relying on the 20-distinct-value cardinality cap in db/value_sampling.py
alone (a side effect of a different heuristic, not a deliberate privacy
control — see that module’s own docstring) for incidental protection.
Mitigation today: none until classification happens. This is a per-deployment action item, not something fixable in the codebase itself.
Review date: before connecting to any database containing real
customer/employee PII — see docs/PRODUCTION_CHECKLIST.md.
Severity: High (for any use case where wrong answers are costly) · Status: Open
The most recent full live benchmark run (eval/results/run_20260901T151533Z.json,
57 cases, llama3.1:8b, against AdventureWorksDW2025) measured
35.0% final_accuracy and 29.6% result_set_accuracy, despite 92.3%
sql_execution_accuracy (the SQL runs; it’s frequently wrong). One
captured trace (eval/results/streamlit_run.log) shows the retry loop
regenerating byte-identical incorrect SQL across 3 consecutive retries for
one question — the self-correction mechanism doesn’t reliably self-correct
in practice. security_rejection_accuracy is the one dimension performing
at 100%. See docs/EVALUATION.md for the full breakdown.
Mitigation today: none structural. README.md’s “Known limitations”
already discloses model-dependence honestly. A larger or SQL-specialized
model (sqlcoder, duckdb-nsql) is the most direct lever, untested as of
this entry.
Update (2026-09-11, not yet re-benchmarked): the specific failure this
entry’s captured trace shows — the retry loop regenerating byte-identical
incorrect SQL — was traced to a reproducible root cause (a nested-aggregate
shape, AVG(CASE WHEN ... THEN SUM(x) ELSE 0 END), that every retry kept
reaching for with no way to know why it kept failing) and addressed
structurally: a static pre-execution check now catches that shape, and two
new graph nodes (plan_query_node/review_sql_node) add an up-front plan
docs/ARCHITECTURE.md). This is a plausible,
targeted fix for the observed failure mode, not a re-measured accuracy
number — python scripts/run_benchmark.py --check-regression has not been
re-run since these changes landed. Leave this entry Open until it has.Review date: re-run python scripts/run_benchmark.py --check-regression
after any model swap or prompt change (already GOVERNANCE.md’s stated
cadence) — this entry should be updated with the result each time.
Severity: Medium · Status: Mitigated (was: Open) — the mitigation is now a measurement rather than an argument
Update (2026-10-17, evening, at 08f385e). The scipy correction
below is no longer only reasoned from package metadata — the 3.11
resolution was executed and inspected:
python 3.11.16 with scipy 1.17.1
and numpy 2.4.6 installed, confirmed by running the interpreter
inside it (docker run --rm --entrypoint python …).analytics.causal, analytics.forecasting,
analytics.models, analytics.predictive, optimization.engine —
plus api.main, agent.graph and agent.sql_validator.So for scipy specifically, the 3.11 target is now verified rather than
assumed, and F-008 is closed
(certification/2026-10-17_release_gate_v2.md
§11.2). The risk itself stays open in substance, because the entry
is about the class of pin, not that one package: the DB drivers
(pyodbc, oracledb) are still chosen for cp314 wheel availability
and still have no live 3.11 verification against a database of their
type. The image importing api.main shows the driver installs on
3.11; it does not show it connects. The “cheap check before pinning
anything” below remains the operative instruction.
requirements.txt’s own header comment discloses that several DB-driver
version pins (pyodbc==5.3.0, oracledb==4.0.2, others) were selected for
cp314 wheel availability on this project’s dev machine, which only has
Python 3.14 installed — not independently verified against Python 3.11,
which is both pyproject.toml’s requires-python target and what
.github/workflows/ci.yml actually runs. CI passing is the closest thing
to verification this has had; no one has confirmed runtime behavior parity
beyond that.
This risk has materialized once, and the mitigation below did not
catch it. scipy==1.18.1 was pinned by 54842a9 (Prompt 39) for the
same reason — it was what resolved on the 3.14 dev machine. scipy 1.18.x
declares Requires-Python: >=3.12, so it cannot install on 3.11 at all;
it was corrected to scipy==1.17.1 (cp311 and cp314 wheels) on
2026-10-17. It reached origin/master and sat there. The instructive
part is the failure mode: an unsatisfiable pin fails at the dependency
install step, so the test suite never runs and “a pin that broke
import/basic behavior would surface in tests” does not apply — there are
no test results to read. The build failure itself was measured, not
inferred — the 2026-10-17 certification pass started a Docker daemon,
attempted the build, and filed it as F-008, the single
release-blocking defect behind that gate’s NO-GO verdict
(docs/certification/2026-10-17_release_gate_v2.md).
The CI consequence, by contrast, is reasoned from package metadata
rather than a run log (no gh CLI on this machine).
Mitigation today: CI runs the full mocked test suite against 3.11 on
every push/PR, and because requirements-dev.txt line 16 is -r
requirements.txt, an unresolvable pin does turn the blocking test job
red at install time — provided the branch is actually pushed. Several
local feature branches have no upstream, so a pin can be introduced and
exercised only against 3.14 for some time before any 3.11 resolver sees
it. CI also doesn’t exercise every driver against a live database of its
type.
Cheap check before pinning anything: confirm the candidate declares a
Requires-Python that admits 3.11 and publishes a cp311 wheel, not
just that pip install succeeded locally on 3.14.
Review date: before relying on DB_TYPE=mssql or oracle in a new
environment — smoke-test the specific driver against Python 3.11 first
(python scripts/test_db_connection.py).
Severity: Medium · Status: Open (long-standing, SECURITY.md already discloses this)
SECURITY.md’s own “What is explicitly not guaranteed” section states
this has not been through an independent security review, penetration
test, or third-party adversarial prompt-injection assessment — only this
project’s own reasoning, its own regression tests
(tests/test_adversarial_input.py, the adversarial eval category), and
this current audit (still one reviewer, not an independent one). Restated
here because a risk register is a more discoverable place for it than a
paragraph inside SECURITY.md, not because anything new was found.
Mitigation today: the layered design (SECURITY.md’s “What’s actually
enforced”) means a single missed prompt-injection vector is bounded by the
SQL validator’s allowlist and the read-only DB role underneath it, not
unbounded.
Review date: before any deployment handling real user data at scale.
Severity: Low (for today’s single-user, single-process usage) · Status: Open
db/connection.py has connection pooling (pool_pre_ping=True,
pool_recycle=1800) and clean failure classification, but no retry-with-
backoff on a transient connection failure, and no circuit breaker around
repeated Ollama failures (a down Ollama server fails each request
individually rather than short-circuiting after N consecutive failures).
Deliberately out of scope for this audit’s hardening pass — see
docs/PRODUCTION_READINESS_REPORT.md’s rationale for why this wasn’t
speculatively added.
Mitigation today: every failure mode is caught and classified, never
an unhandled crash (ConnectionTestResult, OllamaUnavailableError) — the
gap is efficiency/resilience under sustained partial outage, not
correctness or safety.
Review date: if/when this runs as a longer-lived multi-replica service where a stuck dependency’s blast radius grows — see V2 roadmap.
Severity: Low (for today’s single-user, single-process usage) · Status: Open
plan_query_node and review_sql_node (added 2026-09-11 — see
docs/security-changelog.md’s matching entry) each make their own Ollama
call but don’t check agent.rate_limit.get_llm_call_limiter, unlike
generate_sql_node. Both are gated behind agent/complexity.py’s
“non-trivial question” signal detection and ENABLE_QUERY_PLANNING, so an
ordinary question is unaffected, but for a question that does trigger
them, LLM_CALL_RATE_LIMIT_PER_MINUTE no longer bounds the realistic
worst-case LLM-call count for that question the way SECURITY.md
previously described (see that file’s “Rate limiting” section for the
corrected math).
Mitigation today: none — this is a genuine, currently-open gap, not a
mitigated one. The question-submission limiter
(QUESTION_RATE_LIMIT_PER_MINUTE) still bounds how often a new question
can even start a run, which caps the practical blast radius for today’s
single-user, single-process usage.
Review date: before this app is exposed beyond a single trusted local
user, or if ENABLE_QUERY_PLANNING usage patterns suggest LLM load from
this path is material — whichever comes first.
Severity: Critical (for a multi-tenant/multi-user deployment) · Status: Mitigated
Seeded from a 2026-09-13 Agentic-AI-focused security audit covering the
multi-source orchestrator (agent/orchestrator/), RAG, web search, and
media generation added since the 2026-09-01 audit this register was
originally drawn from. At the time this entry was written,
agent.orchestrator.nodes.classify_sources’s LLM output was trusted
directly by router_node/route_after_router to decide which subgraph(s)
actually execute, gated only by get_available_sources (a global config
flag, never a per-request/per-user decision).
Update (2026 Phase 2, restated here since this entry had gone stale):
this is fixed. agent/authz.py’s RBAC layer is now wired directly into
router_node — the LLM’s chosen source(s) are filtered through a
per-caller permission check (SOURCE_PERMISSIONS) before any subgraph
runs; a source the caller’s role doesn’t permit is dropped, never silently
allowed. Confirmed via direct code reading (agent/orchestrator/nodes.py),
not a doc claim — this is the fix docs/AUTHORIZATION.md describes and
SECURITY_BASELINE.md’s 2026 Phase 3 audit independently re-verified.
What’s still true: this only matters when authentication/authorization
is actually turned on (auth_mode != "none", see R-001) — with auth off
(the default), every caller is effectively the same trust tier, same as
before. require_generation_approval remains a separate, additional
human-in-the-loop gate for the one source that spends real money.
Mitigation today: real, not just partial — RBAC now independently authorizes each routing decision. Residual risk is scoped to R-001’s own “auth is off by default” caveat, not a structural gap in this layer itself.
Review date: re-confirm alongside any future change to
agent/orchestrator/nodes.py’s routing logic that this gate isn’t
bypassed by a new code path.
Severity: High (for a multi-tenant deployment) · Status: Mitigated (partially, deliberately)
api/documents.py’s upload/delete routes were originally gated only by
the same shared API_AUTH_TOKEN (or nothing, if unset) as every other
route — no ownership check, no per-user scoping, delete unconditional and
irreversible.
Update (2026 Phase 2): RBAC now gates each route by permission
(DOCUMENTS_WRITE/DOCUMENTS_DELETE/DOCUMENTS_READ/
DOCUMENTS_READ_SENSITIVE), not just “any caller with the shared token.”
Update (2026 Phase 3, 2026-09-16): rag.store.DocumentRecord gained
restricted_roles (an optional, operator-set per-document role
restriction, checked by rag/graph.py::_generate_node before the LLM sees
the chunk and by the download route) and uploaded_by (audit-trail only).
What’s still true, and now a confirmed deliberate design choice rather
than an unaddressed gap: there is still no per-resource ownership —
any caller holding DOCUMENTS_DELETE can delete any document, not just
ones they uploaded. docs/AUTHORIZATION.md’s “Known limitations” section
states this is intentional for this app’s shared-knowledge-base model, not
a tracked-for-fixing gap: restricted_roles is the access-control
mechanism this app supports (role-based), and per-uploader isolation was
deliberately not built since it would turn a shared assistant into
per-user file storage.
Mitigation today: RBAC (permission-gated routes) + optional
per-document restricted_roles. No ownership model, by design.
Review date: only revisit if this app’s shared-knowledge-base scope
itself changes — see docs/AUTHORIZATION.md’s own framing before treating
“add ownership” as a bug fix rather than a scope change.
Severity: Medium-High (largest fix requires a breaking major-version migration) · Status: Open
A pip-audit -r requirements.txt run on 2026-09-13 (added to CI as a
report-only step, continue-on-error: true — see
.github/workflows/ci.yml) found 65 known advisories across 10 pinned
packages, most transitive/tooling rather than this app’s own code
(chromadb, langgraph/langgraph-checkpoint/langgraph-sdk,
streamlit, langchain-core, pillow, python-dotenv, pytest,
black). streamlit was removed from requirements.txt on 2026-09-13
(the app it backed was deleted — see README.md’s News and Updates).
Update (2026-09-16, re-run as part of the 2026 Phase 3 security
review): a fresh pip-audit now measures 24 known vulnerabilities
across 7 backend packages — langgraph (0.2.62, needs 1.0.10, a major
rewrite), chromadb, pytest, black, langchain-core,
langgraph-checkpoint, langgraph-sdk — down from 65/10, largely
reflecting the streamlit removal and interim patch-level bumps, but
still not triaged/fixed. npm audit (frontend): 0 vulnerabilities, both
in the 2026 Phase 2 and Phase 3 passes. Every remaining backend advisory
requires a major-version bump; langgraph 0.2→1.0 in particular touches
the entire compiled-graph architecture (agent/graph.py,
agent/orchestrator/graph.py, every node function) and was deliberately
not attempted without dedicated regression-testing time (see
SECURITY_FINAL_REPORT.md’s §17/§28). requirements.txt’s exact pins
also still have the open, related R-004 gap (verified against Python
3.14, not 3.11).
Also open, from the same 2026 Phase 3 pass, logged here rather than as
separate entries since they share this item’s “known, not yet closed”
character: CI’s gitleaks/trivy jobs remain continue-on-error: true
— neither could be run to establish a clean baseline in that pass’s
environment, so flipping them to blocking has not happened; the Dockerfile
purge fix (docs/security-changelog.md’s 2026-09-16 entry) was not
confirmed via a successful docker build in that environment either —
verify both before relying on them in a real deployment.
Update (2026 dependency/CI-hardening pass — status changed, not just
re-measured): pip-audit still finds the same 24/16-unique/14-CVE
count (zero drift — no new advisories, no new fixes published), but every
one was independently re-verified reachable/not-reachable this pass with
file:line grep evidence (not re-cited from this entry) — see
docs/security/CVE_TRIAGE.md. pip-audit is now a blocking CI gate
(continue-on-error removed), via a specific, individually-justified
--ignore-vuln allowlist of exactly these already-triaged IDs, not a
severity threshold — a genuinely new or newly-reachable advisory still
fails the build. detect-secrets (a runnable local equivalent to
gitleaks) was added as a second, blocking secret-scan gate with a
committed .secrets.baseline. Still open, unchanged: gitleaks
itself remains continue-on-error: true (the Go binary was never
installable in either engagement’s sandboxed environment — it runs
natively on GitHub’s own Actions runners regardless, just never locally
verified). Newly closed, this pass: the Dockerfile build that
docker build verification note above flagged as unconfirmed did
successfully build and was scanned with Trivy for the first time this
project has ever had that done — 29 new CRITICAL/HIGH findings (OS
packages in the Debian base image + 4 Python-ecosystem findings pip-audit
doesn’t see at all), 4 confirmed not-reachable, ~17 OS-level only
partially reachability-verified — see docs/security/CVE_TRIAGE.md §4.
The langgraph 0.2→1.0 migration itself remains not attempted,
across three separate engagements now, each deliberately deferring it for
the same reason — see the dedicated
docs/security/LANGGRAPH_UPGRADE_SECURITY_ASSESSMENT.md.
Mitigation today: pip-audit/bandit/detect-secrets now actually
block a merge on a new finding, not just surface one. gitleaks/Trivy
remain visibility-only in CI specifically (though Trivy has now been run
and triaged manually once, outside CI).
Review date: before the next dependency-bump pass, and specifically
before scheduling the langgraph 1.0 migration as its own project; flip
gitleaks’s continue-on-error off once it’s been run somewhere that
can actually execute it (this project’s own sandboxed dev environments
have not been able to, twice now); consider flipping the Trivy CI step
too now that a real local run exists to baseline against.
Severity: Low · Status: Mitigated (partially)
agent.rate_limit.get_session_expensive_source_limiter (added
2026-09-13, see docs/security-changelog.md) caps combined
generation/web source invocations per session_id within a rolling
window (SESSION_EXPENSIVE_SOURCE_LIMIT/_WINDOW_SECONDS). session_id
is a real per-conversation correlation token, but it’s client-supplied and
unauthenticated (same posture as AskRequest.session_id generally) — a
caller can always reset their own budget by minting a fresh one, exactly
like the existing per-IP API rate limiters (api/rate_limit.py) can be
evaded by changing IP. This is a genuine speed bump against accidental/
casual repeated cost, not a hard ceiling against a deliberate, motivated
caller.
Mitigation today: the per-source limiters (media_gen_rate_limit,
Tavily’s own per-call cost) still apply process-wide underneath this one
regardless of session_id — a fresh session can reset its own budget but
not the process-wide ones.
Review date: alongside R-001/R-008 — a real fix requires session_id to be tied to actual authenticated identity, not just a correlation token.
Severity: Medium (higher if the configured library could contain sensitive imagery/audio) · Status: Open
Media search (ENABLE_MEDIA_SEARCH, off by default) indexes and makes
searchable everything under MEDIA_LIBRARY_PATH — including OCR’d
on-screen text, ASR transcripts, and generated captions — with no
per-item sensitivity-tagging mechanism at all, unlike policy RAG’s
SensitivityCategory gate (docs/GOVERNANCE.md’s “Data classification
policy,” extended to policy documents 2026-09-10). A photo or recording
containing something restricted (a face, a license plate, spoken PII, a
sensitive document photographed on-screen) is exactly as retrievable as
any other indexed item — there is no equivalent of the policy-RAG
“never summarized into an answer” fail-closed gate for this data shape.
Mitigation today: none beyond the operator’s own judgment about what goes in the configured library folder — this is the same “add the classification/authorization layer yourself before connecting anything sensitive” posture R-002 already states for database columns, applied to a new data shape this project added after R-002 was written.
Review date: before pointing MEDIA_LIBRARY_PATH at any folder that
could contain sensitive imagery, recordings, or on-screen text — see
docs/PRODUCTION_CHECKLIST.md.
Severity: Medium · Status: Accepted (a deliberate design tradeoff, not an oversight)
The pre-ingestion moderation gate (moderation/, mandatory whenever
ENABLE_MEDIA_SEARCH or ENABLE_DOCUMENT_RAG/ENABLE_POLICY_RAG is on)
calls Azure AI Content Safety’s REST API for every chunk of every file
before it can be embedded/stored. This is a real, disclosed departure from
this project’s otherwise “fully local, Ollama not a hosted API” posture
(README.md’s “Why this project”) – unlike voice mode/media search’s own
embedding path, no mainstream moderation classifier with comparable
accuracy runs fully on-device today, and this project’s own design note
for the feature states that tradeoff explicitly rather than silently
picking a path. A practical consequence: ingestion for either pipeline now
requires outbound HTTPS reachability to Azure and a paid Content Safety
resource – an Azure outage or misconfiguration blocks all new
image/video/PDF ingestion (existing, already-embedded content is
unaffected; only new ingestion is gated).
Mitigation today: the provider is pluggable
(moderation.provider.SUPPORTED_MODERATION_PROVIDERS, shaped like
search/web_search.py’s own provider map) – swapping to a different
provider, or in principle a self-hosted one, is a config/code addition,
not a redesign.
Review date: if a locally-run moderation classifier with acceptable accuracy becomes practical, revisit whether Azure should remain the only implemented provider.
Severity: Low (a soft-flag category, never a hard-reject – see below) · Status: Open
moderation/taxonomy.py’s synthetic_media category exists in the
taxonomy but has no detector wired in – every image/video chunk is
recorded as "not_checked" for this category, honestly, rather than
silently omitted or falsely presented as covered. No mainstream cloud
moderation API (including Azure Content Safety, the one provider
implemented) reliably classifies AI-generated/manipulated media as of this
writing. This category is deliberately a soft-flag, never a hard-reject,
even once a real detector is eventually plugged in – deepfake/synthetic-
media classifiers have well-documented accuracy limits, and auto-rejecting
real user content on a false positive was judged a worse failure mode than
under-flagging.
Mitigation today: none – disclosed as a known gap rather than
implemented as a weak/misleading control. docs/RESPONSIBLE_AI.md states
this alongside media generation’s own similarly-honest content-policy
disclosure.
Review date: if a specific, evaluated synthetic-media detector (cloud or local) becomes available with a stated accuracy profile worth building a real (still soft-flag) check around.
Severity: Medium · Status: Open
frontend/src/lib/auth.ts/store/authStore.ts (2026 Phase 3, see
docs/AUTHENTICATION.md’s “Frontend OIDC login” section) implement a real
Authorization Code + PKCE flow via oidc-client-ts, but no live identity
provider or browser automation tooling was available to click through the
interactive flow end-to-end (real login redirect, consent screen,
silent-renew-via-hidden-iframe behavior, sign-out-at-IdP) in the
environment this feature was built in.
Mitigation today: tsc --noEmit, oxlint, and npm run build all
pass; the implementation follows oidc-client-ts’s documented API and
PKCE flow shape. This is meaningful but not equivalent to an end-to-end
run — a subtle misconfiguration (redirect URI mismatch, scope issue,
silent-renew iframe blocked by a CSP or browser setting) would not have
been caught by static checks alone.
Review date: before enabling VITE_OIDC_AUTHORITY/VITE_OIDC_CLIENT_ID
in any real deployment — exercise the full flow against your actual
identity provider (Auth0/Okta/Azure AD/Keycloak/other) first, including
sign-out and a forced token-expiry silent-renew, not just the happy-path
login.
Update (2026 production-readiness gate): independently re-confirmed
still open — no live IdP became available in this sandboxed environment
either. This gap is severe enough on its own to be one of three named
reasons the gate’s own verdict was NOT READY rather than
READY WITH DOCUMENTED ACCEPTED RISKS — see
docs/security/OIDC_E2E_TEST.md for the exact click-through procedure
that would close it, and docs/security/FINAL_PRODUCTION_GATE.md.
Severity: Medium (was previously “no abstraction at all exists” — Low/informational since there was nothing to misconfigure; now a narrower, more specific gap) · Status: Open
security/malware_scanner.py (ClamAV INSTREAM protocol, added in the
2026 dependency/CI-hardening pass) closes the “no MalwareScanner
abstraction exists” gap every prior file-upload security document in this
repo named as the most significant remaining one
(docs/FILE_UPLOAD_FINAL_REPORT.md, SECURITY_FINAL_REPORT.md §12).
Fail-closed logic (infected/timeout/unreachable/malformed all reject) is
real and unit-tested against a mocked socket
(tests/security/test_malware_scanner_gate.py, 18 tests). It has never
been run against a real clamd daemon, and Settings.malware_scan_provider
defaults to "disabled" — a deliberate choice (defaulting to “on” would
have silently changed upload behavior for every existing deployment
without a ClamAV daemon), but it means an operator who enables
ENABLE_DOCUMENT_RAG/ENABLE_POLICY_RAG/ENABLE_MEDIA_SEARCH without
also separately setting MALWARE_SCAN_PROVIDER=clamav gets zero
malware scanning, with only an audit-log line (malware_scan_skipped) as
the visible signal.
Mitigation today: the content-moderation gate (mandatory, Azure Content Safety + text blocklist) and magic-byte/size/page-count validation all still run regardless — this isn’t the only upload control, just the one specifically aimed at binary malware signatures.
Review date: before any deployment enables file-upload features for a
genuinely adversarial/untrusted population — stand up a real clamd
daemon, set MALWARE_SCAN_PROVIDER=clamav, and verify with at least an
EICAR test string before relying on this.
Severity: Medium-High (unknown unknowns by definition) · Status: Open
No dynamic application security testing (OWASP ZAP or equivalent) has
been performed at any point in this repository’s history, across three
separate security-focused engagements now. Each has independently
disclosed this rather than papering over it (SECURITY_FINAL_REPORT.md
§18, and now docs/security/DAST_REPORT.md). No staging environment or
live Ollama+database instance has been available in any sandboxed session
this work has been done in.
Mitigation today: TestClient-driven HTTP-level tests exist for
security headers, auth status codes, and IDOR (real request/response
cycles, not pure unit tests) — explicitly documented in
docs/security/DAST_REPORT.md as dynamic-adjacent, not a substitute.
Review date: before any production deployment — this is one of the
three named reasons docs/security/FINAL_PRODUCTION_GATE.md’s verdict is
NOT READY, not a lower-priority nice-to-have. See that document’s own
procedure section for exactly what running this would involve.
Severity: Medium (only material for a horizontally-scaled deployment) · Status: Open
agent/rate_limit.py’s own docstring already discloses this
(“Deliberately simple: no persistence, no distributed coordination,
resets on every app restart… not a substitute for real rate limiting in
a multi-tenant deployment”). Confirmed via grep this pass: zero Redis
usage anywhere in this codebase or requirements.txt. A single-instance
deployment is fully protected by the existing limiter (independently
re-verified this pass to also be immune to X-Forwarded-For/X-Real-IP
header-spoofing bypass attempts —
tests/security/test_rate_limit_header_spoofing.py); a multi-instance
deployment’s per-instance limits each still individually hold, but the
intended global budget can be exceeded by an attacker spread across
instances.
Mitigation today: none beyond the existing per-instance limiter.
Review date: before any horizontally-scaled (multi-instance) production deployment.
Severity: Low (a documentation/process gap, not a technical vulnerability) · Status: Partially mitigated
SECURITY_FINAL_REPORT.md §25 explicitly recorded docs/INCIDENT_RESPONSE.md
as “NOT PRODUCED” — carried as an open, named gap across every prior pass
until the 2026 production-readiness gate produced a first version
(docs/security/INCIDENT_RESPONSE.md), grounded in this app’s actual,
grep-confirmed log_security_event inventory rather than generic
boilerplate. One real, concrete gap was found and disclosed while writing
it: SSRF rejections (media_gen/download.py::_validate_download_url)
raise an exception but never call log_security_event, unlike every
other rejection class documented.
Mitigation today: the document exists and is specific to this codebase’s real signals, not a template.
Review date: before relying on this for a real incident — it has
never been tabletop-tested against a simulated scenario with an actual
on-call owner. Also: wire log_security_event into
_validate_download_url’s rejection paths (a small, concrete follow-up
named in the incident-response document itself).
Severity: Medium · Status: Open (found 2026-10-17, not fixed)
With two or more connections in DB_CONNECTIONS,
embeddings/retriever.py::select_database picks the database whose single
best-matching table embedding scores highest. Schema-text similarity
is the only signal; whether a table contains rows is not considered. Its
docstring does say a database is skipped when its index “isn’t built yet
(or is empty)” — that means an empty index, not an empty table.
Reproduced live against the development deployment (4 connections):
“How many employees are in each department?” routed to hr, whose
Employee and EmployeeOrganizationAssignment tables both hold 0
rows, while employee_management_database — configured, indexed and
holding 15 employees across 6 departments — was not selected. hr’s
richer HR vocabulary (EmployeeOrganizationAssignment, similarity
0.7513) outranked the plainer Employee/Department naming. Filed as
F-012 in
certification/2026-10-17_release_gate_v2.md
§11.4.
Why this is Medium and not High. Nothing incorrect was returned and
nothing was fabricated: insight was null, the analytical layer
reported shape: "empty" with insufficient_data_reasons, and the
persisted answer read “Query succeeded. 0 row(s) returned.” The
provenance rule (CLAUDE.md §4.4) held. The failure is usefulness,
not correctness — and it cannot occur at all in a single-database
deployment, where select_database short-circuits with no Chroma query.
What makes it worse than it first looks: there is no user recourse.
AskRequest has no database field — extra="forbid" rejects one with
a 422, confirmed — and the UI’s SourcePicker selects source types
(sql / documents / web / …), not database connections. A user who can
see that the answer came from the wrong database still cannot redirect
the question.
Mitigation today: none in code. Operationally, point a deployment at
one database, or remove schema-only/empty connections from
DB_CONNECTIONS.
Options, none chosen — this is an owner decision:
AskRequest field
plus a picker). Most direct; adds a surface that must be RBAC- and
tenant-filtered exactly as sources already is, or it becomes a way
to reach a connection the caller should not see.Review date: before any demo or UAT session that has more than one database configured — this is the most likely cause of a UAT J5.1 failure.
(None currently accepted — this section exists for GOVERNANCE.md’s
exception process to log into going forward. An exception logged here must
cross-reference a matching dated entry in docs/security-changelog.md if
it touches a change-controlled item, per that document’s own rule.)