Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Verify authenticity of signed payload #48

Merged
merged 4 commits into from
Dec 20, 2018
Merged

Conversation

ericmj
Copy link
Member

@ericmj ericmj commented Dec 20, 2018

No description provided.

@ericmj ericmj requested a review from wojtekmach December 20, 2018 18:32
@wojtekmach wojtekmach merged commit 009d4de into master Dec 20, 2018
@wojtekmach wojtekmach deleted the emj/verify-registry-origin branch December 20, 2018 19:04
wojtekmach added a commit to hexpm/hex that referenced this pull request Dec 20, 2018
@@ -31,21 +31,21 @@ Get all package versions from repository:
```erlang
> hex_repo:get_versions(Config).
{ok, {200, ...,
#{packages => [
Copy link
Member

Choose a reason for hiding this comment

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

@ericmj to recap, previously we had:

> hex_repo:get_versions(Config)
{ok, {200, _, #{packages => Packages}}}

now we have:

> hex_repo:get_versions(Config)
{ok, {200, _, Packages}}

which means we'd no longer be able to associate any "metadata" with the versions resource in a backwards compatible way (adding new keys to the return map). I think that's OK, I can't think of anything we'd use it for, but just mentioning it. Thoughts?

Copy link
Member Author

Choose a reason for hiding this comment

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

I think it's better this way, the other "metadata" wasn't really documented in the first place, right?

Copy link
Member

Choose a reason for hiding this comment

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

Yup

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