-
Notifications
You must be signed in to change notification settings - Fork 25k
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
Adding initial public and internal serverless scopes to Core-Infra REST handlers #94037
Adding initial public and internal serverless scopes to Core-Infra REST handlers #94037
Conversation
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.
Looks good minus the two APIs I noted. Thanks Keith!
import org.elasticsearch.rest.action.RestToXContentListener; | ||
|
||
import java.io.IOException; | ||
import java.util.List; | ||
|
||
import static org.elasticsearch.rest.RestRequest.Method.GET; | ||
|
||
@ServerlessScope(Scope.PUBLIC) |
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.
Can you please remove this one from the PR? We are still in discussions about whether it is necessary (and there are actually 2 versions of this API under different paths).
import org.elasticsearch.rest.action.RestToXContentListener; | ||
|
||
import java.io.IOException; | ||
import java.util.List; | ||
|
||
import static org.elasticsearch.rest.RestRequest.Method.GET; | ||
|
||
@ServerlessScope(Scope.PUBLIC) |
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.
Can you please remove this one from the PR? We are still in discussions about whether it is necessary (and there are actually 2 versions of this API under different paths).
@elasticmachine update branch |
This commit exposes core/infra owned REST APIs for serverless deployment It uses @ServerlessScope(Scope.PUBLIC) to achieve this. relates elastic#94037
This commit exposes core/infra owned REST APIs for serverless deployment. It uses @ServerlessScope(Scope.PUBLIC) to achieve this. follows up on #94037
#93607 added the ability to run Elasticsearch in "Serverless" mode, where access to REST endpoints could be restricted so that the full Elasticsearch API is not available (since a lot of it does not make sense in Servlerless). By default no endpoints are available, but they can be exposed with
ServerlessScope
annotations.This PR follows up on #93607 by adding PUBLIC and INTERNAL annotations to the rest handlers owned by the Core Infra team. There are several rest endpoints still under discussion. This PR does not label those, so they remain unavailable in Serverless mode.