Skip to content

Commit

Permalink
[HTTP] Set explicit access for public HTTP APIs 2 (elastic#192579)
Browse files Browse the repository at this point in the history
## Summary

Part 2 of this [PR](elastic#192554). See
more info there.

<img width="229" alt="Screenshot 2024-09-11 at 14 50 11"
src="https://github.com/user-attachments/assets/585f1ce8-2987-4355-a4b1-e13705646b48">

---------

Co-authored-by: shahzad31 <[email protected]>
  • Loading branch information
jloleysens and shahzad31 authored Sep 25, 2024
1 parent 29b1800 commit 244ff7b
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
1 change: 1 addition & 0 deletions x-pack/plugins/logstash/server/routes/pipelines/delete.ts
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 { syntheticsMonitorType } from '../../../common/types/saved_objects';
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

0 comments on commit 244ff7b

Please sign in to comment.