bytecodealliance / bytecodealliance/wasm-pkg-tools

Attempting to get a non-existent package from ghcr.io results in "authentication failure"

Open
#40 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
Rust
Stars
160
Forks
42
Avg merge
7h 57m
Merged PRs (30d)
3

Description

```
$ wkg get wasi:fake
No version specified; fetching version list...
Error: OCI error: Authentication failure: {"errors":[{"code":"DENIED","message":"requested access to the resource is denied"}]}

Caused by:
Authentication failure: {"errors":[{"code":"DENIED","message":"requested access to the resource is denied"}]}
```

Options:
- Find a way to distinguish between "not found" and (actual) "bad auth". This will require some research; I'm not confident that this is even possible with ghcr.io
- Add an option to the well-known `registry.json` indicating "this OCI registry doesn't use auth, so treat auth failure as 'not found'"
- Reword the error message to reflect the ambiguity, e.g. "Package not found or access denied"

Ref #37

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.