-
Notifications
You must be signed in to change notification settings - Fork 24.9k
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
_all and * resolves to system indices and causes WARN deprecation logs #81345
Comments
Pinging @elastic/es-core-infra (Team:Core/Infra) |
I merged a PR into The behavior is intended in the 7.x line. |
For Kibana we will hide this deprecation warning from users by specifying the But stepping back and thinking about other users that integrate directly with Elasticsearch. If they use |
Our guidance would be to change their query pattern to avoid using those wildcard queries. At a bare minimum, I believe they could use the pattern We already downgraded this warning from |
@williamrandolph thanks, that makes sense. I think the challenge for our users is how to track down the source of this deprecation warning and it isn't obvious that a
If we could change this message to something like the following I think it would help users a lot in tracking down the problem query: "This request uses an index pattern [*] that expands to include system indices. In a future major version wildcards will no longer expand to match system indices." Ideally we'd have something actionable like "To prevent this deprecation warning..." too. |
I agree that it would be very helpful, but unfortunately due to how Security is designed we don't reliably have access to the index patterns the user supplied at that time - they're basically overwritten by Security with expanded versions that are guaranteed to only fall within the indices that user has permissions to access. That means that the "pattern" that matched that index at the time we emit the warning is very likely different from what the user supplied. We actually investigated this when we first implemented the warning, explicitly to special case It's worth noting that while this is an issue in 7.x, this typically won't be an issue post-8.0, as system indices will be restricted to users with Given that we won't really have bandwidth to address this for the next 7.x release, and the reduced impact in 8.0, I'm going to close this, at least for now. Once we decide the long-term path for system indices (specifically, to what degree we're going to lock them down above what's in 8.0 right now) we'll likely need to reevaluate some things here anyway. |
Examples (affects 7.16 and main):
I couldn't find any existing issues but found the following related issues/comments:
#50251 (comment)
#78850
Related: elastic/kibana#120043
The text was updated successfully, but these errors were encountered: