Skip to content

Return untrusted_signature for a resource that isn't gzip data - #280

Open
maennchen wants to merge 1 commit into
mainfrom
registry-file-not-gzip
Open

maennchen wants to merge 1 commit into
mainfrom
registry-file-not-gzip

Conversation

@maennchen

Copy link
Copy Markdown
Member

Summary

hex_repo raised data_error for such a resource of a repository with root keys. The specification gives a file that the client can't decode the error of a file without a valid signature.

Not sure if we should do that or change the spec:
https://github.com/hexpm/specifications/blob/2b26d6675d354af892dd11df4386f9ae66e08fc6/registry-signing-keys.md?plain=1#L220

A file that the client can't decode raises the same error as a file without a valid signature.

Testing

hex_repo raised data_error for such a resource of a repository with
root keys. The specification gives a file that the client can't decode
the error of a file without a valid signature.

Co-Authored-By: Claude Mythos 5.2 <noreply@anthropic.com>
@maennchen
maennchen requested a review from ericmj December 3, 2026 16:01

This branch has not been deployed

No deployments
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.

1 participant