Repository navigation
docs: LongPort token durability plan + read-only expiry inspect - #585
Merged
Merged
Conversation
Add runbook for paper/HK/SG Legacy token storage, why in-cycle refresh missed expiry (probe read-only + paused strategy), and path A before OAuth. Ship a workflow_dispatch JWT expiry inspector that never refreshes or writes Secret Manager versions.
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
refresh_token_if_neededhistorically failed to prevent expiry, and recommend path A (pre-expiry Legacy refresh) before OAuth2.workflow_dispatchJWT expiry inspector (names + days remaining only; no/v1/token/refresh, no SM writes).expired_at+ fail-closed, then scheduled refresh paper→sg→HK last) lives in the runbook.Test plan
pytest -q tests/test_inspect_longport_token_expiry.py(6 passed)paperthensg(HK last optional); confirm summary shows days only, no secret materialRefs: Getting Started, Refresh API, 401003