Skip to content

fix(credentials): reject ambiguous token endpoints with url 2.5.9 - #5938

Draft
alangou wants to merge 4 commits into
ai-openshell:mainfrom
alangou:fix/credential-endpoint-compatibility/alangou
Draft

alangou wants to merge 4 commits into
ai-openshell:mainfrom
alangou:fix/credential-endpoint-compatibility/alangou

Conversation

@alangou

@alangou alangou commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Upgrade url to 2.5.9 and remove the exception for the nested-blob: origin stack overflow. The patched parser encodes a literal caret in an HTTP path. OpenShell now refuses an ambiguous credential destination before contacting it. The owner can authorize the exact replacement URL once they have confirmed where it routes. RustSec advisory · Upstream path encoding change

Related Issue

N/A — dependency maintenance without a covering issue.

Changes

  • The root and six aligned test workspaces update url from 2.5.8 to 2.5.9 and form_urlencoded from 1.2.2 to 1.2.3. Four independent workspaces already use the patched versions, and two do not resolve either package.
  • OAuth, Google, and GitHub App refreshes and dynamic token grants validate the request destination before sending credentials. The existing reqwest client performs the exchange. A stored grant for /a^b cannot authorize /a%5Eb. Explicit %5E, %5e, and double-encoded spellings keep their individual wire paths.
  • Operators can list, export, and repair legacy provider profiles. Submitted profiles and new workspace-secret grants reject ambiguous destinations. The migration guide covers replacement grants, provider reconfiguration, and verification by a fresh rotation.
  • The Rust CLI, Rust SDK, and gateway also check the OIDC endpoints they use for login, discovery, and signing keys. This prevents the same parser update from selecting a different handler during authentication.
  • Retain the reviewed exception for unmaintained chrono 0.4.45. All published versions are affected and eight lockfiles still use it. Remove the exception after first-party and transitive users migrate and pass validation. Chrono advisory · Partial migration

Release Notes

A credential endpoint with a literal ^ in its effective path now requires owner reconfiguration. Confirm the intended route before granting access to an encoded endpoint. Existing grants remain readable. Provider migration guide

Testing

Base 152c59d3178039e3fbb4a5595f9fff7216a6be92. Current head 1c8f7a16f16521e68a5e2c29a8357cf8099a50df.

  • All 13 Cargo lockfiles and six alignment checks passed. The full root rust:deny task, nine crypto policy regressions, and 12 independent workspace advisory scans passed. The RustSec database was at 1d328b6b. The paginated Dependabot queue contained zero open alerts.

  • Rust formatting, both workspace compile checks, all 14 Clippy commands, documentation checks and Rust doctests passed. The full local Linux nextest run passed 10,498 tests (64 skipped). Five standalone suites passed another 128 (3 skipped). The independent crypto backend test and conformance inventory passed.

  • On one full run, the sandbox descendant-sweep test failed during process termination. It subsequently passed five isolated runs, and the entire workspace passed at eight-way concurrency on the same commit.

  • Four local E2E lanes passed on this head. An upgrade from an older gateway using the same SQLite database proved that old grants remain readable, blocked mints generate zero HTTP requests, and an explicitly authorized replacement mints at the exact encoded path. A live GitHub App exchange verified the signed assertion's destination. The CLI OIDC and Docker/Keycloak lanes checked recipient paths, three login/authorization cases, and six gateway discovery/JWKS cases.

  • Hosted core E2E passed on 1c8f7a16. In the first attempt, the Kubernetes v1beta1 static-provider REST test could not read its credential placeholder. A targeted rerun on the same commit passed all 77 Kubernetes tests with zero skips, including that case. The aggregate E2E gate and all four required PR checks passed. First Kubernetes run · Successful Kubernetes rerun · Core E2E result

  • The separate hosted advisory compatibility review returned no assessment. Its report says the NVIDIA inference credential is missing. Advisory job

  • Added tests for on-wire delivery and refusal, grant creation, catalog repair, and CLI, SDK, and gateway OIDC behavior.

  • Four independent security and maintainability review rounds covered the initial regression tests, the single-client implementation, legacy profile repair, and the final request destination checks.

Checklist

  • Follows Conventional Commits
  • All four commits have DCO sign-offs and cryptographic signatures
  • Operator documentation updated

Signed-off-by: Adrien Langou <alangou@nvidia.com>
@github-actions github-actions Bot added the state:accepted A maintainer decided OpenShell should pursue this issue label Nov 24, 2026
Upgrade url to 2.5.9 for RUSTSEC-2026-0592. Require explicit reconfiguration for credential destinations whose path contains a literal caret. Keep the existing HTTP client and compare persisted grants without rewriting them.

Signed-off-by: Adrien Langou <alangou@nvidia.com>
…inations

Signed-off-by: Adrien Langou <alangou@nvidia.com>
Signed-off-by: Adrien Langou <alangou@nvidia.com>
@alangou alangou changed the title fix(credentials): preserve authorized token endpoints with patched url fix(credentials): reject ambiguous token endpoints with url 2.5.9 Nov 24, 2026
@alangou alangou added the test:e2e Requires end-to-end coverage label Nov 24, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

state:accepted A maintainer decided OpenShell should pursue this issue test:e2e Requires end-to-end coverage

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant