Skip to content

Conversation

@kibanamachine
Copy link
Contributor

Backport

This will backport the following commits from main to 8.15:

Questions ?

Please refer to the Backport tool documentation

…c#190462)

Closes elastic#187921

The Obs AI Assistant calls the endpoint `GET _connector` to get a list
of connector indices. This works for admin users but not for users with
limited privileges like users with the `editor` role.

Currently an error is thrown but never caught. This causes the kibana
server to crash during development. In prod this problem means that
users cannot retrieve connector indices, and thus fallback to querying
`search-*`.

This PR fixes it by using the internal user to call `GET _connector`.

Additional context:
https://elastic.slack.com/archives/C05J7LXR5DE/p1723560268104559

(cherry picked from commit be26e46)
@kibanamachine kibanamachine added the backport This PR is a backport of another PR label Aug 14, 2024
@kibanamachine kibanamachine enabled auto-merge (squash) August 14, 2024 06:15
@botelastic botelastic bot added ci:project-deploy-observability Create an Observability project Team:Obs AI Assistant Observability AI Assistant labels Aug 14, 2024
@kibana-ci
Copy link

kibana-ci commented Aug 14, 2024

💚 Build Succeeded

  • Buildkite Build
  • Commit: 879e377
  • Kibana Serverless Image: docker.elastic.co/kibana-ci/kibana-serverless:pr-190474-879e377d70d3

Metrics [docs]

✅ unchanged

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

cc @sorenlouv

@kibanamachine kibanamachine merged commit a74ca64 into elastic:8.15 Aug 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport This PR is a backport of another PR ci:project-deploy-observability Create an Observability project Team:Obs AI Assistant Observability AI Assistant

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants