-
Notifications
You must be signed in to change notification settings - Fork 25.3k
Remove allowTrial flag in license checking #54293
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
Conversation
The allowTrial flag is always true, since trial licenses act as though everything is licensed. This commit removes the allowTrial flag in license checking helper methods.
Pinging @elastic/es-security (:Security/License) |
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
Happy to discuss this again and/or drop it if we have consensus yo do so but we intentionally left this be in the previous refactoring work : #51864 (comment) |
@jkakavas Thanks for the context. I did not know about that previous discussion. However, I still think we should move forward with this. From that discussion:
Except it is actually unheard of, which is why allowTrial is always true. Additionally, the ultimate goal of my refactorings is to remove all of the isXXXAllowed methods in favor of a single method that takes an enum, where the enum values represent licensed features, so that only adding a value to this enum is required for a new feature. If a feature in the future is deemed necessary to not be allowed with a trial license, we can easily add it back to the enum and single isAllowed method. |
@elasticmachine run elasticsearch-ci/packaging-sample-matrix-unix |
The allowTrial flag is always true, since trial licenses act as though everything is licensed. This commit removes the allowTrial flag in license checking helper methods.
The allowTrial flag is always true, since trial licenses act as though
everything is licensed. This commit removes the allowTrial flag in
license checking helper methods.