-
-
Notifications
You must be signed in to change notification settings - Fork 12
Open
Milestone
Description
Service(s)
VPN
Summary
User certificates in jenkins-infra/docker-openvpn have no automated expiration tracking. When certificates expire, users lose VPN access without warning. We need an automated system to alert users 30 days before their certificates expire.
Task:
Implement an updatecli manifest (following patterns in jenkins-infra/azure) that:
- Reads the current expiration date from each certificate as source (using openssl)
- Calculates if the source's date is less than 30 days ahead (as condition)
- Replaces the content of the user certificate file (cert/pki/issued/xxx.crt) with dummy text such as EXPIRED (as target since we need a file change)
- Opens a draft PR (we will never merge these, it's only a notification technique) which mentions the user in the PR body (telling them to renew soon)
Similar pattern used in jenkins-infra/azure:
- Template: https://github.com/jenkins-infra/azure/blob/main/updatecli/updatecli.d/fs-sp-writer-end-dates_infra.ci.jenkins.io.tf.tpl
- Values: https://github.com/jenkins-infra/azure/blob/561338686daadad4650bba8f278fb0c9c561c8f4/updatecli/values.yaml#L10-L26
Reproduction steps
No response
Reactions are currently unavailable