Skip to content

fix(federation): refuse an empty fragment in Entity Identifiers; update the Trust Chain expiry note - #781

Merged
osanderson merged 2 commits into
mainfrom
fix/review-1102-followups
Nov 2, 2026
Merged

osanderson merged 2 commits into
mainfrom
fix/review-1102-followups

Conversation

@osanderson

Copy link
Copy Markdown
Collaborator

Summary

Two small follow-ups to the v0.69.0 review fixes.

  • fix(federation): internal/federation's isHTTPSURL checked url.URL.Fragment, which url.Parse leaves empty for a bare #, so https://ia.example.org# was accepted as an authority_hints or trust_anchor_hints entry or a source_endpoint. It now refuses any #, matching the issuer, endpoint and redirect URI parsers. Two cases added to TestParseRefusesStatementsSection32Rejects; both fail before the change.
  • docs(upgrading): the section on a Client stopping at the Trust Chain's expiry said a flow already begun completes as before. Since the client gating fix, every method that contacts or trusts the OP refuses once the chain has expired, with a *client.Error (ErrorTrustChainExpired). The section now says so.

🤖 Generated with Claude Code

osanderson and others added 2 commits November 2, 2026 15:25
…ource_endpoint

isHTTPSURL checked url.URL.Fragment, which url.Parse leaves empty for a
bare "#", so "https://ia.example.org#" passed as an authority hint,
trust anchor hint or source_endpoint. It now refuses any "#", as the
issuer, endpoint and redirect URI parsers do since v0.69.0.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ires

The v0.62.0 section said a flow already begun completes as before.
Since v0.69.0 the client refuses every method that contacts or trusts
the OP once the chain has expired, with a *client.Error.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@codecov

codecov Bot commented Nov 2, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@sonarqubecloud

sonarqubecloud Bot commented Nov 2, 2026

Copy link
Copy Markdown

@osanderson
osanderson merged commit 4c64af4 into main Nov 2, 2026
27 checks passed
@osanderson
osanderson deleted the fix/review-1102-followups branch November 2, 2026 07: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.

1 participant