Skip to content

Commit

Permalink
Make nydusd work with Google Artifact Registry
Browse files Browse the repository at this point in the history
GAR throws 400 if you pass form data to the token request. It also needs the ability to make up to 2 redirects.
  • Loading branch information
andreasjansson authored and technillogue committed Jul 25, 2023
1 parent 97b6f39 commit e017b18
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion storage/src/backend/connection.rs
Original file line number Diff line number Diff line change
Expand Up @@ -635,7 +635,7 @@ impl Connection {
let mut cb = Client::builder()
.timeout(timeout)
.connect_timeout(connect_timeout)
.redirect(Policy::none())
.redirect(Policy::limited(2))
.use_rustls_tls()
.tcp_keepalive(Some(Duration::from_secs(5 * 60)))
.pool_max_idle_per_host(pool_max_idle_per_host);
Expand Down
2 changes: 1 addition & 1 deletion storage/src/backend/registry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ impl RegistryState {
Method::GET,
auth.realm.as_str(),
Some(&query),
Some(ReqBody::Form(form)),
None,
&mut headers,
true,
true,
Expand Down

0 comments on commit e017b18

Please sign in to comment.