Skip to content

Conversation

- Remove redundant intermediate variables
- Explicitly use an early return on error instead of combining with
  other checks.
- Fix unhandled errors and combine defers
- Remove outstanding TODO that unlikely will be addressed

Signed-off-by: Sebastiaan van Stijn <[email protected]>
(cherry picked from commit c36e67d)
Signed-off-by: Sebastiaan van Stijn <[email protected]>
…exInfo

All information needed can be deducted from the image reference, which
is used to create a indexInfo, repoInfo, and to resolve auth-config.

In some situations this may result in resolving the auth-config twice
after it already was resolved to an encoded auth-config.

Signed-off-by: Sebastiaan van Stijn <[email protected]>
(cherry picked from commit 9a6313e)
Signed-off-by: Sebastiaan van Stijn <[email protected]>
@thaJeztah thaJeztah added this to the 28.5.0 milestone Sep 26, 2025
@thaJeztah thaJeztah added status/2-code-review area/trust kind/refactor PR's that refactor, or clean-up code labels Sep 26, 2025
@codecov-commenter
Copy link

Codecov Report

❌ Patch coverage is 47.05882% with 9 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
cli/command/image/trust.go 0.00% 8 Missing ⚠️
cli/command/image/push.go 88.88% 1 Missing ⚠️

📢 Thoughts on this report? Let us know!

@thaJeztah thaJeztah marked this pull request as ready for review September 26, 2025 09:37
@austinvazquez austinvazquez merged commit 394991e into docker:28.x Sep 26, 2025
93 checks passed
@thaJeztah thaJeztah deleted the 28.x_backport_auth branch September 26, 2025 15:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/trust kind/refactor PR's that refactor, or clean-up code status/2-code-review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants