[P2] V02: Verify adversarial authorization, runtime isolation and long-run memory stability #35

Open
opened 2026-10-21 20:29:32 +02:00 by amiryahaya · 0 comments
Owner

Backlog ID: V02 | Priority: P2 | Phase: M6 — Release evidence and approved deployment

Outcome and scope

Run system-level adversarial, concurrent sentinel and soak suites across every trust boundary, including real PostgreSQL/Qdrant and selected runtime.

Dependencies and gates

Engineering prerequisites: #22 (I05), #23 (R02), #29 (U02), #28 (H03), #25 (E02), #30 (O01), #33 (O02)

Synthetic-data development may proceed. Production use remains subject to the decision gates in the SRS.

Starting points

tests/security/; tests/soak/; docs/security/threat-model.md; docs/security/verification-results.md

These are current files or proposed responsibility boundaries; finalize a focused implementation plan before coding. Existing local scaffolding is uncommitted and is not evidence of completion.

Acceptance criteria

  • Prove no unauthorized content/existence leakage through IDs, counts, pagination, snippets, history, citations, feedback, errors, caches or permitted timing observations.
  • Unique concurrent user sentinels never appear in another user’s prompts/results/runtime state/logs/traces; cancel/logout/expiry/error paths reset or retire slots.
  • Host/GPU memory stabilizes in the documented operating range after repeated completed/cancelled/timed-out turns; leaks or stale state block release.
  • Test stale/forged index payloads, prompt injection, dependency failure, egress denial, audit tampering and mid-stream revocation.
  • Verify production core-dump, swap/pagefile, debugger, payload logging and browser storage settings; qualify zeroization claims to tested buffers/runtime behavior.

Verification

Retain reproducible threat-model traceability, test evidence and unresolved findings; independent security review signs off as required by the authority.

Behavior changes follow Red → Green → Refactor. Run affected Rust shared contract/unit tests and real PostgreSQL/Qdrant/runtime integration tests where applicable; frontend changes run typecheck/build and the relevant browser tests. Record exact commands/results in the implementation PR. Documentation/decision tasks use recorded review evidence.

Requirements and design

FR-PRIV-001–006; NFR-SEC-001, 004–005, NFR-PERF-005; SRS §8 criteria 2–4, 9, 15–16; architecture §14

Sources: SRS, system design. Local planning context: docs/implementation-plan.md and docs/development-backlog.md (not published by this task).

Security impact: Use synthetic fixtures until approved for operational data. Preserve current authorization, markings, provenance and default-deny behavior; exclude protected payloads/secrets from operational telemetry. No classified-deployment or PQC-compliance claim is implied by closing this issue.

Parent roadmap: #1

**Backlog ID:** V02 | **Priority:** P2 | **Phase:** M6 — Release evidence and approved deployment ## Outcome and scope Run system-level adversarial, concurrent sentinel and soak suites across every trust boundary, including real PostgreSQL/Qdrant and selected runtime. ## Dependencies and gates **Engineering prerequisites:** #22 (I05), #23 (R02), #29 (U02), #28 (H03), #25 (E02), #30 (O01), #33 (O02) Synthetic-data development may proceed. Production use remains subject to the decision gates in the SRS. ## Starting points tests/security/; tests/soak/; docs/security/threat-model.md; docs/security/verification-results.md These are current files or proposed responsibility boundaries; finalize a focused implementation plan before coding. Existing local scaffolding is uncommitted and is not evidence of completion. ## Acceptance criteria - [ ] Prove no unauthorized content/existence leakage through IDs, counts, pagination, snippets, history, citations, feedback, errors, caches or permitted timing observations. - [ ] Unique concurrent user sentinels never appear in another user’s prompts/results/runtime state/logs/traces; cancel/logout/expiry/error paths reset or retire slots. - [ ] Host/GPU memory stabilizes in the documented operating range after repeated completed/cancelled/timed-out turns; leaks or stale state block release. - [ ] Test stale/forged index payloads, prompt injection, dependency failure, egress denial, audit tampering and mid-stream revocation. - [ ] Verify production core-dump, swap/pagefile, debugger, payload logging and browser storage settings; qualify zeroization claims to tested buffers/runtime behavior. ## Verification Retain reproducible threat-model traceability, test evidence and unresolved findings; independent security review signs off as required by the authority. Behavior changes follow Red → Green → Refactor. Run affected Rust shared contract/unit tests and real PostgreSQL/Qdrant/runtime integration tests where applicable; frontend changes run typecheck/build and the relevant browser tests. Record exact commands/results in the implementation PR. Documentation/decision tasks use recorded review evidence. ## Requirements and design FR-PRIV-001–006; NFR-SEC-001, 004–005, NFR-PERF-005; SRS §8 criteria 2–4, 9, 15–16; architecture §14 Sources: [SRS](https://forgejo.primatekun.tech/primatekuntech/rag-rust/src/branch/main/docs/SRS.md), [system design](https://forgejo.primatekun.tech/primatekuntech/rag-rust/src/branch/main/docs/architecture.md). Local planning context: `docs/implementation-plan.md` and `docs/development-backlog.md` (not published by this task). **Security impact:** Use synthetic fixtures until approved for operational data. Preserve current authorization, markings, provenance and default-deny behavior; exclude protected payloads/secrets from operational telemetry. No classified-deployment or PQC-compliance claim is implied by closing this issue. **Parent roadmap:** #1
Sign in to join this conversation.
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
primatekuntech/rag-rust#35
No description provided.