-
Notifications
You must be signed in to change notification settings - Fork 25.6k
Restrict authorizing_realms to platinum only #32115
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
Restrict authorizing_realms to platinum only #32115
Conversation
|
Pinging @elastic/es-security |
jaymode
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
| */ | ||
| public boolean isAuthorizingRealmAllowed() { | ||
| final Status localStatus = status; | ||
| return (localStatus.mode == OperationMode.PLATINUM || localStatus.mode == OperationMode.TRIAL ) |
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.
nit exta space between TRIAL and )
| /** | ||
| * @return whether "authorizing_realms" are allowed based on the license {@link OperationMode} | ||
| */ | ||
| public boolean isAuthorizingRealmAllowed() { |
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.
Pardon my knowledge with licensing, I just wanted to check if we have some encrypted data about what features are available in the license or we allow/disallow based on these checks depending on the license mode?
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.
We rely solely on the license "mode"
That way we can introduce new features without needing to reissue licenses.
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.
got it. Thanks.
bizybot
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, Thank you.
Makes "authorizing_realms" a platinum (or trial) feature.
If the license is not compliant, then any attempt to authenticate will
fail in the same way that "cannot find lookup user" fails, but with a
"license not compliant" message.