Skip to content

Conversation

@imjasonh
Copy link
Contributor

@imjasonh imjasonh commented Feb 8, 2022

This enables the case where a config's auth section can specify different auth per repository within the same registry.

This seems to be the root cause of GoogleContainerTools/kaniko#687

This enables the case where a config's auth section can specify
different auth per repository within the same registry.
@imjasonh imjasonh requested a review from jonjohnsonjr February 8, 2022 13:41
@codecov-commenter
Copy link

codecov-commenter commented Feb 8, 2022

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 73.99%. Comparing base (33725d2) to head (66f8c7b).
Report is 261 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1280      +/-   ##
==========================================
- Coverage   74.01%   73.99%   -0.02%     
==========================================
  Files         112      112              
  Lines        8374     8396      +22     
==========================================
+ Hits         6198     6213      +15     
- Misses       1573     1580       +7     
  Partials      603      603              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@jonjohnsonjr
Copy link
Collaborator

I'm a bit reluctant to diverge from docker's behavior -- do they support anything like this? Does the red hat stuff?

@jonjohnsonjr
Copy link
Collaborator

Related FR: docker/cli#2928

@imjasonh
Copy link
Contributor Author

imjasonh commented Feb 8, 2022

Oh, I incorrectly thought this was already how Docker worked 😢

I'll close this, and point folks up to that FR. Thanks!

@imjasonh
Copy link
Contributor Author

imjasonh commented Feb 9, 2022

Sounds like Podman supports per-registry auths: GoogleContainerTools/kaniko#687 (comment)

wdyt?

@imjasonh imjasonh reopened this Feb 9, 2022
@jonjohnsonjr
Copy link
Collaborator

wdyt?

I think ideally we could upstream this to docker/cli?

@imjasonh
Copy link
Contributor Author

I think ideally we could upstream this to docker/cli?

I'm willing to try. I think we might have a better case if we can say Podman, and all tools using authn.DefaultKeychain have this behavior. Want me to merge and update all these tools with this behavior? I know Tekton has expressed interest in supporting this before.

return nil, err
cfg, err = cf.GetAuthConfig(key)
if err != nil {
return nil, err
Copy link
Collaborator

Choose a reason for hiding this comment

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

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