Skip to content
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

[HTTP] Set explicit access for public HTTP APIs 2 #192579

Merged
merged 8 commits into from
Sep 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ export function registerPipelinesDeleteRoute(router: LogstashPluginRouter) {
{
path: '/api/logstash/pipelines/delete',
options: {
access: 'public',
summary: `Delete managed Logstash pipelines`,
},
validate: {
Expand Down
1 change: 1 addition & 0 deletions x-pack/plugins/logstash/server/routes/pipelines/list.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ export function registerPipelinesListRoute(router: LogstashPluginRouter) {
{
path: '/api/logstash/pipelines',
options: {
access: 'public',
summary: `Get all managed Logstash pipelines`,
},
validate: false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ export const syntheticsAppRestApiRoutes: SyntheticsRestApiRouteFactory[] = [
disableSyntheticsRoute,
getServiceLocationsRoute,
getSyntheticsProjectMonitorsRoute,
getAllSyntheticsMonitorRoute,
installIndexTemplatesRoute,
runOnceSyntheticsMonitorRoute,
testNowMonitorRoute,
Expand Down Expand Up @@ -109,6 +108,7 @@ export const syntheticsAppPublicRestApiRoutes: SyntheticsRestApiRouteFactory[] =
addPrivateLocationRoute,
deletePrivateLocationRoute,
getPrivateLocationsRoute,
getAllSyntheticsMonitorRoute,
getSyntheticsMonitorRoute,
addSyntheticsMonitorRoute,
editSyntheticsMonitorRoute,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,11 @@ import { mapSavedObjectToMonitor } from './helper';
export const getAllSyntheticsMonitorRoute: SyntheticsRestApiRouteFactory = () => ({
method: 'GET',
path: SYNTHETICS_API_URLS.SYNTHETICS_MONITORS,
validate: {
query: QuerySchema,
validate: {},
validation: {
request: {
query: QuerySchema,
},
},
handler: async (routeContext): Promise<any> => {
const { request, savedObjectsClient, syntheticsMonitorClient } = routeContext;
Expand Down