Skip to content

Commit 920024e

Browse files
authored
Remove dynamic objects from security index (#40715)
The security index had a few "object" types with "dynamic": true However, this automatically creates a mapping for each field that is created within those objects. This means that types are dynamically inferred and "locked in" for future updates. Instead we want "dynamic": false which will allow us to store a range of fields in these nested objects and retrieve them from the source, without creating mapping types for those fields. Backport of: #40499
1 parent 809a5f1 commit 920024e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

x-pack/plugin/core/src/main/resources/security-index-template.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969
},
7070
"metadata" : {
7171
"type" : "object",
72-
"dynamic" : true
72+
"dynamic" : false
7373
},
7474
"enabled": {
7575
"type": "boolean"
@@ -189,7 +189,7 @@
189189
},
190190
"metadata" : {
191191
"type" : "object",
192-
"dynamic" : true
192+
"dynamic" : false
193193
},
194194
"realm" : {
195195
"type" : "keyword"
@@ -198,7 +198,7 @@
198198
},
199199
"rules" : {
200200
"type" : "object",
201-
"dynamic" : true
201+
"dynamic" : false
202202
},
203203
"refresh_token" : {
204204
"type" : "object",
@@ -253,7 +253,7 @@
253253
},
254254
"metadata" : {
255255
"type" : "object",
256-
"dynamic" : true
256+
"dynamic" : false
257257
},
258258
"authentication" : {
259259
"type" : "binary"

0 commit comments

Comments
 (0)