Skip to content

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

Merged
merged 2 commits into from
May 1, 2025
Merged

Conversation

rjernst
Copy link
Member

@rjernst rjernst commented Apr 30, 2025

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.
@rjernst rjernst added >refactoring auto-backport Automatically create backport pull requests when merged v8.19.0 v9.1.0 :Core/Infra/Entitlements Entitlements infrastructure labels Apr 30, 2025
@rjernst rjernst requested a review from a team as a code owner April 30, 2025 23:35
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-core-infra (Team:Core/Infra)

@elasticsearchmachine elasticsearchmachine added the Team:Core/Infra Meta label for core/infra team label Apr 30, 2025
Copy link
Contributor

@mark-vieira mark-vieira left a 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;
Copy link
Contributor

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?

Copy link
Member Author

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()) {
Copy link
Contributor

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?

Copy link
Member Author

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.

@rjernst rjernst merged commit 4d907ce into elastic:main May 1, 2025
17 checks passed
@rjernst rjernst deleted the sm/remove_bootstrap branch May 1, 2025 19:43
@elasticsearchmachine
Copy link
Collaborator

💚 Backport successful

Status Branch Result
8.19

rjernst added a commit to rjernst/elasticsearch that referenced this pull request May 1, 2025
Furthing cleanup of the now unused security manager, this commit removes
the bootstrap Security class that setup SecurityManager.
elasticsearchmachine pushed a commit that referenced this pull request May 1, 2025
Furthing cleanup of the now unused security manager, this commit removes
the bootstrap Security class that setup SecurityManager.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-backport Automatically create backport pull requests when merged :Core/Infra/Entitlements Entitlements infrastructure >refactoring Team:Core/Infra Meta label for core/infra team v8.19.0 v9.1.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants