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

Fail to validate server tokens that use bootstrap id/secret format #7389

Merged

Conversation

brandond
Copy link
Member

@brandond brandond commented May 1, 2023

Proposed Changes

Fail to validate server tokens that use bootstrap id/secret format

Exit out with a proper failed to normalize server token; must be in format K10<CA-HASH>::<USERNAME>:<PASSWORD> or <PASSWORD> error instead of failing later on when the bootstrap save code notices that the password is an empty string.

Types of Changes

bugfix

Verification

Start a k3s server with a --token value that uses the bootstrap token format.

Testing

Yes

Linked Issues

User-Facing Change

K3s now exits with a proper error message when the server token uses a bootstrap token `id.secret` format.

Further Comments

@brandond brandond requested a review from a team as a code owner May 1, 2023 21:19
@brandond brandond force-pushed the fix-server-token-format-validation branch from f3b12e9 to 9465243 Compare May 1, 2023 22:15
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
@brandond brandond force-pushed the fix-server-token-format-validation branch from 9465243 to 4a618fb Compare May 1, 2023 23:23
Copy link
Contributor

@johnatasr johnatasr left a comment

Choose a reason for hiding this comment

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

LGTM !!!

@brandond
Copy link
Member Author

brandond commented May 5, 2023

merging; test flake has been resolved on mater

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.

4 participants