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

[release-1.30] Remove local restriction for deferred node password validation #11650

Merged

Conversation

brandond
Copy link
Member

Proposed Changes

Remove local restriction for deferred node password validation

Restricting deferred node password validation to only requests from the local node is not possible without breaking split-role cluster cold start. There are too many cases where node password secrets may not yet be available due to the apiserver not being up.

This was added in response to https://github.com/rancher/security-team/issues/1097#issuecomment-2575374965 but turns out to not be something we can actually lock down without breaking things.

Types of Changes

regression fix

Verification

See linked issue

Testing

TODO - need to add a split-role test that mimics rancher's order of operations. For split-role clusters, rancher waits for all etcd nodes to start containerd, kubelet, and etcd before joining control-plane nodes.
Tracking this in: #11647

Linked Issues

User-Facing Change


Further Comments

Restricting deferred node password validation to only requests from the local node is not possible without breaking split-role cluster cold start. There are too many cases where node password secrets may not yet be available due to the apiserver not being up.

Signed-off-by: Brad Davidson <[email protected]>
@brandond brandond requested a review from a team as a code owner January 23, 2025 22:38
Also add an ordinal to subtests so its easier to figure out which one is failing

Signed-off-by: Brad Davidson <[email protected]>
Copy link

codecov bot commented Jan 24, 2025

Codecov Report

Attention: Patch coverage is 50.00000% with 1 line in your changes missing coverage. Please review.

Project coverage is 46.58%. Comparing base (6d4a309) to head (4dcbccb).
Report is 2 commits behind head on release-1.30.

Files with missing lines Patch % Lines
pkg/nodepassword/validate.go 50.00% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@               Coverage Diff                @@
##           release-1.30   #11650      +/-   ##
================================================
- Coverage         49.27%   46.58%   -2.69%     
================================================
  Files               185      185              
  Lines             19437    19434       -3     
================================================
- Hits               9577     9054     -523     
- Misses             8477     9059     +582     
+ Partials           1383     1321      -62     
Flag Coverage Δ
e2etests 40.10% <50.00%> (-4.09%) ⬇️
inttests 18.70% <0.00%> (-16.31%) ⬇️
unittests 16.88% <50.00%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@brandond brandond merged commit 18c072e into k3s-io:release-1.30 Jan 24, 2025
39 checks passed
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.

3 participants