Skip to content

mirror content provider#2375

Closed
Marketen wants to merge 5 commits intodevelopfrom
marc/add-mirror-repository
Closed

mirror content provider#2375
Marketen wants to merge 5 commits intodevelopfrom
marc/add-mirror-repository

Conversation

@Marketen
Copy link
Copy Markdown
Contributor

Adds a mirror content provider to list and download DNPs at https://packages.dappnode.net/

One issue pending related signature verification of signature.json:


The signature creation process is:

List the release directory → Gets each file with its individual CID (not available in mirror right now)
Serialize the directory → Creates a string like:

avatar.png zdj7WnZ4Yn4ev7T8qSACAjqnErfqfQsCPsfrHuJNKcaAp7PkJ
dappnode_package.json zdj7WbUmsj617EgJRysWqPpzJxriYfmBxBo1uhAv3kqq6k3VJ
docker-compose.yml zdj7Wf2pYesVyvSbcTEwWVd8TFtTjv588FET9L7qgkP47kRkf
Sign the string → Creates ECDSA signature of that exact string
Verification Process (must match exactly):

When verifying, getReleaseSignatureStatus() does:

List files → Get individual CIDs from IPFS
Serialize with serializeIpfsDirectory() → Must produce identical string
Verify signature → ethers.verifyMessage(signedData, signature)
Individual file CIDs are required for signature verification.

Right now the mirror approach takes the package CID for all files as a placeholder. Signature will always be wrong

Comment thread packages/toolkit/src/repository/contentProvider/utils.ts Fixed
@github-actions github-actions Bot temporarily deployed to commit February 18, 2026 19:42 Inactive
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Feb 18, 2026

@github-actions github-actions Bot temporarily deployed to commit February 18, 2026 19:50 Inactive
@github-actions github-actions Bot temporarily deployed to commit February 18, 2026 19:57 Inactive
@Marketen Marketen closed this Feb 25, 2026
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.

2 participants