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

pkg/authn: return Anonymous on podman auth.json errors #1248

Merged
merged 1 commit into from
Jan 20, 2022

Conversation

vdemeester
Copy link
Contributor

This is similar to what happens when the package looks for Docker's
config.json, it ignores any error (not found, permissions denied, …)
and pass on.

This should help tektoncd/chains#320 not to happen for example.

Signed-off-by: Vincent Demeester vdemeest@redhat.com

/cc @imjasonh @mattmoor @concaf

This is similar to what happens when the package looks for Docker's
config.json, it ignores any error (not found, permissions denied, …)
and pass on.

Signed-off-by: Vincent Demeester <vdemeest@redhat.com>
@codecov-commenter
Copy link

codecov-commenter commented Jan 20, 2022

Codecov Report

Merging #1248 (3dc5cea) into main (890d5b3) will increase coverage by 0.02%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #1248      +/-   ##
==========================================
+ Coverage   73.77%   73.80%   +0.02%     
==========================================
  Files         111      111              
  Lines        8285     8283       -2     
==========================================
+ Hits         6112     6113       +1     
+ Misses       1571     1569       -2     
+ Partials      602      601       -1     
Impacted Files Coverage Δ
pkg/authn/keychain.go 85.48% <100.00%> (+4.23%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 890d5b3...3dc5cea. Read the comment docs.

Copy link
Collaborator

@imjasonh imjasonh left a comment

Choose a reason for hiding this comment

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

Nice, thanks!

@imjasonh imjasonh merged commit d22850a into google:main Jan 20, 2022
@vdemeester vdemeester deleted the ignore-error-on-podman-auth branch January 20, 2022 12:30
@sbose78
Copy link

sbose78 commented Jan 20, 2022

Amazing, thank you!

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.

None yet

4 participants