Repository navigation
docs(backup): document attestation request-hash contract - #15
Draft
SeanROlszewski wants to merge 1 commit into
Draft
SeanROlszewski wants to merge 1 commit into
SeanROlszewski wants to merge 1 commit into
Conversation
Adds a "Request attestation" section to the Backup Service components page
covering the attestation-gateway token, the canonical {body, method, pathUri}
request-hash format shared via Oxide, and the enforcement toggle.
Pins the invariant that `pathUri` is the full request path including the `/v1`
prefix (the drift that broke attestation validation for iOS & Android when the
server hashed the axum nest-stripped path). See worldcoin/backup-service#227.
Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a Request attestation section to the Backup Service components page (
world-app/backup/components.mdx). This contract was previously undocumented, which is what let World App and the Backup Service drift on the hashed request path.Covers:
attestation-tokenheader) and thejti= request-hash binding on the three attestation-gated endpoints.{body, method, pathUri}request-hash format, shared via Oxide'sAttestRequestHasher.attestation-failureresponse header used while enforcement is disabled.Why now
Pins the invariant that
pathUriis the full request path including the/v1prefix. The Backup Service was hashing the axum.nest("/v1", …)-stripped path while both clients hash the full path, so attestation validation failed for every iOS & Android client. Fixed server-side in worldcoin/backup-service#227; this documents the contract so a future routing refactor or new client doesn't reintroduce the drift.Notes for reviewers
<Warning>/<Note>component usage renders as intended on this page.backup-service/src/attestation_gateway.rs.🤖 Generated with Claude Code