You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If a registry doesn’t support token refreshing but its user still wants to use a token to access it. They can use registry token and passed it via the proposed flag like
oras pull $IMAGE --registry-token $TOKEN
Are you willing to submit PRs to contribute to this feature?
Registry token is known as access token, which is used per repository with scope like repository:hello-world:pull,push, registry:catalog:*. It is strange and not useful to use the same access token across repositories.
Registry token is known as access token, which is used per repository with scope like repository:hello-world:pull,push, registry:catalog:*. It is strange and not useful to use the same access token across repositories.
It should be noted that registry token are not only limited to a repository, it can also be used to access whole registry just like github tokens. And for the particular usecase that you just mentioned, how about fetching permission metadata and storing it locally to know which registry token is for what purpose.
@sajayantony Related to authorization header, but in essence it's about workflow. ORAS now supports below token exchange workflow:
Use the refresh token or username password to obtain a registry token
Use the registry token to do operation
I found this while trouble shooting an issue: I need to keep using the same registry token to do an operation. After several tries, I found that ORAS CLI doesn't support skipping step 1 and run 2 directly. So, I created an issue. Not sure if it's a common use case and should we support it in oras @FeynmanZhou
The term was confusing. So it sounds like a refresh token or an access token. Overall is sounds like a debug only scenario. Also I would like to get the actual use case since I’m not seeing the value yet besides folks who want to debug the registry.
So, @sajayantony@qweeah@shizhMSFT should we drop the plan adding this feature altogether or does it have any benefits. Can it be supported with the current feature that ORAS has. And would it be beneficial.
Activity
sbdtu5498 commentedon Jun 27, 2023
/assign
shizhMSFT commentedon Jun 28, 2023
Registry token is known as access token, which is used per repository with scope like
repository:hello-world:pull,push,registry:catalog:*. It is strange and not useful to use the same access token across repositories.sajayantony commentedon Jun 28, 2023
Is this just the authorization header?
sbdtu5498 commentedon Jun 28, 2023
It should be noted that registry token are not only limited to a repository, it can also be used to access whole registry just like github tokens. And for the particular usecase that you just mentioned, how about fetching permission metadata and storing it locally to know which registry token is for what purpose.
qweeah commentedon Jun 30, 2023
@sajayantony Related to authorization header, but in essence it's about workflow. ORAS now supports below token exchange workflow:
I found this while trouble shooting an issue: I need to keep using the same registry token to do an operation. After several tries, I found that ORAS CLI doesn't support skipping step 1 and run 2 directly. So, I created an issue. Not sure if it's a common use case and should we support it in oras @FeynmanZhou
sajayantony commentedon Jun 30, 2023
The term was confusing. So it sounds like a refresh token or an access token. Overall is sounds like a debug only scenario. Also I would like to get the actual use case since I’m not seeing the value yet besides folks who want to debug the registry.
sbdtu5498 commentedon Jun 30, 2023
So, @sajayantony @qweeah @shizhMSFT should we drop the plan adding this feature altogether or does it have any benefits. Can it be supported with the current feature that ORAS has. And would it be beneficial.
shizhMSFT commentedon Jul 3, 2023
I think we should drop it except we have a clear user scenario.
Meanwhile, this debug function can be achieved by the following command as a workaround:
shizhMSFT commentedon Aug 1, 2023
Closing this issue due to lack of clear user scenarios.