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 drain: use authenticated ID as source of drained-by metadata into release/1.5.x #20336

Merged

Conversation

hc-github-team-nomad-core
Copy link
Contributor

Backport

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

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


When a node is set to drain, the state store reads the auth token off the request to record LastDrain metadata about the token used to drain the node. This code path in the state store can't correctly handle signed Workload Identity tokens or bearer tokens that may have expired (for example, while restarting a server and applying uncompacted Raft logs).

Rather than re-authenticating the request at the time of FSM apply, record the string derived from the authenticated identity as part of the Raft log entry.

Fixes: #17471


Overview of commits

@vercel vercel bot temporarily deployed to Preview – nomad April 9, 2024 13:30 Inactive
@vercel vercel bot temporarily deployed to Preview – nomad-storybook-and-ui April 9, 2024 13:36 Inactive
@tgross tgross merged commit e5c162c into release/1.5.x Apr 9, 2024
22 of 25 checks passed
@tgross tgross deleted the backport/17471-node-drain-acl/grossly-funny-piglet branch April 9, 2024 14:16
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.

2 participants