Creating a role with index pattern "-abc" as to not allow index creation of this pattern is not working

POST _security/role/testrole4
{
"cluster": [
"all"
],
"indices": [
{
"names": [
"-abc"
],
"privileges": [
"all"
],
"allow_restricted_indices": true
}
],
"applications": [
{
"application": "",
"privileges": [
"
"
],
"resources": [
""
]
}
],
"run_as": [
"
"
],
"transient_metadata": {}
}

Here I don't want index "abc" to be created, but other indices should be created but currently I am unable to create any indices. Also if I give "*" there it works, but the validation fails as "abc " can also be created.

Thanks for help

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.