[vault] Signing: the Android grant keeps to values older cores read (v0.19.1) #26
Reference in New Issue
Block a user
Delete Branch "fix/android-grant-compat"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Found while bumping the app to 0.19.0, before anything pinned it: 0.19.0 records a key the Android grant makes as a new security action,
android-key-made. Every core before 0.19.0 refuses that value (the security actions are a closed list). The phone app and the web vault open the same vault with their own pinned core, so once the grant made a key, Mark's vault would stop opening on the phone and in the browser.Fix: the key's creation is written as
standing-granted, withAndroid grant made <id> for <repo> pipeline release. Every core since 0.16.0 reads that value. The grant itself (signing.android) is a member that older cores ignore and drop. FORMAT.md and SIGNING.md say so.Tests:
tests/android_grant.rsnow asserts the twostanding-grantednotes (the grant, then the key). Workspace: 284 passed, 0 failed.Self-review:
android-key-madeis gone from the code.v0.19.0stays where it is (nothing pins it); the app will pinv0.19.1. Remaining downgrade gap: an older core that saves the vault drops the grant. That is fail-safe (Android releases ask again) and is documented.