-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
Beats/security #22500
Beats/security #22500
Conversation
💔 Build Failed |
💔 Build Failed |
To functionally test, should I try to access Beats CM while running a trial vs basic license, and then run a snapshot with gold added, and try security as well? Plan
|
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.
I think we should tweak the error message displayed when license information is not available.
Aside from that the code LGTM, going to work on functional tests now.
|
||
private checkLicense(xPackInfo: any) { | ||
// If, for some reason, we cannot get the license information | ||
// from Elasticsearch, assume worst case and disable the Logstash pipeline UI |
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.
Logstash pipeline UI
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.
heh, yup
securityEnabled: false, | ||
licenseValid: false, | ||
message: | ||
'You cannot manage Beats centeral management because license information is not available at this time.', |
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.
Can we update this language to say
You cannot use Beats Central Management because license information is not available at this time.
Functionally this looks good to me, provided you don't need me to test anything beyond what I've already outlined above. |
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! Great work!
This adds a license check system to beats management.
Routes now have an extra option of
licenseRequired
.UI now is enabled/disabled based on one of 2 factors:
The only route that returns a non-error if no valid license is the get configs route