Should dots in regular expressions be allowed when configuring index-level permissions for a role?

Regular expression is available for specifying index-level permissions for a role from this view.

But, when setting a regular expression pattern including dots, the dots are replaced with ‘?’ in the method submitAddIndex.

Then, the pattern created after the replacement is not always a valid regular expression pattern.

For example, when specifying ‘/./’ for the index input, it is replaced with '/?/’ after pushing the save button, where the pattern after the replacement is invalid.

Can this be a bug?

Can we use dots in regular expressions?

How about validating regular expressions before submitting?

Versions

Elasticserch version: 6.3.1

SeachGuard ES plugin version: 6-6.3.1-22.3

Kibana version: 6.3.1

SearchGuard Kibana plugin version: 6.3.1-14-beta-1

I believe this could indeed be a bug. Could you please post this issue on our GitHub Issue tracker:

Thanks!

···

On Tuesday, July 24, 2018 at 10:57:04 AM UTC+2, Tomoyuki Saito wrote:

Regular expression is available for specifying index-level permissions for a role from this view.

But, when setting a regular expression pattern including dots, the dots are replaced with ‘?’ in the method submitAddIndex.

Then, the pattern created after the replacement is not always a valid regular expression pattern.

For example, when specifying ‘/./’ for the index input, it is replaced with '/?/’ after pushing the save button, where the pattern after the replacement is invalid.

Can this be a bug?

Can we use dots in regular expressions?

How about validating regular expressions before submitting?

Versions

Elasticserch version: 6.3.1

SeachGuard ES plugin version: 6-6.3.1-22.3

Kibana version: 6.3.1

SearchGuard Kibana plugin version: 6.3.1-14-beta-1

Thank you for your attention and quick reply.

Filed up an issue: https://github.com/floragunncom/search-guard-kibana-plugin/issues/108

Thanks.

···

On Tuesday, July 24, 2018 at 8:34:25 PM UTC+9, Jochen Kressin wrote:

I believe this could indeed be a bug. Could you please post this issue on our GitHub Issue tracker:

https://github.com/floragunncom/search-guard-kibana-plugin/issues

Thanks!

On Tuesday, July 24, 2018 at 10:57:04 AM UTC+2, Tomoyuki Saito wrote:

Regular expression is available for specifying index-level permissions for a role from this view.

But, when setting a regular expression pattern including dots, the dots are replaced with ‘?’ in the method submitAddIndex.

Then, the pattern created after the replacement is not always a valid regular expression pattern.

For example, when specifying ‘/./’ for the index input, it is replaced with '/?/’ after pushing the save button, where the pattern after the replacement is invalid.

Can this be a bug?

Can we use dots in regular expressions?

How about validating regular expressions before submitting?

Versions

Elasticserch version: 6.3.1

SeachGuard ES plugin version: 6-6.3.1-22.3

Kibana version: 6.3.1

SearchGuard Kibana plugin version: 6.3.1-14-beta-1