Skip to content

Document route-owned authentication fallthrough - #663

Open
hdbjeff wants to merge 3 commits into
mainfrom
docs/deferred-credential-route-ownership
Open

Document route-owned authentication fallthrough#663
hdbjeff wants to merge 3 commits into
mainfrom
docs/deferred-credential-route-ownership

Conversation

@hdbjeff

@hdbjeff hdbjeff commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

Documents the route-ownership authentication contract introduced by HarperFast/harper#2419 in the security boundary, HTTP fallthrough contract, and v5.3 release notes. No configuration schema documentation changes are needed because the behavior is automatic and adds no setting.

For the human reviewer

  1. Confirm that "unrecognized credential" and "Harper-owned handler" describe the public contract precisely enough without exposing internal rejection-tag mechanics. The alternative is documenting the internal state machine, which would make implementation detail part of the supported API; changing this wording later is documentation-only.

Verification

  • End-to-end route: the Docusaurus production build at current head 05e6ba2c65d79853ebcd8f8aab55508aefe1397b completed successfully and generated 406 documents.
  • Formatting and CI: both changed files pass Prettier; GitHub format, lint, TypeScript, workflow, security, companion, and preview-deployment checks pass.
  • Review provenance: Gemini Code Assist reviewed afc7430ea9cb1f75e88f964da02ca13c94b232d0; current head 05e6ba2 implements its two sentence-separation findings, with both threads replied to and resolved.

Complexity: easy
Review-Coverage: authored=codex; ran=gemini; adjudicated=codex; rounds=1 @ afc7430
Human-Review-Need: 4 @ 05e6ba2

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the documentation to explain the new route-owned authentication and fallthrough behavior introduced in version 5.3.0. The feedback suggests splitting sentences in the HTTP overview and release notes to present critical security warnings and fallback behaviors in separate, distinct sentences, improving readability and scannability.

Comment thread reference/http/overview.md Outdated
Comment thread release-notes/v5-lincoln/5.3.md Outdated
@github-actions

github-actions Bot commented Sep 2, 2026

Copy link
Copy Markdown

🚀 Preview Deployment

Your preview deployment is ready!

🔗 Preview URL: https://preview.harper-documentation.harperfabric.com/pr-663

This preview will update automatically when you push new commits.

@github-actions
github-actions Bot temporarily deployed to pr-663 September 2, 2026 18:47 Inactive
@github-actions

github-actions Bot commented Sep 2, 2026

Copy link
Copy Markdown

🚀 Preview Deployment

Your preview deployment is ready!

🔗 Preview URL: https://preview.harper-documentation.harperfabric.com/pr-663

This preview will update automatically when you push new commits.

@hdbjeff
hdbjeff marked this pull request as ready for review September 2, 2026 18:51
@hdbjeff
hdbjeff requested a review from a team as a code owner September 2, 2026 18:51
@hdbjeff
hdbjeff removed the request for review from a team September 2, 2026 18:52
Review on HarperFast/harper#2419 found that authentication was re-decorating
any 401 returned up the chain: overwriting WWW-Authenticate with Basic, or
rewriting it to a login-page redirect for a browser. That silently replaced an
application catch-all's own challenge, which is the case this feature exists to
support. The fix scopes that rewriting away from deferred credentials, so the
externally visible contract now includes response provenance.

Also records the WebSocket/MQTT upgrade outcome for an unrecognized credential.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@github-actions

github-actions Bot commented Sep 3, 2026

Copy link
Copy Markdown

🚀 Preview Deployment

Your preview deployment is ready!

🔗 Preview URL: https://preview.harper-documentation.harperfabric.com/pr-663

This preview will update automatically when you push new commits.

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.

3 participants