Skip to content

SEC: registry integrity — signatures/hash fields, sync identity binding + size limit, store runtime hardening (R1/R2/R3/R7) #24

Closed

Description

@Xuepoo

Priority: P0 | Area: registry | Labels: fix,area:plugins,P1 | Milestone: v0.1.0 | Task: TBD

Minimal-usable integrity per decision (Phase 1):

  • R1: schema.json optional signature {algorithm,value,signer} + manifest_hash; registry-lib warns when unsigned (no hard key management yet); index records signature status; store greys unverified.
  • R2: sync-metadata must compare fetched plugin.id to entry.id and refuse to write on mismatch.
  • R3: fetchText Content-Length pre-check + 256 KiB cap, keep old metadata on over-limit.
  • R7: isRegistry re-checks ID_PATTERN/REPOSITORY_PATTERN; externalLink https-only; installCommand returns empty/hides copy for illegal ids.
    Evidence: research/review/2026-09-15/10-plugins.md R1/R2/R3/R7
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

    P1area:pluginsfix

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions