DashboardcliGHCR OCI runtime validation

GHCR OCI runtime validation

Category: gotcha
Confidence: 1.00
ID: 01a08ab5-5028-7d40-8b3b-43bae7445b05
Project ID: c760f4f9-42b0-4ce0-b36d-6b8c38d770b2
Cross-project: No
Recalled in other projects: 1
Source session: 06aLRoB0AYUPw7Dkg
Created: 2026-09-10 08:32:10
Updated: 2026-09-10 09:45:33

Cross-Project Recalls

ProjectHitsLast recalled
opencode-lore 3 13h ago

Content

Trap: TypeScript-casting successful GHCR JSON looks safe because registry responses are conceptually typed, but malformed HTTP 200 payloads can select or cache bogus nightlies. Fix: require a trimmed, non-empty token with no surrounding whitespace; require annotation records to be non-array objects; and validate OCI schema version 2, layers, consumed media fields, finite non-negative sizes, and sha256:<hex> digests. Malformed or mismatched metadata remains terminal.

Move to: