Skip to content

Epic: Store security — containment, exposure docs, trust tiers, and rejections that stick #83

Closed
6 of 6 issues completed

Description

@abogartz

Why

Everything this plugin persists can be read three ways: injected into future prompts, written to a file by memory_export, or served by the viewer over HTTP. The open tickets are one failure family with three faces:

Children, with dependencies

  1. memory_export/memory_import accept arbitrary paths outside the memory root #24 — export/import path containment. Small, is the fix direction already written; a steered model needs only a path today.
  2. viewer: startup warning when OPENCODE_VIEWER_ALLOWED_HOSTS exposes the store beyond loopback #13 — document the non-loopback viewer exposure loudly (+ startup warning). Zero-code risk, stops the self-inflicted variant while memory_export/memory_import accept arbitrary paths outside the memory root #24 lands.
  3. P0: Value-keyed rejection tombstone — rejected content must stay rejected across re-ingestion #35 — value-keyed rejection tombstone (P0). The durable-rejection gap everything else in the field fails; its red-first acceptance test is P3: Negative-eval stress suite — forbidden hits, abstention, no-memory floor, re-ingestion, metric controls #43 item 4 (retrieval epic), so the two epics meet there.
  4. P1: Persist trust/provenance state on memory rows (src=) and surface it in injection #37 — persist trust/provenance on rows (src= tier + the session-pointer scope merged in from P1: Turn pointers on auto-captured memories (session provenance) #39).
  5. P1: Write-side threat scan for capture/import paths — quarantine tag instead of injection #38 — write-side threat scan → quarantine tag. After P1: Persist trust/provenance state on memory rows (src=) and surface it in injection #37: quarantine is an additional read-path withhold on top of the row tags P1: Persist trust/provenance state on memory rows (src=) and surface it in injection #37 introduces, not a parallel mechanism.
  6. Secrets already in the store are never scrubbed, and memory_export writes them verbatim #74 — scrub pre-existing secrets across day files and snapshots. Sharpest after memory_export/memory_import accept arbitrary paths outside the memory root #24 (containment defines what an export leak is); must not be cosmetic while memory_undo --force can restore a redacted secret from a snapshot.

Done already (context, not scope)

Forward-only redaction ships with PR #67; request guards ship with #10/#11/#12; ts shape validation with #15. This epic is the residue those PRs deliberately left out.

Sub-issues

Sub-issues

6 of 6 Issues completed
Loading 6 sub-issues

Activity

  1. added
    store-security
    on Oct 24, 2026
  2. added
    severity:high
    on Oct 30, 2026
  3. abogartz commented on Nov 1, 2026

    @abogartz
    OwnerAuthor

    The architecture review synthesis (2026-11-01) adds four members to this failure family:

    Positive verification from the same review: redaction at the write choke point (src/memory.ts:289 via :253), snapshot-name containment, the Host/Origin/CSRF layer, CSP, and the secret-check script all still hold.

  4. ocsi-triager commented on Nov 3, 2026

    @ocsi-triager

    All 6 sub-issues closed as completed: #24, #13, #35, #37, #38, #74. Closing the epic.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    severity:highstore-security

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions