Fix set_registry_token call for token usa - #1370
Conversation
|
🤖 Finished Review · ✅ Success · Started 6:30 AM UTC · Completed 6:50 AM UTC |
1bc0ed6 to
ea42f2c
Compare
PR Summary by QodoScope overwrite_from_index_token to same-registry images during resolution
AI Description
Diagram
High-Level Assessment
Files changed (6)
|
ReviewFindingsMedium
Low
Previous runReviewFindingsMedium
Low
Labels: PR fixes token scoping behavior in registry authentication logic — a bug fix Next steps:
Previous run (2)ReviewReason: stale-head The review agent reviewed commit |
|
/fs-review |
Code Review by Qodo
1.
|
|
🤖 Finished Review · ✅ Success · Started 6:50 AM UTC · Completed 7:07 AM UTC |
lipoja
left a comment
There was a problem hiding this comment.
Once you address the [medium] logic-error you can merge it.
LGTM.
…h-scoped Docker auth Fixes CLOUDDST-32419 and CLOUDDST-32824 by applying the overwrite token only where worker Docker config cannot already pull the image, and by avoiding blanket token stamping that broke unrelated private fragments and namespace template credentials. Co-authored-by: Cursor <cursoragent@cursor.com>
ea42f2c to
f0936e7
Compare
|
🤖 Finished Review · ✅ Success · Started 1:35 PM UTC · Completed 2:16 PM UTC Commit: |
Superseded by updated review
| @@ -1097,7 +1257,7 @@ def get_index_image_info( | |||
| if not from_index: | |||
There was a problem hiding this comment.
[medium] credential-scope-change
Changing get_index_image_info from append=False to append=True changes credential merging behavior, potentially inheriting credentials from a prior set_registry_token context if one is active.
Suggested fix: Verify get_index_image_info is never called within another set_registry_token context. Document why append=True is needed.
| return {} | ||
|
|
||
|
|
||
| def docker_config_has_auth_for_image( |
There was a problem hiding this comment.
This one is never used in IIB code - only in tests, can we remove it if it is not needed?
|
LGTM, lets fix the linting errors and remove the unused code. |
Assisted-by: Cursor/Gemini