80ac2794f2
* [Rule BugFix] Google Workspace Oauth2 new app In our extended testing the changed rule with latest Google Workspace integration generates the following errors which make the rule fail everytime: ``` unsupported_operation_exception: [wildcard] queries are not currently supported on keyed [flattened] fields. ``` After careful investigation this happens since the field google_workspace.token.scope.data is a flattened JSON filed that contains one or more key/value pairs and ES does not support wildcard matches withing flattened fields as the error suggests. We instead query the whole field (that contains the flattened fields) with the wildcard characters and achieve the same outcome without the error. * [Rule BugFix] Google Workspace Oauth2 new app update (#3436) In our extended testing the changed rule with latest Google Workspace integration generates the following errors which make the rule fail everytime: ``` unsupported_operation_exception: [wildcard] queries are not currently supported on keyed [flattened] fields. ``` After careful investigation this happens since the field google_workspace.token.scope.data is a flattened JSON filed that contains one or more key/value pairs and ES does not support wildcard matches withing flattened fields as the error suggests. We instead query the whole field (that contains the flattened fields) with the wildcard characters and achieve the same outcome without the error. --------- Co-authored-by: Mika Ayenson <Mikaayenson@users.noreply.github.com> Co-authored-by: Terrance DeJesus <99630311+terrancedejesus@users.noreply.github.com>