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 18, 2024
1 parent e5f0134 commit eda9709
Showing 1 changed file with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,18 @@ 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.',
}
),
}),
type: VALIDATION_TYPES.ARRAY_ITEM,
},
],
},
doCreateDataStream: {
Expand Down

0 comments on commit eda9709

Please sign in to comment.