verify: the unsigned manifest is parsed before the signature check #33

Open
opened 2026-11-21 11:11:33 +01:00 by michael · 0 comments
Owner

Problem

read_manifest in verify.lua parses manifest.yaml before the signature
is checked: the field signed_with of the manifest selects the key for
sig.verify_file. The parse therefore runs on input that is not verified yet.

Scope

  • decide how the key is selected without reading the unsigned manifest first
    (open, nothing decided)
  • apply the decision in verify.lua

Acceptance criteria

  • decision recorded in this issue
  • the manifest is parsed only after the signature check, or the parse of
    unverified input is documented as accepted
  • tests for the chosen behaviour
  • make test passes (Lua 5.4 and 5.1)

Technical notes

  • verify.lua: read_manifest(path, shown) is called before sig.verify_file(...) in the install path
  • related: DAW/daw-module-manager#25 (manifest kept and verified for installed modules)
## Problem `read_manifest` in `verify.lua` parses `manifest.yaml` before the signature is checked: the field `signed_with` of the manifest selects the key for `sig.verify_file`. The parse therefore runs on input that is not verified yet. ## Scope - decide how the key is selected without reading the unsigned manifest first (open, nothing decided) - apply the decision in `verify.lua` ## Acceptance criteria - [ ] decision recorded in this issue - [ ] the manifest is parsed only after the signature check, or the parse of unverified input is documented as accepted - [ ] tests for the chosen behaviour - [ ] `make test` passes (Lua 5.4 and 5.1) ## Technical notes - `verify.lua`: `read_manifest(path, shown)` is called before `sig.verify_file(...)` in the install path - related: DAW/daw-module-manager#25 (manifest kept and verified for installed modules)
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
DAW/daw-module-manager#33
No description provided.