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

[WIP] add ignoreRedirect flag in p2pConfig to skip redirect #327

Closed
wants to merge 1 commit into from

Conversation

fengwang-db
Copy link

@fengwang-db fengwang-db commented Apr 26, 2024

What this PR does / why we need it:
This is a draft PR to demonstrate a potential solution for #326

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #

Please check the following list:

  • Does the affected code have corresponding tests, e.g. unit test, E2E test?
  • Does this change require a documentation update?
  • Does this introduce breaking changes that would require an announcement or bumping the major version?
  • Do all new files have an appropriate license header?

@fengwang-db fengwang-db mentioned this pull request Apr 26, 2024
1 task
if (actual_info->mode == UrlMode::Redirect)
actual_url = actual_info->info.data();
}

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

getActualUrl() will get the 'Bearer Token' and put it to HTTP Header, see
https://github.com/containerd/overlaybd/blob/main/src/overlaybd/registryfs/registryfs.cpp#L145

If ignoreRedirect is true,
overlaybd will send the request URL to Kraken listened port without any authentication ? is this what you want?

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.

2 participants