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 heartbeat: use leader's ACL token when failing heartbeat into release/1.9.x #24248

Merged

Conversation

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

Backport

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

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


In #23838 we updated the Node.Update RPC handler we use for heartbeats to be more strict about requiring node secrets. But when a node goes down, it's the leader that sends the request to mark the node down via Node.Update (to itself), and this request was missing the leader ACL needed to authenticate to itself.

Add the leader ACL to the request and update the RPC handler test for disconnected-clients to use ACLs, which would have detected this bug. Also added a note to the Authenticate comment about how that authentication path requires the leader ACL.

Fixes: #24231
Ref: https://hashicorp.atlassian.net/browse/NET-11384


Overview of commits

@vercel vercel bot temporarily deployed to Preview – nomad-ui October 17, 2024 17:51 Inactive
@tgross tgross merged commit e6facdf into release/1.9.x Oct 17, 2024
19 of 20 checks passed
@tgross tgross deleted the backport/b-heartbeat-fail-update/kindly-exotic-rooster branch October 17, 2024 18:11
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