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

Optimize the number of auth requests for oras manifest delete and oras blob delete #1104

Closed
1 task
qweeah opened this issue Sep 1, 2023 · 0 comments · Fixed by #1109 or #1116
Closed
1 task

Optimize the number of auth requests for oras manifest delete and oras blob delete #1104

qweeah opened this issue Sep 1, 2023 · 0 comments · Fixed by #1109 or #1116
Labels
enhancement New feature or request
Milestone

Comments

@qweeah
Copy link
Contributor

qweeah commented Sep 1, 2023

What is the version of your ORAS CLI

v1.1.0-rc.2

What would you like to be added?

Like #1084, when deleting a manifest, the request 4 and 5 can be avoided if we get a token with delete scope in request 1:

request #0: HEAD manifest tag- 401
request #1: GET token (scope: pull) - 200
request #2: HEAD manifest tag- 200
request #3: GET manifest digest- 200
request #4: DELETE manifest digest 401
request #5: GET token (scope: delete, pull) - 200
request #6: DELETE manifest digest - 202

Same for oras blob delete

Why is this needed for ORAS?

This can further improve the performance of ORAS.

Are you willing to submit PRs to contribute to this feature?

  • Yes, I am willing to implement it.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
1 participant