-
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
Fix split package in keystore-cli #78047
Conversation
The keystore-cli contains cli command classes for reading and writing the elasticsearch-keystore. These classes need access to the save methods of the KeyStoreWrapper, but those are package private. This change openes those methods to make them available. Note that setString was already public, only setFile and a couple minor methods were necessary to open up. Additionally, some methods from bootstrap for reading the keystore needed to be accessible to tests. This change moves those to a public utility class, as they were already static.
Pinging @elastic/es-core-infra (Team:Core/Infra) |
@elasticmachine run elasticsearch-ci/part-2 |
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 class BootstrapUtil { | ||
|
||
/** |
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.
Trivially, you could optionally add a private no-args constructor to BootstrapUtil, since it would appear to be a non-instantiable class exposing static utility methods.
💔 Backport failed
You can use sqren/backport to manually backport by running |
The keystore-cli contains cli command classes for reading and writing
the elasticsearch-keystore. These classes need access to the save
methods of the KeyStoreWrapper, but those are package private. This
change openes those methods to make them available. Note that setString
was already public, only setFile and a couple minor methods were
necessary to open up. Additionally, some methods from bootstrap for
reading the keystore needed to be accessible to tests. This change moves
those to a public utility class, as they were already static.