Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[8.15] [Obs AI Assistant] Use internal user when fetching connectors (#…
…190462) (#190474) # Backport This will backport the following commits from `main` to `8.15`: - [[Obs AI Assistant] Use internal user when fetching connectors (#190462)](#190462) <!--- Backport version: 9.4.3 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Søren Louv-Jansen","email":"soren.louv@elastic.co"},"sourceCommit":{"committedDate":"2024-08-14T06:10:48Z","message":"[Obs AI Assistant] Use internal user when fetching connectors (#190462)\n\nCloses https://github.com/elastic/kibana/issues/187921\r\n\r\nThe Obs AI Assistant calls the endpoint `GET _connector` to get a list\r\nof connector indices. This works for admin users but not for users with\r\nlimited privileges like users with the `editor` role.\r\n\r\nCurrently an error is thrown but never caught. This causes the kibana\r\nserver to crash during development. In prod this problem means that\r\nusers cannot retrieve connector indices, and thus fallback to querying\r\n`search-*`.\r\n\r\nThis PR fixes it by using the internal user to call `GET _connector`. \r\n\r\n\r\nAdditional context:\r\nhttps://elastic.slack.com/archives/C05J7LXR5DE/p1723560268104559","sha":"be26e461166eca446a9bf4af4be687b77843b4da","branchLabelMapping":{"^v8.16.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix","Team:Obs AI Assistant","ci:project-deploy-observability","v8.16.0","v8.15.1"],"title":"[Obs AI Assistant] Use internal user when fetching connectors","number":190462,"url":"https://github.com/elastic/kibana/pull/190462","mergeCommit":{"message":"[Obs AI Assistant] Use internal user when fetching connectors (#190462)\n\nCloses https://github.com/elastic/kibana/issues/187921\r\n\r\nThe Obs AI Assistant calls the endpoint `GET _connector` to get a list\r\nof connector indices. This works for admin users but not for users with\r\nlimited privileges like users with the `editor` role.\r\n\r\nCurrently an error is thrown but never caught. This causes the kibana\r\nserver to crash during development. In prod this problem means that\r\nusers cannot retrieve connector indices, and thus fallback to querying\r\n`search-*`.\r\n\r\nThis PR fixes it by using the internal user to call `GET _connector`. \r\n\r\n\r\nAdditional context:\r\nhttps://elastic.slack.com/archives/C05J7LXR5DE/p1723560268104559","sha":"be26e461166eca446a9bf4af4be687b77843b4da"}},"sourceBranch":"main","suggestedTargetBranches":["8.15"],"targetPullRequestStates":[{"branch":"main","label":"v8.16.0","branchLabelMappingKey":"^v8.16.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/190462","number":190462,"mergeCommit":{"message":"[Obs AI Assistant] Use internal user when fetching connectors (#190462)\n\nCloses https://github.com/elastic/kibana/issues/187921\r\n\r\nThe Obs AI Assistant calls the endpoint `GET _connector` to get a list\r\nof connector indices. This works for admin users but not for users with\r\nlimited privileges like users with the `editor` role.\r\n\r\nCurrently an error is thrown but never caught. This causes the kibana\r\nserver to crash during development. In prod this problem means that\r\nusers cannot retrieve connector indices, and thus fallback to querying\r\n`search-*`.\r\n\r\nThis PR fixes it by using the internal user to call `GET _connector`. \r\n\r\n\r\nAdditional context:\r\nhttps://elastic.slack.com/archives/C05J7LXR5DE/p1723560268104559","sha":"be26e461166eca446a9bf4af4be687b77843b4da"}},{"branch":"8.15","label":"v8.15.1","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT--> Co-authored-by: Søren Louv-Jansen <soren.louv@elastic.co>
- Loading branch information