You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
API permission issues with personal access tokens #2006
{"detail": "access to the resource is forbidden with personal access token"}
It works fine if I get the JWT using the actual account password.
Is there a particular reason for this restriction against personal access tokens? It seems like it would also break users who have 2FA enabled on Docker Hub.
Personal access token is restricted to registry APIs only (docker login). It does not allow accessing all APIs because doing that will bypass 2nd factor when an account is 2FA enabled. We want to eventually add fine-grained permission associated with each token similar to Github.
Reacted by Jhonny Ramirez Zeballos and Michał Panasiewicz
Activity
manishtomar commentedon Jun 15, 2020
Personal access token is restricted to registry APIs only (docker login). It does not allow accessing all APIs because doing that will bypass 2nd factor when an account is 2FA enabled. We want to eventually add fine-grained permission associated with each token similar to Github.
manishtomar commentedon Jun 15, 2020
I've created roadmap item that addresses this. docker/roadmap#115. I am closing this for now. Please consider upvoting that.
christian-kreuzberger-dtx commentedon Dec 3, 2020
I'm trying to automate deleting old unused tags (created by the CI) and ran into the same issue.
So the only workaround for now is to use my username and actual password and disable 2FA?
zhangguanzhang commentedon Jul 13, 2022
same issue in github action, but works on my pc 😢