OpenSearch/x-pack/plugin
Yogesh Gaikwad 9a64b7a888
[Backport] Validate `query` field when creating roles (#46275) (#47094)
In the current implementation, the validation of the role query
occurs at runtime when the query is being executed.

This commit adds validation for the role query when creating a role
but not for the template query as we do not have the runtime
information required for evaluating the template query (eg. authenticated user's
information). This is similar to the scripts that we
store but do not evaluate or parse if they are valid queries or not.

For validation, the query is evaluated (if not a template), parsed to build the
QueryBuilder and verify if the query type is allowed.

Closes #34252
2019-09-26 17:57:36 +10:00
..
analytics Replace the SearchContext with QueryShardContext when building aggregator factories (#46527) 2019-09-11 16:43:30 +02:00
ccr Add the ability to require an ingest pipeline (#46847) 2019-09-19 16:37:45 -04:00
core [Backport] Validate `query` field when creating roles (#46275) (#47094) 2019-09-26 17:57:36 +10:00
deprecation Add migration tool checks for `_field_names` disabling (#46972) 2019-09-25 10:15:10 +02:00
frozen-indices Merge ShardSearchTransportRequest and ShardSearchLocalRequest (#46996) (#47081) 2019-09-26 09:20:53 +02:00
graph Remove Settings from BaseRestRequest Constructor (#45418) (#45429) 2019-08-12 05:14:45 +02:00
ilm Add support for POST requests to SLM Execute API (#47061) 2019-09-25 16:15:10 -06:00
logstash Remove description from xpack feature sets (#43065) 2019-06-11 09:22:58 -07:00
mapper-flattened Add support for 'flattened object' fields. (#43762) 2019-07-01 12:08:50 +03:00
ml [7.x] [ML][Inference] Feature pre-processing objects and functions (#46777) (#47040) 2019-09-25 08:16:24 -04:00
monitoring Remove Settings from BaseRestRequest Constructor (#45418) (#45429) 2019-08-12 05:14:45 +02:00
rollup Add support for aliases in queries on _index. (#46944) 2019-09-23 13:21:37 -07:00
search-business-rules Replace SearchContext with QueryShardContext in query builder tests (#46978) 2019-09-23 20:24:02 +02:00
security [Backport] Validate `query` field when creating roles (#46275) (#47094) 2019-09-26 17:57:36 +10:00
spatial Replace SearchContext with QueryShardContext in query builder tests (#46978) 2019-09-23 20:24:02 +02:00
sql Mute JdbcCsvSpecIT.testAverageWithOneValueAndLimit 2019-09-25 10:36:53 +02:00
src/test [Backport] Validate `query` field when creating roles (#46275) (#47094) 2019-09-26 17:57:36 +10:00
transform [Transform] Replace transforms with transform, index constants (#47023) 2019-09-25 08:31:43 +02:00
vectors First round of optimizations for vector functions. (#46294) 2019-09-04 14:45:57 -07:00
voting-only-node Close nodes properly in Coordinator tests (#44967) 2019-07-30 11:47:36 +01:00
watcher Allow dropping documents with auto-generated ID (#46773) 2019-09-19 16:46:33 +02:00
build.gradle Skip feature aware check on JDK 14 (#45928) 2019-08-23 17:38:15 -04:00