Skip to content

Consider optimizing the number of auth requests #1084

Closed

Description

@Wwwsylvia

What is the version of your ORAS CLI

1.1.0-rc.2

What would you like to be added?

I was pushing an empty artifact using the below command and noticed that it took 9 requests to complete.

oras push $myreg/$myrepo:$mytag --debug

The requests were:

request #0: HEAD manifest digest - 401
request #1: POST token (scope: pull) - 200
request #2: HEAD manifest digest - 404
request #3: HEAD config ({}) - 404
request #4: POST config ({}) - 401
request #5: POST token (scope: pull, push) - 200
request #6: POST config ({}) - 202
request #7: PUT config ({}) - 201
request #8: PUT manifest tag - 201

It looks like the auth-related requests #4 and #5 (the one with underlines) can be saved on ORAS side.

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.

Activity

  1. added
    enhancement
    on Aug 28, 2023
  2. added this to the v1.1.0 milestone on Aug 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancement

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions