-
Notifications
You must be signed in to change notification settings - Fork 25.6k
Error log when license verification fails locally #102919
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
Error log when license verification fails locally #102919
Conversation
|
Note to reviewers: I recommend reviewing the PR commit-by-commit. |
|
Hi @albertzaharovits, I've created a changelog YAML for you. |
|
Pinging @elastic/es-security (Team:Security) |
jakelandis
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
| } | ||
|
|
||
| private void maybeRegisterOrUpdateLicense(ClusterState previousClusterState, ClusterState currentClusterState) { | ||
| if (XPackPlugin.isReadyForXPackCustomMetadata(currentClusterState) == false) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1 to completely remove this whole if block if you choose to ... i started to remove these across the board... but kinda forgot about it: #95428
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, thank you for the indication!
I also wanted to ask about it, but similarly omitted....
I've pushed 0c360c2 .
This change implements logging if the license verification fails on local nodes
(after the the license has already been (erroneously) published in the cluster state).
This also contains some arguable minor code refactoring that I hope help with code readability.