Skip to content

[docker-openvpn] Track OpenVPN User Certificate Expiration with updatecli #4932

@jayfranco999

Description

@jayfranco999

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:

Reproduction steps

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions