docker / hub-feedback

Feedback and bug reports for the Docker Hub
https://hub.docker.com
232 stars 40 forks source link

Audit Logs API - Forbidden When Using PAT Authentication #2367

Open obelisk opened 8 months ago

obelisk commented 8 months ago

Problem description

Audit Logs API - Forbidden When Using PAT Authentication

I've done the standard login and gotten a JWT to use, but calling the auditlogs API returns an unhelpful:

{"message":"forbidden","errinfo":{}}

I've tried all different permission levels for PATs but none seem to give me a token that is accepted. We cannot use username and password authentication due to enforcement of SSO. Am I missing something obvious to make this work?

davidr-bt commented 2 months ago

@obelisk We discovered the following after having the identical experience:

After banging our heads against the wall for a while, we discovered that this works.

azxqw commented 1 month ago

@davidr-bt Do you mean that I have to use the user's password and not a PAT?