exclude revoked certs from default to auto-rotate
This commit is contained in:
parent
cf7de0aa59
commit
e530664da6
|
@ -153,6 +153,7 @@ def get_all_certs_attached_to_endpoint_without_autorotate():
|
||||||
return (
|
return (
|
||||||
Certificate.query.filter(Certificate.endpoints.any())
|
Certificate.query.filter(Certificate.endpoints.any())
|
||||||
.filter(Certificate.rotation == false())
|
.filter(Certificate.rotation == false())
|
||||||
|
.filter(Certificate.revoked == false())
|
||||||
.filter(Certificate.not_after >= arrow.now())
|
.filter(Certificate.not_after >= arrow.now())
|
||||||
.filter(not_(Certificate.replaced.any()))
|
.filter(not_(Certificate.replaced.any()))
|
||||||
.all() # noqa
|
.all() # noqa
|
||||||
|
|
Loading…
Reference in New Issue