You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: robust agent registration with credential persistence
Solve the 'already registered' error when agent gets SIGKILL'd and
restarts. The init container now:
1. Checks if existing credentials on PVC (if enabled) are still valid
2. Falls back to checking emptyDir credentials
3. If valid, skips registration entirely (instant restart)
4. If invalid or missing, registers fresh
Also adds:
- agent.lapiRegistration.machineName: fixed identity across restarts
- PVC mount on init container: reads existing credentials from PVC
- Works seamlessly with and without PVC persistence
Applied to: DaemonSet, Deployment, and AppSec templates.
Inspired by PR crowdsecurity#266 with improvements.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
0 commit comments