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

Response 401 Unauthorized when deleting tag from registry using robot account #20738

Closed
aweng-aria opened this issue Jul 13, 2024 · 1 comment

Comments

@aweng-aria
Copy link

Expected behavior and actual behavior:
Deleting a tag from an image results in 401 Unauthorized response.

Steps to reproduce the problem:
curl -X DELETE https://<myharbor>/api/v2.0/projects/<project>/repositories/<image>/artifacts/<tag>/tags/<tag> -H 'Content-Type: application/json' -H 'Authorization: Bearer <robot token>'

Versions:
Please specify the versions of following systems.

  • harbor version: v2.11.0-70255684
  • docker engine version: n/a
  • docker-compose version: n/a

Additional context:

Other commands to list and retrieve data are successful
Robot account has full permissions

@wy65701436
Copy link
Contributor

you should use the basic auth of your robot to issue the request above. Please reopen it if it still exists.

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