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

Backport of fix raft tls key rotation panic when rotation time in past into release/1.10.x #15175

Conversation

hc-github-team-secure-vault-core
Copy link
Collaborator

Backport

This PR is auto-generated from #15156 to be assessed for backporting due to the inclusion of the label backport/1.10.x.

The below text is copied from the body of the original PR.


Raft TLS key rotation will panic if the active key's creation time is more than 24 hours the past. Calculating the duration using time.Until will produce a negative value which causes time.NewTicker` to panic. This PR introduces a fix for this issue by creating a ticker with a duration equal to 1 minute to effectively cause rotation to occur immediately.

Fixes: #15147

@hc-github-team-secure-vault-core hc-github-team-secure-vault-core force-pushed the backport/fix-raft-tls-key-rotation-panic/terminally-normal-wallaby branch from 1e3126d to a71ed8d Compare April 26, 2022 01:49
@ccapurso ccapurso requested a review from ncabatoff April 26, 2022 01:51
@ccapurso ccapurso merged commit 95bb6a3 into release/1.10.x Apr 26, 2022
@ccapurso ccapurso deleted the backport/fix-raft-tls-key-rotation-panic/terminally-normal-wallaby branch April 26, 2022 12:38
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.

None yet

3 participants