Skip to content

Recompute cached MPK hashes during audit - #4

Merged
GG-O-BP merged 1 commit into
mainfrom
fix/audit-hash-verification
Sep 3, 2026
Merged

Recompute cached MPK hashes during audit#4
GG-O-BP merged 1 commit into
mainfrom
fix/audit-hash-verification

Conversation

@GG-O-BP

@GG-O-BP GG-O-BP commented Sep 3, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • mendraw#4 reported missing supply-chain integrity verification. The current pipeline already SHA-256s downloads into a content-addressed cache and pins hashes in mxpak.lock, but mxp audit only checked whether a hash-named directory existed.
  • A new mxpak/audit module rereads each cached original.mpk, recomputes SHA-256, and compares it with the pinned lock hash.
  • Outcomes are typed (Verified, HashMismatch, CacheMissing, CacheUnreadable, HashUnavailable) and the CLI reports expected/actual hash prefixes on mismatch.

Fixes glendix-labs/mendraw#4

Verification

  • gleam test — 110 passed.
  • ./scripts/verify.sh inner mxpak — passed.
  • ./scripts/check-all.sh — passed.
  • pre-push verify.sh final — passed (family checks, widget build, Lustre E2E, Mendix full E2E).

@GG-O-BP
GG-O-BP merged commit e3e6c77 into main Sep 3, 2026
@GG-O-BP
GG-O-BP deleted the fix/audit-hash-verification branch September 3, 2026 00:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[보안] 다운로드한 위젯 JS(.mjs) 무결성 검증 부재 (공급망)

1 participant