-
Notifications
You must be signed in to change notification settings - Fork 495
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
spire-agent: allow automatic re-bootstrap #4624
Comments
This can be caused for 2 main reasons: In both cases we can get into an status where our stored Agent SVID is no longer valid, and we must force a new attestation.
To solve That is not going to solve |
|
Does this also happen if the |
This is one of the last major hurdles I have left to deal with I think... There are some use cases I have, where it is totally safe to rebootstrap. Two come to mind immediately:
Do we just need a config flag allowing rebootstrapping in case of expired trust bundle, or does the logic/config need to be more complex then that? |
If an agent is disconnected from spire-server for a longer period of time it may end up in the situation where the bundle it saved on disk will be out of date. This will lead to the agent being unable to connect to spire-server because the certificate the server presents can not be validated using the outdated bundle the agent has:
Even if spire-agent has access to an up to date bundle from other sources (e.g. a config map that spire-server maintains and
was used for the initial bootstrap) it will not use as long as it has a bundle saved. The operator has to intervene to delete that saved bundle to get the agent to reconnect. I think this was a deliberate design choice, but maybe it doesn't always make sense.
In a lot of cases the initial bootstrap is automated, e.g. the config map example above, so it would likely wouldn't make much of a difference if we allowed the agent to re-bootstrap. It would definitely be more convenient from the perspective of the operator since in some environments it's difficult to get the required access to remove that saved bundle.
This could be configurable and logs and metrics would need to be emitted to make it possible for operators to be notified of the re-bootstrap.
The text was updated successfully, but these errors were encountered: