You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Field level security was interacting in bad ways with the can-match phase on frozen tier shards (interaction between
FieldSubsetReader and RewriteCachingDirectoryReader). This made can-match phase fail, which in the normal case
would result in extra load on the frozen tier, and in the extreme case (in interaction with #51708) made searches fail.
This is a bug that was indirectly introduced by #78988.
Closes#82044
Copy file name to clipboardExpand all lines: x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/authz/accesscontrol/FieldSubsetReader.java
Copy file name to clipboardExpand all lines: x-pack/plugin/searchable-snapshots/qa/rest/src/yamlRestTest/resources/rest-api-spec/test/field_level_security.yml
+108-21
Original file line number
Diff line number
Diff line change
@@ -29,7 +29,11 @@ setup:
29
29
{
30
30
"names": ["*"],
31
31
"privileges": ["read"],
32
-
"query": {"match": {"marker": "test_1"}}
32
+
"query": {"match": {"marker": "test_1"}},
33
+
"field_security" : {
34
+
"grant" : [ "*" ],
35
+
"except" : [ "forbidden_field" ]
36
+
}
33
37
}
34
38
]
35
39
}
@@ -72,14 +76,37 @@ setup:
72
76
73
77
- do:
74
78
indices.create:
75
-
index: test_index
79
+
index: test_index1
76
80
body:
77
81
mappings:
78
82
properties:
79
83
location:
80
84
properties:
81
85
city:
82
86
type: "keyword"
87
+
created_at:
88
+
type: date # add date field to trigger can-match phase in searches
89
+
format: "yyyy-MM-dd"
90
+
91
+
settings:
92
+
index:
93
+
number_of_shards: 1
94
+
number_of_replicas: 0
95
+
96
+
- do:
97
+
indices.create:
98
+
index: test_index2
99
+
body:
100
+
mappings:
101
+
properties:
102
+
location:
103
+
properties:
104
+
city:
105
+
type: "keyword"
106
+
created_at:
107
+
type: date # add date field to trigger can-match phase in searches
0 commit comments