You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Validation for index name expressions (#139023) (#139628)
Add validation for index name expressions used in security roles and
API keys:
- An expression that starts with slash (/) must be a valid
Lucene regular expression
- Commas are not allowed outside of a regular expression
Copy file name to clipboardExpand all lines: x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/role/RoleDescriptorRequestValidator.java
Copy file name to clipboardExpand all lines: x-pack/plugin/core/src/test/java/org/elasticsearch/xpack/core/security/action/role/RoleDescriptorRequestValidatorTests.java
+66Lines changed: 66 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -73,6 +73,57 @@ public void testSelectorsValidation() {
0 commit comments