Skip to content

Commit

Permalink
[Index Management] Restrict dot-prefixed index patterns in template form
Browse files Browse the repository at this point in the history
  • Loading branch information
ElenaStoeva committed Sep 17, 2024
1 parent e5f0134 commit e04ad79
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,17 @@ export const schemas: Record<string, FormSchema> = {
type: VALIDATION_TYPES.ARRAY_ITEM,
isBlocking: false,
},
{
validator: startsWithField({
char: '.',
message: i18n.translate(
'xpack.idxMgmt.templateValidation.indexPatternDotPrefixedError',
{
defaultMessage: 'Index patterns cannot match dot-prefixed indices.',
}
),
}),
},
],
},
doCreateDataStream: {
Expand Down

0 comments on commit e04ad79

Please sign in to comment.