Skip to content

Alert earlier for expiring certificates #12171

@manuelbuil

Description

@manuelbuil

Is your feature request related to a problem? Please describe.

K3s creates leaf certificates expire after 365 days. When the certificate is within 90 days to expire, K3s creates an event that warns about this expiration being soon. Moreover, within those 90 days, a restart of the node will automatically rotate the certificates.

I would like to increase that "window" of automatic-rotation and warning from 90 to 120 days. This would make the rotation of certificates more likely to happen and that would help users that upgrade every quarter.

For example, the Third Quarter (Q3): July 1 - September 30 has 92 days. Imagine the certificates expire on September 29th and the user upgrades and restarts on June 30th and plans the next upgrade and restart on September 30th. On July the 2nd, the "window" would start, i.e. the user will get the expiration warning and a restart would rotate the certificates but imagine the user does not do anything with this cluster until the next upgrade "date". By the time the user does the upgrade (September 30th), the certificates will have expired and the cluster will not work correctly.

Describe the solution you'd like

Increase the automatic-certificate window to 120 days or even make it configurable, within an acceptable range, e.g. 90 to 365 days. The latter (365 days) would mean that the certificate gets rotated in every restart, which might be a good solution for certain people, although it should be checked if that scales

Describe alternatives you've considered

Additional context

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

Status

Done Issue

Relationships

None yet

Development

No branches or pull requests

Issue actions