Skip to content

Move sig verification from installer to resolver#257

Merged
thelovekesh merged 7 commits into
mainfrom
update/sig-verification
Jun 16, 2026
Merged

Move sig verification from installer to resolver#257
thelovekesh merged 7 commits into
mainfrom
update/sig-verification

Conversation

@thelovekesh

Copy link
Copy Markdown
Collaborator

Registry now signs a package dependencies as well which needs to be verified while resolving the packages. This PR moves the signatures verification from installer to resolver.

More information about signatures spec can be found in pkg/pm/signatures/signatures.go.

@thelovekesh thelovekesh requested a review from Copilot June 16, 2026 09:58
@thelovekesh thelovekesh added the core changes made in cli core api label Jun 16, 2026
@github-actions

Copy link
Copy Markdown

📦 wpm cli builds 📦

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR moves package signature verification from the installer phase into the dependency resolution phase so manifests (including dependency sets) are verified as they’re fetched/resolved, aligning with the updated registry signing behavior.

Changes:

  • Introduce a signatures.Verifier that builds a canonical signing payload including a dependencies digest.
  • Fetch signing keys and verify manifest signatures inside the resolver’s metadata fetch flow.
  • Remove installer-time signature verification and signature propagation in install actions.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
pkg/pm/signatures/signatures.go Adds verifier + canonical payload/deps digest logic for signature verification.
pkg/pm/signatures/signatures_test.go Adds unit tests for canonical dependency serialization and payload construction.
pkg/pm/resolution/resolver.go Fetches keys and verifies package signatures during resolution; improves request dedupe keying.
pkg/pm/registry/client.go Updates GetKeysJson to return the new signatures.Keys type.
pkg/pm/installer/plan.go Drops signatures from install actions (verification no longer happens in installer).
pkg/pm/installer/installer.go Removes key fetching and signature verification from install/update path.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread pkg/pm/signatures/signatures.go
Comment thread pkg/pm/signatures/signatures.go
@thelovekesh thelovekesh merged commit 8846c22 into main Jun 16, 2026
17 checks passed
@thelovekesh thelovekesh deleted the update/sig-verification branch June 16, 2026 10:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

core changes made in cli core api

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants