# Risk Register - **Status:** Maintained; RFC-0036 gate 3. - **Owner:** Security owner. - **Last updated:** 2026-12-01 Every finding of a review is either fixed with a regression test or accepted here as a residual risk. Each accepted risk names its owner, the reason it is accepted, the control that limits it, and the date by which it is reviewed again. A review either accepts it again with a new date, or fixes it and moves it to the closed list below. The release workflow refuses to publish while any accepted risk has expired (`tools/release_lint.py --publishing`), and `tests/contract/test_risk_register.py` checks that every residual risk of RFC-0031 and RFC-0035 is listed, as accepted or as closed. Until a second maintainer joins, the maintainer (Psychevus) holds both roles named as owners. ## Accepted | ID | Risk | Source | Rationale | Compensating control | Owner | Expires | | --- | --- | --- | --- | --- | --- | --- | | RR-1 | After an alias is re-pointed, envelopes under its old key still open through the alias until the five-minute resolution cache expires. | RFC-0031: Alias re-pointing | Resolving the alias on every open would cost a key-service call per envelope; the cache bounds the window to five minutes. | List the old key in `decryption_keys` before re-pointing ([rotation guide](../../guide/rotation-and-recovery.md)). | Security owner | 2027-06-30 | | RR-2 | Base-mode HPKE recipients, including COSE-HPKE and escrow, authenticate the recipient, not the sender: anyone holding the public key can seal to it. | RFC-0031: No sender authentication | Sender authentication needs a signature or HPKE's authenticated modes, which format version 1 does not carry. | Sign envelopes whose origin matters, or keep the HPKE recipient as escrow next to a key-service primary. | Security owner | 2027-06-30 | | RR-3 | boto3 and hvac take timeouts only when the client is built, so the policy's deadline cannot cut an AWS or Vault call in flight short. | RFC-0031: Per-client timeouts (AWS, Vault) | Both SDKs fix timeouts per client; a provider cannot change them per call. | The deadline is checked between attempts; the AWS provider makes a single attempt; both providers' READMEs build the client with timeouts inside the 30-second deadline. | Security owner | 2027-06-30 | | RR-4 | No independent audit has been completed. | RFC-0031: No independent audit yet | RFC-0036 replaces the funded audit for 4.0.0 with a public review period, an external review, an external trial, an independent rebuild, and continuous fuzzing; the audit remains the separate `audited` level. | Every document states that the code is not independently audited (`tests/contract/test_trust_claims.py`); the [audit scope](audit-scope.md) and [threat model](threat-model.md) are public. | Security owner | 2027-06-30 | | RR-5 | Opening costs time linear in an envelope's record count, and an author may choose a 1-byte chunk size. | RFC-0035: Record-count work (CORE-3) | A reader-side minimum chunk size would refuse valid envelopes; it needs a format decision. | The work is bounded by the policy's `max_plaintext_bytes` and `max_stream_bytes`; lower them for untrusted senders. | Security owner | 2027-06-30 | | RR-6 | Cloud KMS does not enforce a version pin for symmetric keys. | RFC-0035: Cloud KMS symmetric versions (PROV-7) | The service picks a symmetric key's version from the ciphertext and does not report it. | A version label must be a version of the configured key, and every version belongs to that one trusted key. | Security owner | 2027-06-30 | | RR-7 | A party that can both wrap under a hierarchical root key and write to the branch-key store can plant a branch key it knows. | RFC-0035: Planting with wrap rights (PROV-1) | Wrapping under the root is the root's purpose; who may write the store is the deployment's decision. | A branch key is used only if the configured root key wrapped it; keep store writes with key administrators, and prefer a root whose wrap needs authorization over a public HPKE key. | Security owner | 2027-06-30 | | RR-8 | A COSE message makes at most two full-content decryption attempts, so a message carrying two recipients lifted from other messages ahead of the genuine one does not open. | RFC-0035: COSE content attempts (COSE-1) | The limit bounds one message's work at two content decryptions instead of one per recipient. | Only availability is affected, and whoever can add recipients to a message can already make it fail; nothing opens to another message's plaintext. | Security owner | 2027-06-30 | | RR-9 | The release relies on settings outside the repository: the tag ruleset, the protected PyPI environments with their reviewers and tag rule, and each trusted publisher's binding to its environment. | RFC-0035: Repository and release settings (SC-3) | GitHub and PyPI hold these settings; no file in the repository can enforce them. | Applied 2026-11-30 and recorded in [release readiness](../release-readiness.md) row 8l; the release workflow accepts only a tag on a commit of `main` and verifies artifact digests before attesting and publishing. The check job's tooling, pinned by version when RFC-0035 was written, is now pinned by hash (`requirements-release.txt`). | Release engineering | 2027-06-30 | | RR-10 | On Windows, directories above the configured output root are not pinned against replacement. | RFC-0035: Windows ancestors (SYS-1) | Where the output root lives is the caller's choice; the SDK pins every component from the root down. | Choose an output root whose parent directories only trusted accounts can modify. | Security owner | 2027-06-30 | | RR-11 | Two processes that overwrite the same file at the same moment can both succeed, the later replacing the earlier's output. | RFC-0035: Overwrites across processes (SYS-7) | No portable rename replaces only a file of a given identity. | Within one process the second overwrite fails; give each writer its own destination, or coordinate writers that share one. | Security owner | 2027-06-30 | | RR-12 | No change is approved by a second person before it merges. | OpenSSF Scorecard: Code-Review (alert 20, dismissed 2026-12-01) | The project has one maintainer, and GitHub does not let an author approve their own pull request. | Every change lands through a pull request with the full CI and an automated review; RFC-0036's public review, external review, and independent rebuild put outside eyes on the release itself. Closes when a second maintainer joins. | Release engineering | 2027-06-30 | | RR-13 | `main` does not require approvals, code-owner review, or approval of the last push. | OpenSSF Scorecard: Branch-Protection (alert 1, dismissed 2026-12-01) | Each of these needs a second person to approve. | `main` requires pull requests and refuses force pushes and deletion; tags and the PyPI environments are protected (RR-9). Closes when a second maintainer joins. | Release engineering | 2027-06-30 | ## Closed None yet. A risk that is fixed moves here and keeps its ID, as a row with five columns: ID, risk, source, the change that fixed it, and the date it closed.