-
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
Move API Key related classes into apikey package #82047
Conversation
API key related classes, including rest actions, request, response, transport actions are scattered in different places. Some of them are in a apikey package. But many of them are not. This PR moves all these classes into the relevant apikey packages.
Pinging @elastic/es-security (Team:Security) |
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, but let's leave it open for a few days in case someone else has concerns.
@@ -14,6 +14,7 @@ | |||
import org.elasticsearch.common.io.stream.StreamOutput; | |||
import org.elasticsearch.common.io.stream.Writeable; | |||
import org.elasticsearch.common.settings.SecureString; | |||
import org.elasticsearch.xpack.core.security.action.apikey.CreateApiKeyRequest; |
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.
I think this import is redundant
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.
You are very right. Spotless caught me as well 🤦
...ava/org/elasticsearch/xpack/core/security/action/apikey/CreateApiKeyRequestBuilderTests.java
Outdated
Show resolved
Hide resolved
.../test/java/org/elasticsearch/xpack/core/security/action/apikey/CreateApiKeyRequestTests.java
Outdated
Show resolved
Hide resolved
...src/test/java/org/elasticsearch/xpack/core/security/action/apikey/GetApiKeyRequestTests.java
Outdated
Show resolved
Hide resolved
...rc/test/java/org/elasticsearch/xpack/core/security/action/apikey/GetApiKeyResponseTests.java
Outdated
Show resolved
Hide resolved
...t/java/org/elasticsearch/xpack/core/security/action/apikey/InvalidateApiKeyRequestTests.java
Outdated
Show resolved
Hide resolved
.../java/org/elasticsearch/xpack/core/security/action/apikey/InvalidateApiKeyResponseTests.java
Outdated
Show resolved
Hide resolved
...est/java/org/elasticsearch/xpack/security/action/apikey/TransportGrantApiKeyActionTests.java
Outdated
Show resolved
Hide resolved
@elastic/es-security I am going to merge this PR if no objection is raised till next Monday. Thanks! |
API key related classes, including rest actions, request, response,
transport actions are scattered in different places. Some of them are in
a apikey package. But many of them are not. This PR moves all these
classes and associated test classes into the relevant apikey packages.