[sign] Approval: a deploy approval may expire up to 25 hours ahead (was an hour), so a release's day-long card can still be signed; v0.17.1

This commit is contained in:
2026-11-14 16:51:47 +01:00
parent ff14c8902f
commit f84ac575bd
7 changed files with 34 additions and 24 deletions
+1 -1
View File
@@ -700,7 +700,7 @@ impl Vault {
}
/// [`Vault::signing_check`] at `now` (Unix milliseconds): an approval must not have expired then, and must
/// expire at most an hour later.
/// expire at most 25 hours later (`custos_sign::APPROVAL_MAX_AHEAD`).
pub fn signing_check_at(&self, req: &Request, now: i64) -> Result<KeyView, Refusal> {
self.check(req, now).map(|(view, _)| view)
}