[vault] Android: an Android key never counts as the release or test set (v0.14.1) #17

Manually merged
mnovak merged 1 commits from fix/android-sets into main 2026-11-08 00:56:41 +01:00
Owner

Fix found by the app's tests for v0.14.0 (PR #16): an Android key has role release or test, and signing_create refused 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_approve could also have taken the Android key as the model for domi-approve's scope.

Change

  • signing_create: a set exists only when a key of that role that is not android exists.
  • signing_add_approve: the model is a release key that is neither a root nor android.
  • SIGNING.md: "An Android key is a key of its own, not part of a set". Version 0.14.1. No format change.

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-approve with the release set's scope, a second release set still refused).

Self-review

  • Behaviour for vaults without Android keys is unchanged (the filter only excludes android).
Fix found by the app's tests for v0.14.0 (PR #16): an Android key has role `release` or `test`, and `signing_create` refused 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_approve` could also have taken the Android key as the model for `domi-approve`'s scope. ## Change - `signing_create`: a set exists only when a key of that role that is not `android` exists. - `signing_add_approve`: the model is a release key that is neither a root nor `android`. - SIGNING.md: "An Android key is a key of its own, not part of a set". Version 0.14.1. No format change. ## 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-approve` with the release set's scope, a second release set still refused). ## Self-review - Behaviour for vaults without Android keys is unchanged (the filter only excludes `android`).
mnovak added 1 commit 2026-11-08 00:56:34 +01:00
mnovak manually merged commit aa5b692651 into main 2026-11-08 00:56:41 +01:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: mnovak/CustosPublic#17