Skip to content

Commit fa6e076

Browse files
authored
Remove dynamic objects from security index (#40895)
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 893834d commit fa6e076

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
@@ -59,7 +59,7 @@
5959
},
6060
"metadata" : {
6161
"type" : "object",
62-
"dynamic" : true
62+
"dynamic" : false
6363
},
6464
"enabled": {
6565
"type": "boolean"
@@ -179,7 +179,7 @@
179179
},
180180
"metadata" : {
181181
"type" : "object",
182-
"dynamic" : true
182+
"dynamic" : false
183183
},
184184
"realm" : {
185185
"type" : "keyword"
@@ -188,7 +188,7 @@
188188
},
189189
"rules" : {
190190
"type" : "object",
191-
"dynamic" : true
191+
"dynamic" : false
192192
},
193193
"refresh_token" : {
194194
"type" : "object",
@@ -236,7 +236,7 @@
236236
},
237237
"metadata" : {
238238
"type" : "object",
239-
"dynamic" : true
239+
"dynamic" : false
240240
},
241241
"authentication" : {
242242
"type" : "binary"

0 commit comments

Comments
 (0)