RestQueryApiKeyAction is missing the "typed_keys" parameter #106817
Labels
>bug
:Security/Security
Security issues without another label
Team:Security
Meta label for security team
PR #104895 introduced aggregations in the API key query endpoint. However, it did not add the
typed_keys
parameter that provides type information in aggregation results.This information is necessary for client libraries in strongly typed languages to identify the aggregate type and instantiate the corresponding class or type. Without it, Elastic client libraries in Java, Go and .Net will fail to deserialize results of API key queries that contain aggregations. There's no workaround.
The fix should boil down to providing an implementation of
responseParams()
like inRestSearchAction
. It may be worth also evaluating whether other response parameters inRestSearchAction
would be useful in the context of API key queries./cc @albertzaharovits who authored the PR for awareness.
The text was updated successfully, but these errors were encountered: