diff --git a/x-pack/plugins/actions/server/routes/connector/list_types/list_types.ts b/x-pack/plugins/actions/server/routes/connector/list_types/list_types.ts index a19782c1a17de..3078b9438d875 100644 --- a/x-pack/plugins/actions/server/routes/connector/list_types/list_types.ts +++ b/x-pack/plugins/actions/server/routes/connector/list_types/list_types.ts @@ -16,7 +16,6 @@ import { ActionsRequestHandlerContext } from '../../../types'; import { BASE_ACTION_API_PATH } from '../../../../common'; import { ILicenseState } from '../../../lib'; import { verifyAccessAndContext } from '../../verify_access_and_context'; -import { DEFAULT_ACTION_ROUTE_SECURITY } from '../../constants'; export const listTypesRoute = ( router: IRouter, @@ -25,7 +24,12 @@ export const listTypesRoute = ( router.get( { path: `${BASE_ACTION_API_PATH}/connector_types`, - security: DEFAULT_ACTION_ROUTE_SECURITY, + security: { + authz: { + enabled: false, + reason: 'This API does not require any Kibana feature privileges.', + }, + }, options: { access: 'public', summary: `Get connector types`, diff --git a/x-pack/plugins/actions/server/routes/connector/list_types_system/list_types_system.ts b/x-pack/plugins/actions/server/routes/connector/list_types_system/list_types_system.ts index 4e9dd230ebfa3..892ded96bbded 100644 --- a/x-pack/plugins/actions/server/routes/connector/list_types_system/list_types_system.ts +++ b/x-pack/plugins/actions/server/routes/connector/list_types_system/list_types_system.ts @@ -16,7 +16,6 @@ import { INTERNAL_BASE_ACTION_API_PATH } from '../../../../common'; import { ILicenseState } from '../../../lib'; import { verifyAccessAndContext } from '../../verify_access_and_context'; import { transformListTypesResponseV1 } from '../list_types/transforms'; -import { DEFAULT_ACTION_ROUTE_SECURITY } from '../../constants'; export const listTypesWithSystemRoute = ( router: IRouter, @@ -25,7 +24,12 @@ export const listTypesWithSystemRoute = ( router.get( { path: `${INTERNAL_BASE_ACTION_API_PATH}/connector_types`, - security: DEFAULT_ACTION_ROUTE_SECURITY, + security: { + authz: { + enabled: false, + reason: 'This internal API does not require any Kibana feature privileges.', + }, + }, validate: { query: connectorTypesQuerySchemaV1, },