kibana
kibana copied to clipboard
Client-side validation for serverless custom role names does not restrict spaces
Describe the bug: Serverless custom role assignments are stored as application privileges in cloud. This field does not allow whitespace characters. When attempting to assign a custom role with a space in the name/id, it will be rejected.
Steps to reproduce:
- Create a search or security project in the QA environment
- Create a custom role for that project with a space in the name
- Confirm that no error has occurred (this will error once ES has updated their validation)
- In cloud console, attempt to assign that role to a user in your org
- Confirm that the assignment is rejected (500)
Expected behavior: In serverless, Kibana's validation of role names should restrict use of whitespace characters. This change must NOT apply to stateful Kibana, as it would be a breaking change.