Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[8.x] 🌊 Play nice with ES (#200253) #202516

Merged
merged 1 commit into from
Dec 2, 2024

Conversation

kibanamachine
Copy link
Contributor

Backport

This will backport the following commits from main to 8.x:

Questions ?

Please refer to the Backport tool documentation

This PR implements two changes:
* When syncing a stream, try to PUT the current mappings to the data
stream - if this fails with `illegal_argument_exception`, do a rollover
instead. This is similar to how fleet handles this situation
* Before accessing streams, check whether the current user can read the
current data stream and only return it if this is the case. Users with
partial read access will only see a partial tree. This doesn't apply to
writing changes as the user needs to be able to change index templates,
pipelines and so on which requires admin privileges anyway

---------

Co-authored-by: kibanamachine <[email protected]>
(cherry picked from commit 8e67172)
@kibanamachine kibanamachine merged commit 8e036ab into elastic:8.x Dec 2, 2024
11 checks passed
@elasticmachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

✅ unchanged

cc @flash1293

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants