-
Notifications
You must be signed in to change notification settings - Fork 25.2k
Remove Security manager bootstrap #127590
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
Furthing cleanup of the now unused security manager, this commit removes the bootstrap Security class that setup SecurityManager.
Pinging @elastic/es-core-infra (Team:Core/Infra) |
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.
Minor comments, otherwise LGTM.
@@ -134,20 +131,6 @@ private static Bootstrap initPhase1() { | |||
final boolean useEntitlements = true; |
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.
As far as I can tell this is initialized to true
and then never modified. Can we get rid of this?
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.
Yes, I plan to do that in a followup, there are some other things using it.
@@ -245,61 +228,47 @@ private static void initPhase2(Bootstrap bootstrap) throws IOException { | |||
|
|||
final PluginsLoader pluginsLoader; | |||
|
|||
if (bootstrap.useEntitlements()) { |
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 also have a useEntitlements()
check in initPhase3()
, can that be removed as well? In fact, can we remove Bootstrap.useEntitlements()
entirely now?
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.
Actually, I'll remove that in a followup as well.
💚 Backport successful
|
Furthing cleanup of the now unused security manager, this commit removes the bootstrap Security class that setup SecurityManager.
Furthing cleanup of the now unused security manager, this commit removes the bootstrap Security class that setup SecurityManager.