-
Notifications
You must be signed in to change notification settings - Fork 24.9k
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
Add "enterprise" license OperationMode #51081
Comments
Pinging @elastic/es-security (:Security/License) |
I think it might be time to do a refactor of It might be better to replace the body of each of those
|
Should every one of these methods check |
Good point. So, we need an exception. |
There is also a |
MISSING will mostly (fully?) go away with #45022 |
Cool makes sense. Currently there is a bit inconsistency between code and javadocs. For an example, isEnrichAllowed only check whether a license is active. But its javadocs says |
Yes. If the implementation of The purpose of the method is clear from the name. The behaviour is clear from the implementation. What more does the Javadoc add? |
Nothing. Code should be treated as the ultimate reference. So I'll delete the doc line as it adds nothings but confusion. Thanks. |
Add enterprise operation mode to properly map enterprise license. Aslo refactor XPackLicenstate class to consolidate license status and mode checks. This class has many sychronised methods to check basically three things: * Minimum operation mode required * Whether security is enabled * Whether current license needs to be active Depends on the actual feature, either 1, 2 or all of above checks are performed. These are now consolidated in to 3 helper methods (2 of them are new). The synchronization is pushed down to the helper methods so actual checking methods no longer need to worry about it. resolves: #51081
Add enterprise operation mode to properly map enterprise license. Aslo refactor XPackLicenstate class to consolidate license status and mode checks. This class has many sychronised methods to check basically three things: * Minimum operation mode required * Whether security is enabled * Whether current license needs to be active Depends on the actual feature, either 1, 2 or all of above checks are performed. These are now consolidated in to 3 helper methods (2 of them are new). The synchronization is pushed down to the helper methods so actual checking methods no longer need to worry about it. resolves: elastic#51081
Add enterprise operation mode to properly map enterprise license. Aslo refactor XPackLicenstate class to consolidate license status and mode checks. This class has many sychronised methods to check basically three things: * Minimum operation mode required * Whether security is enabled * Whether current license needs to be active Depends on the actual feature, either 1, 2 or all of above checks are performed. These are now consolidated in to 3 helper methods (2 of them are new). The synchronization is pushed down to the helper methods so actual checking methods no longer need to worry about it. resolves: #51081
Elasticsearch supports the "enterprise" type stack license, but internally it maps that to the "platinum" operation mode.
We should create an explicit "enterprise" operating mode so that it is possible for new functionality to be tied to this license type.
Relates: #48510
The text was updated successfully, but these errors were encountered: