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

Rebootstrap support - Phase 1 #5892

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from
Draft

Conversation

kfox1111
Copy link
Contributor

@kfox1111 kfox1111 commented Feb 22, 2025

Pull Request check list

  • Commit conforms to CONTRIBUTING.md?
  • Proper tests/regressions included?
  • Documentation updated?

Description of change
Allows the spire-agent to rebootstrap itself if the server ca goes invalid.

There will be a configurable timeout between the first seen invalid server certificate, to when it triggers a rebootstrap. Recovery of the server cert/ca during this time will prevent unneeded/undesired rebootstrapping of agents.

Which issue this PR fixes
partially fixes: #4624

Why still draft

  • needs a configurable for rebootstrap delay seconds
  • needs to store the time in rebootstrap cooldown in the store
  • needs to read the cooldown time from the store
  • configuration checks
    • doesnt work with non reattestable attestors
    • depends on retryBootstrap setting
    • rebootstrap enabled and insecure bootstrap enabled.
  • new flag to do just rebootstrap without resetting svid
  • no tests

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

spire-agent: allow automatic re-bootstrap
1 participant