-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[8.x] [ResponseOps][Actions] Manual migration of action routes withou…
…t access tags (#204030) (#204215) # Backport This will backport the following commits from `main` to `8.x`: - [[ResponseOps][Actions] Manual migration of action routes without access tags (#204030)](#204030) <!--- Backport version: 9.4.3 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Antonio","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-12-13T13:57:13Z","message":"[ResponseOps][Actions] Manual migration of action routes without access tags (#204030)\n\nConnected with https://github.com/elastic/kibana-team/issues/1322\r\n\r\n## Summary\r\n\r\nSince most action routes do not use access tags they need to be migrated\r\nto include a reason in the security params.\r\n\r\n\r\n[Documentation.](https://docs.elastic.dev/kibana-dev-docs/key-concepts/security-api-authorization#opting-out-of-authorization-for-specific-routes)\r\n\r\nThe following routes were migrated:\r\n- `createConnectorRoute`\r\n- `deleteConnectorRoute`\r\n- `getConnectorRoute`\r\n- `getAllConnectorsRoute`\r\n- `updateConnectorRoute`\r\n- `listTypesRoute`\r\n- `executeConnectorRoute`\r\n- `getGlobalExecutionLogRoute`\r\n- `getGlobalExecutionKPIRoute`\r\n- `getAllConnectorsIncludingSystemRoute`\r\n- `listTypesWithSystemRoute`\r\n- `getOAuthAccessToken`","sha":"2dc790bbc024fd805aaafc9b2f6a5cc79dd2c6e2","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","Team:ResponseOps","v9.0.0","Feature:Alerting/RuleActions","backport:prev-minor","v8.18.0"],"title":"[ResponseOps][Actions] Manual migration of action routes without access tags ","number":204030,"url":"https://github.com/elastic/kibana/pull/204030","mergeCommit":{"message":"[ResponseOps][Actions] Manual migration of action routes without access tags (#204030)\n\nConnected with https://github.com/elastic/kibana-team/issues/1322\r\n\r\n## Summary\r\n\r\nSince most action routes do not use access tags they need to be migrated\r\nto include a reason in the security params.\r\n\r\n\r\n[Documentation.](https://docs.elastic.dev/kibana-dev-docs/key-concepts/security-api-authorization#opting-out-of-authorization-for-specific-routes)\r\n\r\nThe following routes were migrated:\r\n- `createConnectorRoute`\r\n- `deleteConnectorRoute`\r\n- `getConnectorRoute`\r\n- `getAllConnectorsRoute`\r\n- `updateConnectorRoute`\r\n- `listTypesRoute`\r\n- `executeConnectorRoute`\r\n- `getGlobalExecutionLogRoute`\r\n- `getGlobalExecutionKPIRoute`\r\n- `getAllConnectorsIncludingSystemRoute`\r\n- `listTypesWithSystemRoute`\r\n- `getOAuthAccessToken`","sha":"2dc790bbc024fd805aaafc9b2f6a5cc79dd2c6e2"}},"sourceBranch":"main","suggestedTargetBranches":["8.x"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/204030","number":204030,"mergeCommit":{"message":"[ResponseOps][Actions] Manual migration of action routes without access tags (#204030)\n\nConnected with https://github.com/elastic/kibana-team/issues/1322\r\n\r\n## Summary\r\n\r\nSince most action routes do not use access tags they need to be migrated\r\nto include a reason in the security params.\r\n\r\n\r\n[Documentation.](https://docs.elastic.dev/kibana-dev-docs/key-concepts/security-api-authorization#opting-out-of-authorization-for-specific-routes)\r\n\r\nThe following routes were migrated:\r\n- `createConnectorRoute`\r\n- `deleteConnectorRoute`\r\n- `getConnectorRoute`\r\n- `getAllConnectorsRoute`\r\n- `updateConnectorRoute`\r\n- `listTypesRoute`\r\n- `executeConnectorRoute`\r\n- `getGlobalExecutionLogRoute`\r\n- `getGlobalExecutionKPIRoute`\r\n- `getAllConnectorsIncludingSystemRoute`\r\n- `listTypesWithSystemRoute`\r\n- `getOAuthAccessToken`","sha":"2dc790bbc024fd805aaafc9b2f6a5cc79dd2c6e2"}},{"branch":"8.x","label":"v8.18.0","branchLabelMappingKey":"^v8.18.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT--> Co-authored-by: Antonio <[email protected]>
- Loading branch information
1 parent
6d1eb27
commit 35809cb
Showing
13 changed files
with
52 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License | ||
* 2.0; you may not use this file except in compliance with the Elastic License | ||
* 2.0. | ||
*/ | ||
|
||
import type { RouteSecurity } from '@kbn/core-http-server'; | ||
|
||
/** | ||
* This constant is used as the default value for the security object in routes | ||
* where a reason for opting out needs to be provided. | ||
*/ | ||
export const DEFAULT_ACTION_ROUTE_SECURITY: RouteSecurity = { | ||
authz: { | ||
enabled: false, | ||
reason: | ||
'This route is opted out from authorization because actions use their own authorization model inside the actions client.', | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters