mcm: revokation
build-and-push / check-branch (push) Successful in 14s
build-and-push / prepare (push) Successful in 8s
build-and-push / build (amd64, linux/amd64) (push) Successful in 19m43s

- Bug fix for revokation procedure
- Increased CRL (Certificate Revocation List) expiration from 7 days to 365
This commit is contained in:
2026-11-07 11:36:38 +03:30
parent 75e9e347dd
commit bfefcbf636
5 changed files with 40 additions and 16 deletions
+2 -2
View File
@@ -195,7 +195,7 @@ def handle_renew_begin(device_id):
Only devices that already hold an issued, non-revoked cert get one, so
strangers can't make the server accumulate nonces. A device that gets no
answer should fall back to an ordinary enrollment request."""
if device_id in store.list_revoked():
if store.is_revoked(device_id):
log.info("renewal challenge refused for %s: device is revoked", device_id)
return
if device_id not in store.list_issued():
@@ -237,7 +237,7 @@ def handle_renew(device_id, csr_pem, nonce, signature_b64, meta):
log.info("renewal from %s falling back to manual approval: %s", device_id, why)
store.add_pending(device_id, csr_pem, meta)
if device_id in store.list_revoked():
if store.is_revoked(device_id):
fall_back_to_manual("device is revoked")
return