Skip to content

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

Description

@qweeah

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions