[vault] Signing: a key the Android grant makes is standing-granted, a value older cores read; v0.19.1
0.19.0 wrote a new security action, android-key-made, which every older core refuses. The phone app and the web vault open the same vault with their own pinned core, so a vault in which the grant made a key would stop opening there. The key's creation is now standing-granted with 'Android grant made <id> for <repo> pipeline release'; the grant itself is a member older cores ignore.
This commit is contained in:
@@ -100,12 +100,13 @@ fn the_grant_makes_an_apps_key_and_signs_its_first_apk_without_a_card() {
|
||||
let g = v.android_grant().unwrap();
|
||||
assert_eq!((g.uses, g.last_used, g.made.clone()), (2, Some(NOW + 3), s(&["culina-android"])));
|
||||
|
||||
assert_eq!(notes(&v, Action::AndroidKeyMade), ["culina-android for mnovak/Culina pipeline release"]);
|
||||
// Granting, then the key it made: both `standing-granted`, a value cores since 0.16.0 read (core 0.19.1).
|
||||
let granted_note = notes(&v, Action::StandingGranted);
|
||||
assert_eq!(granted_note.len(), 1);
|
||||
assert_eq!(granted_note.len(), 2, "{granted_note:?}");
|
||||
assert!(granted_note[0].contains("Android releases") && granted_note[0].contains("mnovak/*"), "{granted_note:?}");
|
||||
assert_eq!(granted_note[1], "Android grant made culina-android for mnovak/Culina pipeline release");
|
||||
// The public note call cannot write it.
|
||||
assert!(v.security_note(Action::AndroidKeyMade, "x", NOW).is_err());
|
||||
assert!(v.security_note(Action::StandingGranted, "x", NOW).is_err());
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
||||
Reference in New Issue
Block a user