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

Don't pass auth header when downloading a package #4838

Merged
merged 2 commits into from
Jun 12, 2024
Merged

Conversation

xdoardo
Copy link
Contributor

@xdoardo xdoardo commented Jun 12, 2024

This small patch removes the auth header passed to Wasmer's cdn when downloading a package. Of course, this does not remove the mandatory auth when interacting with the graphql endpoint, which is still necessary.

Furthermore, it makes the --out-path optional, and in case the user does not give a value for the flag it uses
$(pwd)/[email protected] or $(pwd)/hash.webc as a filename.

@xdoardo xdoardo requested a review from syrusakbary as a code owner June 12, 2024 16:07
@xdoardo xdoardo requested a review from theduke June 12, 2024 16:07
@syrusakbary
Copy link
Member

Where this PR originates from? What is this trying to fix? I thought this was needed in the past for downloading the files

@syrusakbary
Copy link
Member

(note: even if approved, please do not merge until resolving my question below)

@syrusakbary
Copy link
Member

Context of the issue:

wasmer package download sha256:... currently doesn't work

Ideally it would be the resolved version (for named), so [email protected] or similiar.

and first 8 chars of hash/full hash for unnamed

@theduke theduke merged commit 27066c6 into main Jun 12, 2024
62 checks passed
@theduke theduke deleted the package-download-fix branch June 12, 2024 18:51
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.

3 participants