Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automatically rotate agent certificates on init and warn users when they are nearing expiration #3452

Open
AustinAbro321 opened this issue Jan 30, 2025 · 0 comments
Labels
enhancement ✨ New feature or request

Comments

@AustinAbro321
Copy link
Contributor

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

Currently Zarf agent certificates expire after 375 days. They expire without warning and can often confuse users. There is a builtin way to update certs, zarf tool update-creds agent, but when a users' cert expires, there's not a good way for them to find that command.

We should automatically update the agent creds on init, and warn the user on deploy if their certs are going to expire in the next 60 days.

Describe the behavior you'd like

  • Given A user has an existing Zarf cluster
  • When a user runs zarf init
  • Then the agent certs are updated

and

  • Given A user has an existing Zarf cluster with an agent cert that is expiring in the next 60 days
  • When a user runs zarf package deploy
  • Then a user gets a warning and is told to run zarf tools update-creds (potentially we could roll them automatically here as well)

Describe alternatives you've considered

We could just make the certs last forever. This could be brittle if Kubernetes every enforces a limit on the mutatingwebhook certs. Also not ideal from a security posture perspective

@AustinAbro321 AustinAbro321 added the enhancement ✨ New feature or request label Jan 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement ✨ New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant