Skip to content

[security] Chunk/prefix cache keys ignore source and policy #83

Closed

Description

@chiruu12

Problem

Chunk and safe-prefix cache keys are content-hash (plus document / normalizer / model version) only. They do not include source/trust level, scan policy, or scanner set. A result cached under a permissive path (e.g. USER / ALLOW) can be reused for a stricter path (e.g. RETRIEVED), bypassing intended taint and policy differences.

Expected / acceptance criteria

  • Cache key includes source (and/or trust level), effective policy identity, and scanner set (or equivalent fingerprint)
  • Same text under different source/policy/scanner config does not reuse a prior chunk or prefix entry
  • Regression: USER allow must not satisfy a later RETRIEVED (or stricter) scan via cache hit

Related

Safe-prefix boundary overlap is tracked separately.

Activity

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

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions