Skip to content

Fix Smart HTTP credential host scoping - #446

Closed
Ivanbeethoven wants to merge 3 commits into
libra-tools:mainfrom
Ivanbeethoven:agent/fix-smart-http-auth-scope
Closed

Fix Smart HTTP credential host scoping#446
Ivanbeethoven wants to merge 3 commits into
libra-tools:mainfrom
Ivanbeethoven:agent/fix-smart-http-auth-scope

Conversation

@Ivanbeethoven

Copy link
Copy Markdown
Collaborator

Normalize Smart HTTP request URLs to their origin before credential lookup.\n\nThis prevents repository and protocol paths from causing host-scoped credentials to miss, which previously led fetch and push to fall back to an HTTP 401 prompt.\n\nNo validation command was run in this change set.

Ivanbeethoven and others added 3 commits July 22, 2026 13:50
Resolve the src/internal/auth.rs conflict in favour of main. Both fixes
this branch carried have already landed upstream independently:

- the Smart HTTP push framing change (bytes::Bytes body plus Accept,
  User-Agent and Content-Length headers) merged as 9209b9f via libra-tools#442;
- HostScope::from_request_url was fixed on main by 1239bbd, which drops
  straight to scope_of instead of normalizing the URL to its origin first.
  The two spellings are behaviourally identical — this branch set the path
  to "/" and cleared query/fragment so that from_url's refusals became
  no-ops before it delegated to scope_of — so main's simpler form is kept.

The merged tree is byte-identical to origin/main.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@genedna genedna closed this Aug 8, 2026
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.

2 participants