Cluster installation can fail due to invalid ClickHouse username due to XML constraints
In trying to set up a cluster, @jiaan found that the Clickhouse username can start with a number, which results in invalid XML as it cannot start with a number or punctuation, as the username is an XML node in the users.xml
configuration file.
Proposal
- Ensure the generation of
CLICKHOUSE_USERNAME
always begins with a letter: https://gitlab.com/gitlab-org/analytics-section/product-analytics/helm-charts/-/blob/main/Taskfile.yml?ref_type=heads#L95-96
Edited by Dennis Tang