Add Android Play Integrity verifier and refresh path#22
Merged
Conversation
aliXsed
force-pushed
the
feat/android-play-integrity-verifier
branch
from
July 17, 2026 01:55
3a4a018 to
3e2a46a
Compare
Promote reqwest, add gcp_auth, and land a trait-mocked Google decode path plus iteration-1 requestHash binding against the synthetic fixture. Co-authored-by: Cursor <[email protected]>
Expose POST /v1/attest/android and Android refresh, fail-degrade on Google outages by extending grace once, and trip a decode circuit. Co-authored-by: Cursor <[email protected]>
Integration tests drive a mocked decode client so CI never depends on ADC while still exercising token minting and one-shot grace extension. Co-authored-by: Cursor <[email protected]>
aliXsed
force-pushed
the
feat/android-play-integrity-verifier
branch
from
July 17, 2026 01:57
3e2a46a to
0a3a160
Compare
Coverage reportThresholds: 80% line · 78% region (condition) ✅ Coverage meets the required threshold. |
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
decodeIntegrityTokenclient (reqwest+gcp_authADC) with a consecutive-failure circuit breaker, plus a local verdict policy engine (PLAY_RECOGNIZED, device floor, package/cert trust, 300s freshness, iteration-1requestHash = SHA256(challenge ‖ wallet)).POST /v1/attest/androidand Android support onPOST /v1/attest/refresh; on transient Google failures, extend an existing Android record’s grace once and return a retryable error without breaking the wallet session.MockPlayIntegrityClientso CI never needs GCP credentials.Stacked on #21 (
feat/ios-app-attest-verifier). Retarget tomainafter that lands.Test plan
cargo test --workspacecargo clippy --workspace --all-targets --all-features -- -D warningscargo fmt --checkevaluate_verdict/ JWE precheck)/v1/attest/androidwith a mocked verdict mintstier=attested/att.platform=androidgrace_extendedonly onceMade with Cursor