-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[7.17] [ResponseOps] fix alerting_authorization_kuery to stop generat…
…ing nulls (#133823) (#136075) * [ResponseOps] fix alerting_authorization_kuery to stop generating nulls (#133823) resolves #114536 We've seen a couple of situations where the KQL auth filter is generating some garbage (null entries where KQL AST nodes are expected): - issuing a _find HTTP API call against a non-existent Kibana space - user has Connectors and Actions feature enabled, but nothing else In these cases, there are no consumers available, and the KQL AST for expressions like `consumer-field:(alerts or myApp or myOtherApp)` would end up generating a `null` value instead of a KQL AST node. The code was changed to not generate the null value. This led to the next problem - the UX hung because it was waiting for a health check that ended up throwing an authorization error. We now catch that error and allow the health check to proceed. (cherry picked from commit cb40727) # Conflicts: # x-pack/plugins/triggers_actions_ui/public/application/components/health_check.tsx # x-pack/test/functional_with_es_ssl/config.ts * fix jest test after backport merge conflict * fix module references * fix rules/alerts naming issue in test * fix pretty error in test Co-authored-by: Kibana Machine <[email protected]>
- Loading branch information
1 parent
8e30bb8
commit 40c897a
Showing
7 changed files
with
191 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters