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

public pulling #8

Closed
adelavega opened this issue Aug 16, 2021 · 8 comments
Closed

public pulling #8

adelavega opened this issue Aug 16, 2021 · 8 comments

Comments

@adelavega
Copy link
Contributor

Another question:

Is public pulling without auth on the client possible?

When I try to pull the container associated with this repo I get this error:

FATAL:   While pulling image from oci registry: error fetching image to cache: failed to get checksum for oras://ghcr.io/singularityhub/github-ci:latest: while resolving reference: failed to authorize: failed to fetch oauth token: unexpected status: 403 Forbidden

If I login to to github using a PAK, it works.

@vsoch
Copy link
Member

vsoch commented Aug 16, 2021

I think it might be backwards - if you are authenticated with credentials and the container doesn't require it, it won't work. I think we opened an issue about this: sylabs/singularity#212

@adelavega
Copy link
Contributor Author

adelavega commented Aug 16, 2021

Ah, I see. Maybe I didn't properly clear my token when trying. Actually I did the same thing which was cancelling the PAK. I'll keep on eye on that issue, but as long as unauthenticated users can pull my packages, I'm happy :)

@vsoch
Copy link
Member

vsoch commented Aug 16, 2021

Can you double check that it's public? I don't see it:

image

@adelavega
Copy link
Contributor Author

adelavega commented Aug 16, 2021

So 1) I think my issue was that due to a bug, I couldn't "logout", so that confused me w.r.t to public pulling of this package: sylabs/singularity#214

  1. I do believe my package is currently internal and I'm not sure how to change it to public. It seems to have defaulted to internal.

@adelavega
Copy link
Contributor Author

Okay, got it. You should be able to see it now.

I suppose as far as this example is concerned what might be relevant is to point out that packages should be public if that's the intention, and clarifying what it may default to (internal, in my case)

@vsoch
Copy link
Member

vsoch commented Aug 16, 2021

Ah, so I think that might be an org setting. Under settings for the org there should be a packages menu, and under there you can select what level of access to give org members for packages (I think default is internal).

@vsoch
Copy link
Member

vsoch commented Aug 16, 2021

And your analysis makes sense - I would post a note on both singularity issues to say "plus 1! This was an issue for me too!" so they are better looked at.

@adelavega
Copy link
Contributor Author

adelavega commented Aug 16, 2021

I see. I have all 3 (public/private/internal) checked, so maybe if internal is allowed it defaults to it when creating it. Or perhaps that differs based on whether the package is created by a PAK or GITHUB_TOKEN in a ci action.

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

No branches or pull requests

2 participants