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

fix: oci仓库访问不包含路径的代理源地址时可能无法通过鉴权 #1342 #1343

Merged
merged 1 commit into from
Oct 30, 2023

Conversation

scplsy
Copy link
Collaborator

@scplsy scplsy commented Oct 26, 2023

issue:

  1. oci仓库访问不包含路径的代理源地址时可能无法通过鉴权 #1342

描述:
假设oci仓库设置了不包含路径的代理源地址(url形式为{scheme}://{domain}而不是{scheme}://{domain}/{path}),当访问该代理源的资源返回401时,oci仓库将根据响应头的内容请求用于获取token的url,此时该url的查询参数scope多了斜杠repository:/{repository}:{accessSet},导致获取的token在用于后续请求资源时可能无法通过鉴权。

@scplsy scplsy requested a review from zacYL as a code owner October 26, 2023 10:44
@owenlxu owenlxu merged commit cafd937 into TencentBlueKing:master Oct 30, 2023
4 checks passed
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

Successfully merging this pull request may close these issues.

3 participants