[P0] K01: Establish the crypto inventory and versioned configuration boundary #5

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

Backlog ID: K01 | Priority: P0 | Phase: M0 — Decisions and feasibility

Outcome and scope

Inventory browser/ingress, service links, identity signatures, PKI, PostgreSQL/Qdrant, runtime, volumes/backups, KMS/HSM, artifact signing and update channels. Define purpose-based, versioned approved-profile configuration without implementing crypto protocols.

Dependencies and gates

Engineering prerequisites: None — ready to start.

Inventory and interfaces start immediately; authority-approved algorithms/providers/KMS and final topology depend on D01 before protected deployment.

Starting points

crates/crypto-config/; docs/security/crypto-inventory.md; docs/security/crypto-profile.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

  • Each inventory entry records peers, algorithms/protocols, provider/version, key/certificate references, data lifetime/scope, owner, evidence and migration state.
  • Configuration rejects unknown or incompatible required profiles at startup; no algorithm choice comes from user input and no secret material enters inventory/logs.
  • Define ciphertext/signature metadata identifiers for rotation/migration and explicitly track unsupported PQ endpoints.
  • Proposed profiles and approved profiles are distinct; no PQC-safe/compliance claim is made from TLS 1.3 or a crate feature.

Verification

Contract tests reject missing/unknown profiles and secret-bearing diagnostic output. Review inventory coverage against SRS acceptance criterion 11.

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-CRYPTO-001–003, 006–010; NFR-MAINT-001–003; architecture §10

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:** K01 | **Priority:** P0 | **Phase:** M0 — Decisions and feasibility ## Outcome and scope Inventory browser/ingress, service links, identity signatures, PKI, PostgreSQL/Qdrant, runtime, volumes/backups, KMS/HSM, artifact signing and update channels. Define purpose-based, versioned approved-profile configuration without implementing crypto protocols. ## Dependencies and gates **Engineering prerequisites:** None — ready to start. Inventory and interfaces start immediately; authority-approved algorithms/providers/KMS and final topology depend on D01 before protected deployment. ## Starting points crates/crypto-config/; docs/security/crypto-inventory.md; docs/security/crypto-profile.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 - [ ] Each inventory entry records peers, algorithms/protocols, provider/version, key/certificate references, data lifetime/scope, owner, evidence and migration state. - [ ] Configuration rejects unknown or incompatible required profiles at startup; no algorithm choice comes from user input and no secret material enters inventory/logs. - [ ] Define ciphertext/signature metadata identifiers for rotation/migration and explicitly track unsupported PQ endpoints. - [ ] Proposed profiles and approved profiles are distinct; no PQC-safe/compliance claim is made from TLS 1.3 or a crate feature. ## Verification Contract tests reject missing/unknown profiles and secret-bearing diagnostic output. Review inventory coverage against SRS acceptance criterion 11. 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-CRYPTO-001–003, 006–010; NFR-MAINT-001–003; architecture §10 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#5
No description provided.