[vault] Android: an Android key never counts as the release or test set (v0.14.1) #17
Reference in New Issue
Block a user
Delete Branch "fix/android-sets"
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?
Fix found by the app's tests for v0.14.0 (PR #16): an Android key has role
releaseortest, andsigning_createrefused a set when any key of that role existed, so a vault whose Android key was made first could never get its release (or test) set.signing_add_approvecould also have taken the Android key as the model fordomi-approve's scope.Change
signing_create: a set exists only when a key of that role that is notandroidexists.signing_add_approve: the model is a release key that is neither a root norandroid.Tests (cargo test --workspace: 216 passed, 0 failed)
tests/android.rs:an_android_key_made_first_does_not_count_as_the_release_or_test_set(no approval key without a release set, then both sets made,domi-approvewith the release set's scope, a second release set still refused).Self-review
android).