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

use registry token for inspecting image from private repo [CLOUDDST-10044] #312

Merged
merged 1 commit into from
Oct 25, 2021

Conversation

chandwanitulsi
Copy link
Contributor

@chandwanitulsi chandwanitulsi commented Oct 25, 2021

Refers to CLOUDDST-10044

@@ -86,7 +86,7 @@ def handle_create_empty_index_request(

_update_index_image_build_state(request_id, prebuild_info)
with tempfile.TemporaryDirectory(prefix='iib-') as temp_dir:
if is_image_dc(from_index):
if is_image_dc(from_index_resolved):
Copy link
Contributor Author

Choose a reason for hiding this comment

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

For create-empty-index and merge-index endpoints, we don't have any tokens right? Do we have any use case where these endpoints are used with a from_index from a private registry?

Copy link
Contributor

Choose a reason for hiding this comment

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

Agree for create-empty-index. See my comment on merge-index.

@@ -194,7 +194,7 @@ def handle_merge_request(
target_index_resolved = prebuild_info['target_index_resolved']

with tempfile.TemporaryDirectory(prefix='iib-') as temp_dir:
if is_image_dc(source_from_index):
if is_image_dc(source_from_index_resolved):
Copy link
Contributor

Choose a reason for hiding this comment

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

There is overwrite_target_index_token but that doesn't seem to be used when inspecting the source index image. I think your reasoning to not set the registry secret here is correct. There would be additional changes to support that use case.

@chandwanitulsi chandwanitulsi changed the title use registry token for inspecting image from private repo use registry token for inspecting image from private repo [CLOUDDST-10044] Oct 25, 2021
@chandwanitulsi chandwanitulsi merged commit 6c854b4 into release-engineering:master Oct 25, 2021
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