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

nomad: only activate one-time auth tokens with 1.1.0 #10952

Merged
merged 2 commits into from
Jul 27, 2021

Conversation

notnoop
Copy link
Contributor

@notnoop notnoop commented Jul 27, 2021

Fix a panic in handling one-time auth tokens, used to support nomad ui --authenticate.

If the nomad leader is a 1.1.x with some servers running as 1.0.x, the
pre-1.1.0 servers risk crashing and the cluster may lose quorum. That
can happen when nomad authenticate -ui command is issued, or when the
leader scans for expired tokens every 10 minutes.

Fixed #10943 .

Fix a panic in handling one-time auth tokens, used to support `nomad ui
--authenticate`.

If the nomad leader is a 1.1.x with some servers running as 1.0.x, the
pre-1.1.0 servers risk crashing and the cluster may lose quorum. That
can happen when `nomad authenticate -ui` command is issued, or when the
leader scans for expired tokens every 10 minutes.
@notnoop notnoop requested review from schmichael and shoenig July 27, 2021 15:39
@notnoop notnoop self-assigned this Jul 27, 2021
Copy link
Member

@shoenig shoenig left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@vercel vercel bot temporarily deployed to Preview – nomad July 27, 2021 17:15 Inactive
@notnoop notnoop merged commit 3f80eab into main Jul 27, 2021
@notnoop notnoop deleted the b-panic-authentication-token-version branch July 27, 2021 17:17
@notnoop notnoop mentioned this pull request Jul 28, 2021
@github-actions
Copy link

I'm going to lock this pull request because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active contributions.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 17, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

panic: failed to apply request nomad.(*nomadFSM).Apply
2 participants