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

Parse WWW-Authenticate challenges on retry #846

Merged
merged 2 commits into from
Nov 30, 2020

Conversation

jonjohnsonjr
Copy link
Collaborator

This allows us to recover from insufficient scope errors.

This PR introduces a dependency on github.com/docker/distribution/registry/client/auth/challenge. We already had an indirect dependency on it through the daemon package, so maybe not a huge deal?

Use docker/distribution challenge library
@codecov-io
Copy link

codecov-io commented Nov 27, 2020

Codecov Report

Merging #846 (213b1e7) into master (cf9d7b3) will decrease coverage by 0.04%.
The diff coverage is 92.85%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #846      +/-   ##
==========================================
- Coverage   74.72%   74.67%   -0.05%     
==========================================
  Files         106      106              
  Lines        4427     4435       +8     
==========================================
+ Hits         3308     3312       +4     
- Misses        629      633       +4     
  Partials      490      490              
Impacted Files Coverage Δ
pkg/v1/remote/transport/ping.go 86.95% <80.00%> (-8.70%) ⬇️
pkg/v1/remote/transport/bearer.go 75.83% <100.00%> (+1.72%) ⬆️

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 cf9d7b3...213b1e7. Read the comment docs.

@jonjohnsonjr jonjohnsonjr marked this pull request as ready for review November 29, 2020 19:53
@jonjohnsonjr jonjohnsonjr merged commit 59645bd into google:master Nov 30, 2020
@jonjohnsonjr jonjohnsonjr deleted the challenging branch November 30, 2020 18:42
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

3 participants