elastic / kibana

Your window into the Elastic Stack
https://www.elastic.co/products/kibana
Other
19.72k stars 8.14k forks source link

Creating an auto-follow pattern for cross-cluster replication allows for invalid index names using uppercase characters without warnings #108390

Open crisdarocha opened 3 years ago

crisdarocha commented 3 years ago

Kibana version: 7.14.0

Describe the bug: When creating an auto-follow pattern for cross-cluster replication, the part that defines the prefix and suffix has is no validation on special characters or uppercase characters what would lead to invalid index names in Elasticsearch, but it has a warning about the special characters. Nothing in this warning speaks about uppercase characters, which are also invalid in Elasticsearch.

Steps to reproduce:

  1. Navigate to Stack Management / Cross-Cluster Replication / Auto-follow patterns
  2. Create auto-follow pattern
  3. Add uppercase characters in the prefix and suffix. No warnings about this type anywhere in the screen. See screenshot below
  4. Create an index matching the pattern. Auto-follow will fail and GET _ccr/stats will tell you Invalid index name [...], must be lowercase. See screenshot below.

Expected behavior: It would be great to have at least a warning about uppercase characters, if not a fully fledged validation, to prevent similar issues.

Screenshots (if relevant):

Screenshot 2021-08-12 at 09 46 49 Screenshot 2021-08-12 at 09 48 32
elasticmachine commented 3 years ago

Pinging @elastic/kibana-stack-management (Team:Stack Management)

elasticmachine commented 3 days ago

Pinging @elastic/kibana-management (Team:Kibana Management)