-
Notifications
You must be signed in to change notification settings - Fork 268
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
Hub: allow access tokens for organizations #461
Comments
Our org is also in need for tokens in scope of the organization. At the moment we're using personal access tokens as a work around. Nevertheless, this alway leaves the risk that if a member leaves the organization who's PAT was used for eg a pipeline, out of a sudden the pipeline stops working. I suggest that owners of a Docker Hub organization should be able to manage tokens for the organization. |
Hey all, an update here from engineering. This is something that we know has been asked for for years. We too have this issue internally and I wanted to let you know that we are currently working on some ideas on how to best accomplish this. I can't say much currently, but I can tell you that we are actively working towards some sort of solution here. 😄 We will keep you all posted as we progress on this. |
Question: Considering @technicallyjosh response, does this mean that any personal access tokens I have set up for my user in docker hub will be valid for any repositories that exist under an organization that I am a part of? |
Yes that is how it works currently @jHubbsy. I can confirm however that we plan to allow for fine-grained access for these PATs in the future. More to come on that as we are working out a solid roadmap around authentication/authorization right now. A little context on that behavior: Your PAT will only have access to the repos you actually have access to. We take into consideration any contributor status or ones you have access to and the level in your organizations. e.g. read only PAT can't read repos you aren't explicitly added to via groups and "read" access in repo management for your org. |
Hello friends, just an update here. I'm happy to confirm that we have started planning the work on org-scoped tokens 😄 We will have more to share soon! 🎉 No timeline quite yet, but it's coming! |
The ubercadence dockerhub user has been changed from a user to an organization, this means we can no longer log in as ubercadence. Sadly dockerhub does not support access tokens for organisations, see docker/roadmap#461 it is however on the roadmap https://github.com/orgs/docker/projects/51 Until this is supported the workaround is to use a user login that has access to the org. So as I am such a user we will use mine for the time being.
* Change dockerhub user from ubercadence to jht305 The ubercadence dockerhub user has been changed from a user to an organization, this means we can no longer log in as ubercadence. Sadly dockerhub does not support access tokens for organisations, see docker/roadmap#461 it is however on the roadmap https://github.com/orgs/docker/projects/51 Until this is supported the workaround is to use a user login that has access to the org. So as I am such a user we will use mine for the time being. * Empty commit to trigger github CI
Hey all, we've just released the first iteration of this! https://www.docker.com/blog/introducing-organization-access-tokens/ |
thanks for this feature! I tried it out today to work with the REST API but got this:
I assume that means that these tokens cannot be used with the API, is that correct? the documentation mentions that "You can use an organization access token when you sign in using Docker CLI" but it doesn't say that it is the only way they work. If this is limited to the CLI, it would be good to clarify on the docs. thank you! |
Hey sorry for the delay. Yes, correct, we do not support it (yet) on the API. We will be adding more scopes in the near future that will make that type of log in make sense. We started out with just registry access for now. I can say that we'll add more scopes and abilities after we finish our work here soon on Scout and Build Cloud capabilities with OATs. |
This comment has been minimized.
This comment has been minimized.
Is this available for Free Team Orgs? |
Tell us about your request
Docker Hub organizations should be able to hand out access tokens which grant access to all org repos.
Which service(s) is this request for?
Docker Hub
Tell us about the problem you're trying to solve. What are you trying to do, and why is it hard?
I am one of the owners of a Docker Hub organization. The org maintains a couple of public repos for open-source projects. We push images into those repos from a GitHub Actions workflow. Hence, we need an access token to authenticate against Docker Hub. However, which token to use?
Are you currently working around the issue?
An (arbitrary) owner of the organization created a dedicated access token which we use to push images to an org repo.
Additional context
n/a
The text was updated successfully, but these errors were encountered: