Repository navigation
OAUTH-001A1H — Refuse stale Strava refresh persistence - #607
Merged
Merged
Conversation
✅ Deploy Preview for luminous-fox-7c393f ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Contributor
Author
|
Self-review: GO — no remaining findings on exact remote head 49e81b5.
Independent runtime/security, test/mock, and corrected backup-officer reviews are GO. Patch SHA-256: bc2c962c56329bef7aa5664542c71b34c05d19a03f439c769910a25c26dcfef5. |
Contributor
Author
|
Hosted gate: GO on unchanged head 49e81b5 and unchanged base a62c147.
|
Contributor
Author
|
FINAL: merged and exact-main verified.
Issue #606 is complete/closed and the claim is released. Residual #88 work remains explicitly open. |
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.
Outcome
A Strava refresh response can now update the stored secret only when a Firestore transaction rereads the same exact access-token, refresh-token, and expiry tuple.
Closes #606
Atomic child of #88.
Scope
The design follows the provider requirement to persist and use the latest returned refresh token: https://developers.strava.com/docs/authentication/
The transaction uses the documented Firestore retry model, in which a concurrent edit reruns the read/write function and successful writes apply atomically: https://firebase.google.com/docs/firestore/manage-data/transactions
Officer handoff
Proof by surface
Residual risk
Provider refresh calls remain unserialized. The three-field fence does not detect an identical-tuple replacement. Post-commit acknowledgement can remain ambiguous, and provider/local reconciliation, IAM, encryption, audit, protected deployment, and live verification stay open under #88.
Safety review