kibana/x-pack/plugins/actions/server
Kibana Machine 3f4a7a561b
[8.12] [Response Ops][Actions] Adding configuration to override default MS Graph API Scope and Exchange URL values (#175812) (#176085)
# Backport

This will backport the following commits from `main` to `8.12`:
- [[Response Ops][Actions] Adding configuration to override default MS
Graph API Scope and Exchange URL values
(#175812)](https://github.com/elastic/kibana/pull/175812)

<!--- Backport version: 9.4.3 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Ying
Mao","email":"ying.mao@elastic.co"},"sourceCommit":{"committedDate":"2024-02-01T17:41:52Z","message":"[Response
Ops][Actions] Adding configuration to override default MS Graph API
Scope and Exchange URL values (#175812)\n\nResolves
https://github.com/elastic/kibana/issues/166064\r\n\r\n##
Summary\r\n\r\nAdds the following configurations to the `kibana.yml`
config:\r\n* `xpack.actions.microsoftGraphApiScope` - overrides the
default Graph\r\nAPI scope value of
`https://graph.microsoft.com/.default`\r\n*
`xpack.actions.microsoftExchangeUrl` - overrides the default value
of\r\n`https://login.microsoftonline.com`\r\n\r\nThis allows users in
different Azure environments to customize their\r\nendpoints as
needed.\r\n\r\n## To Verify\r\n\r\nWe are unable to test this in a
different environment but we can verify\r\nthat the config overrides the
defaults as expected by setting the config\r\nvalues to something
different and the logging out the params that are\r\nsent to
`getOAuthClientCredentialsAccessToken`
in\r\n`x-pack/plugins/stack_connectors/server/connector_types/email/send_email.ts`.\r\nThen
create an MS Exchange email connector and test it to see that
the\r\nlogged values are overridden as
expected.\r\n\r\n---------\r\n\r\nCo-authored-by: Kibana Machine
<42973632+kibanamachine@users.noreply.github.com>","sha":"f7e4f7a636763d46cb6a38b21a5eb6e67595ddfe","branchLabelMapping":{"^v8.13.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","Feature:Actions","Team:ResponseOps","backport:prev-minor","backport:prev-MAJOR","v8.13.0"],"title":"[Response
Ops][Actions] Adding configuration to override default MS Graph API
Scope and Exchange URL
values","number":175812,"url":"https://github.com/elastic/kibana/pull/175812","mergeCommit":{"message":"[Response
Ops][Actions] Adding configuration to override default MS Graph API
Scope and Exchange URL values (#175812)\n\nResolves
https://github.com/elastic/kibana/issues/166064\r\n\r\n##
Summary\r\n\r\nAdds the following configurations to the `kibana.yml`
config:\r\n* `xpack.actions.microsoftGraphApiScope` - overrides the
default Graph\r\nAPI scope value of
`https://graph.microsoft.com/.default`\r\n*
`xpack.actions.microsoftExchangeUrl` - overrides the default value
of\r\n`https://login.microsoftonline.com`\r\n\r\nThis allows users in
different Azure environments to customize their\r\nendpoints as
needed.\r\n\r\n## To Verify\r\n\r\nWe are unable to test this in a
different environment but we can verify\r\nthat the config overrides the
defaults as expected by setting the config\r\nvalues to something
different and the logging out the params that are\r\nsent to
`getOAuthClientCredentialsAccessToken`
in\r\n`x-pack/plugins/stack_connectors/server/connector_types/email/send_email.ts`.\r\nThen
create an MS Exchange email connector and test it to see that
the\r\nlogged values are overridden as
expected.\r\n\r\n---------\r\n\r\nCo-authored-by: Kibana Machine
<42973632+kibanamachine@users.noreply.github.com>","sha":"f7e4f7a636763d46cb6a38b21a5eb6e67595ddfe"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v8.13.0","branchLabelMappingKey":"^v8.13.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/175812","number":175812,"mergeCommit":{"message":"[Response
Ops][Actions] Adding configuration to override default MS Graph API
Scope and Exchange URL values (#175812)\n\nResolves
https://github.com/elastic/kibana/issues/166064\r\n\r\n##
Summary\r\n\r\nAdds the following configurations to the `kibana.yml`
config:\r\n* `xpack.actions.microsoftGraphApiScope` - overrides the
default Graph\r\nAPI scope value of
`https://graph.microsoft.com/.default`\r\n*
`xpack.actions.microsoftExchangeUrl` - overrides the default value
of\r\n`https://login.microsoftonline.com`\r\n\r\nThis allows users in
different Azure environments to customize their\r\nendpoints as
needed.\r\n\r\n## To Verify\r\n\r\nWe are unable to test this in a
different environment but we can verify\r\nthat the config overrides the
defaults as expected by setting the config\r\nvalues to something
different and the logging out the params that are\r\nsent to
`getOAuthClientCredentialsAccessToken`
in\r\n`x-pack/plugins/stack_connectors/server/connector_types/email/send_email.ts`.\r\nThen
create an MS Exchange email connector and test it to see that
the\r\nlogged values are overridden as
expected.\r\n\r\n---------\r\n\r\nCo-authored-by: Kibana Machine
<42973632+kibanamachine@users.noreply.github.com>","sha":"f7e4f7a636763d46cb6a38b21a5eb6e67595ddfe"}}]}]
BACKPORT-->

Co-authored-by: Ying Mao <ying.mao@elastic.co>
2024-02-01 12:03:05 -07:00
..
actions_client [8.12] [Response Ops][Actions] Adding configuration to override default MS Graph API Scope and Exchange URL values (#175812) (#176085) 2024-02-01 12:03:05 -07:00
application/connector Prepare the connector Get API for versioning (#166894) 2023-10-07 12:17:24 +02:00
authorization [8.12] [ResponseOps] Fix Actions authz for SentinelOne to ensure that the user explicitly has ALL privilege (#172528) (#173089) 2023-12-11 11:52:48 -07:00
constants [Response Ops][Actions] Keep track of action execution source and show in connector exec log (#152030) 2023-03-08 15:18:51 -05:00
data/connector Prepare the connector Get API for versioning (#166894) 2023-10-07 12:17:24 +02:00
integration_tests [8.12] [Response Ops][Actions] Adding configuration to override default MS Graph API Scope and Exchange URL values (#175812) (#176085) 2024-02-01 12:03:05 -07:00
lib [8.12] [Response Ops][Actions] Adding configuration to override default MS Graph API Scope and Exchange URL values (#175812) (#176085) 2024-02-01 12:03:05 -07:00
manual_tests [ResponseOps] Fix the forward proxy manual tester (#160216) 2023-06-22 09:39:00 -04:00
monitoring Upgrade to Jest 29 (#143319) 2022-11-18 09:40:16 -06:00
preconfigured_connectors/alert_history_es_index [Actions] Set system actions on Kibana start (#160983) 2023-07-07 10:39:29 -07:00
routes Prepare the connector Get API for versioning (#166894) 2023-10-07 12:17:24 +02:00
saved_objects [Actions] Set system actions on Kibana start (#160983) 2023-07-07 10:39:29 -07:00
sub_action_framework [Actions] Sub actions framework: Get Service instance with a function (#169484) 2023-10-23 19:41:23 +03:00
unsecured_actions_client [ResponseOps][Alerting] Create xpack.actions.queued.max circuit breaker (#164632) 2023-09-07 06:59:01 -07:00
usage [Security Solution] AI Assistant telemetry (#162653) 2023-08-14 18:26:40 -07:00
action_type_registry.mock.ts [Actions] System actions authorization (#161341) 2023-07-20 03:41:56 -07:00
action_type_registry.test.ts [Actions] System actions enhancements (#161340) 2023-07-28 05:53:34 -07:00
action_type_registry.ts SentinelOne manual host isolation/release in Alert details (#168441) 2023-12-05 09:16:55 +01:00
actions_config.mock.ts [8.12] [Response Ops][Actions] Adding configuration to override default MS Graph API Scope and Exchange URL values (#175812) (#176085) 2024-02-01 12:03:05 -07:00
actions_config.test.ts [8.12] [Response Ops][Actions] Adding configuration to override default MS Graph API Scope and Exchange URL values (#175812) (#176085) 2024-02-01 12:03:05 -07:00
actions_config.ts [8.12] [Response Ops][Actions] Adding configuration to override default MS Graph API Scope and Exchange URL values (#175812) (#176085) 2024-02-01 12:03:05 -07:00
config.test.ts [8.12] [Response Ops][Actions] Adding configuration to override default MS Graph API Scope and Exchange URL values (#175812) (#176085) 2024-02-01 12:03:05 -07:00
config.ts [8.12] [Response Ops][Actions] Adding configuration to override default MS Graph API Scope and Exchange URL values (#175812) (#176085) 2024-02-01 12:03:05 -07:00
create_execute_function.test.ts [ResponseOps][Alerting] Create xpack.actions.queued.max circuit breaker (#164632) 2023-09-07 06:59:01 -07:00
create_execute_function.ts [ResponseOps][Alerting] Create xpack.actions.queued.max circuit breaker (#164632) 2023-09-07 06:59:01 -07:00
create_system_actions.test.ts [Actions] Set system actions on Kibana start (#160983) 2023-07-07 10:39:29 -07:00
create_system_actions.ts [Actions] Set system actions on Kibana start (#160983) 2023-07-07 10:39:29 -07:00
create_unsecured_execute_function.test.ts [ResponseOps][Alerting] Create xpack.actions.queued.max circuit breaker (#164632) 2023-09-07 06:59:01 -07:00
create_unsecured_execute_function.ts [ResponseOps][Alerting] Create xpack.actions.queued.max circuit breaker (#164632) 2023-09-07 06:59:01 -07:00
feature.ts [8.12] [ResponseOps] Fix Actions authz for SentinelOne to ensure that the user explicitly has ALL privilege (#172528) (#173089) 2023-12-11 11:52:48 -07:00
index.test.ts fix all violations 2022-04-16 01:37:30 -05:00
index.ts async-import plugins in the server side (#170856) 2023-11-15 00:55:56 -07:00
mocks.ts Enabled connector types API (#164689) 2023-09-05 10:15:21 +02:00
plugin.test.ts [8.12] [Response Ops][Actions] Adding configuration to override default MS Graph API Scope and Exchange URL values (#175812) (#176085) 2024-02-01 12:03:05 -07:00
plugin.ts [Advanced settings] Add settings allowlist (#164471) 2023-09-11 21:12:53 +01:00
raw_connector_schema.test.ts Skip tasks with invalid params (#158022) 2023-07-11 21:47:23 +02:00
raw_connector_schema.ts Enable requeue_invalid_tasks config for functional tests (#163768) 2023-08-17 13:53:02 +03:00
types.ts Prepare the connector Get API for versioning (#166894) 2023-10-07 12:17:24 +02:00