Skip to content

Commit 96f407a

Browse files
authored
fix(deps): update url in standalone workspaces and preserve credential paths (#5895)
* fix(deps): update url to 2.5.9 across Cargo workspaces Resolve RUSTSEC-2026-0592 in all eleven affected lockfiles. The patched url release requires form_urlencoded 1.2.3. Signed-off-by: Adrien Langou <alangou@nvidia.com> * fix(deps): preserve exact credential endpoint paths during upgrades Retain url 2.5.8 in the product and its six aligned workspaces. The patched release changes both the immutable endpoint grant and the outgoing HTTP path for a literal caret. Track RUSTSEC-2026-0592 until a compatible update is available, and exercise stored grants and GitHub installation path prefixes in the issuer tests. Keep the fix in the three independently resolved examples and Rust E2E harness. Signed-off-by: Adrien Langou <alangou@nvidia.com> --------- Signed-off-by: Adrien Langou <alangou@nvidia.com>
1 parent c3f429b commit 96f407a

6 files changed

Lines changed: 40 additions & 18 deletions

File tree

‎crates/openshell-credential-issuer/src/refresh/minter.rs‎

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2009,6 +2009,23 @@ pM2zFU8SeVkvHKlEuoHaP0s=
20092009
}
20102010
}
20112011

2012+
#[test]
2013+
fn persisted_endpoint_allowlists_distinguish_literal_and_encoded_carets() {
2014+
let literal = "https://login.example/a^b";
2015+
let encoded = "https://login.example/a%5Eb";
2016+
for (allowed, denied) in [(literal, encoded), (encoded, literal)] {
2017+
let stored = [vec![allowed.to_string()]];
2018+
assert!(
2019+
ensure_endpoint_allowed(allowed, &stored).is_ok(),
2020+
"{allowed}"
2021+
);
2022+
assert!(
2023+
ensure_endpoint_allowed(denied, &stored).is_err(),
2024+
"{denied}"
2025+
);
2026+
}
2027+
}
2028+
20122029
#[tokio::test]
20132030
async fn secret_bound_mint_reaches_an_allowed_endpoint() {
20142031
let mock_server = MockServer::start().await;
@@ -2151,13 +2168,13 @@ pM2zFU8SeVkvHKlEuoHaP0s=
21512168
strategy: ProviderCredentialRefreshStrategy::GithubAppInstallation as i32,
21522169
material: HashMap::from([("installation_id".into(), "123".into())]),
21532170
token_url:
2154-
"https://github.example/api/v3/app/installations/{installation_id}/access_tokens"
2171+
"https://github.example/a^b/api/v3/app/installations/{installation_id}/access_tokens"
21552172
.into(),
21562173
..Default::default()
21572174
};
21582175
assert_eq!(
21592176
effective_token_endpoint(&github).unwrap(),
2160-
"https://github.example/api/v3/app/installations/123/access_tokens"
2177+
"https://github.example/a^b/api/v3/app/installations/123/access_tokens"
21612178
);
21622179
let aws = MintRequest {
21632180
strategy: ProviderCredentialRefreshStrategy::AwsStsAssumeRole as i32,

‎deny.toml‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@ ignore = [
1919
# oauth2, oci-client, russh-sftp, and russh-util.
2020
# https://github.com/chronotope/chrono/issues/1768
2121
{ id = "RUSTSEC-2026-0543", reason = "chrono is unmaintained; remove after first-party time APIs and all covered dependency graphs migrate to maintained alternatives and pass validation" },
22+
# The root and its aligned test workspaces retain url 2.5.8. Version 2.5.9
23+
# encodes a literal caret in a credential endpoint path as %5E, changing
24+
# both the persisted allowlist entry and the HTTP request target.
25+
# https://github.com/servo/rust-url/commit/25137be1fc1d35cc8ea7d43fc0a02166b023a483
26+
{ id = "RUSTSEC-2026-0592", reason = "Remove when a patched url can preserve exact credential request targets and persisted endpoint grants across mixed gateway versions" },
2227
]
2328

2429
# -- Licenses ------------------------------------------------------------------

‎e2e/rust/Cargo.lock‎

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎examples/governance-interceptor/Cargo.lock‎

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎examples/isolation-backend-v8/Cargo.lock‎

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎examples/supervisor-middleware-content-guard/Cargo.lock‎

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)