You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "Gaurav Narula (Jira)" <ji...@apache.org> on 2026/05/27 10:21:00 UTC

[jira] [Created] (KAFKA-20617) kafka-storage.sh should disallow invalid cluster ids

Gaurav Narula created KAFKA-20617:
-------------------------------------

             Summary: kafka-storage.sh should disallow invalid cluster ids
                 Key: KAFKA-20617
                 URL: https://issues.apache.org/jira/browse/KAFKA-20617
             Project: Kafka
          Issue Type: Improvement
            Reporter: Gaurav Narula
            Assignee: Gaurav Narula


{{kafka-storage.sh format}} accepts a {{cluster-id}} argument. While the recommendation is that users can generate a random uuid using {{kafka-storage.sh random-uuid}} command, the users are free to generate a cluster id out of band.

The {{format}} command should therefore perform validation on the cluster-id passed as we risk using one which is invalid. Gotchas can include:

* Not using URLEncoding when using base64
* Using base64 encoding with padding
* Being unlucky and using a reserved UUID




--
This message was sent by Atlassian Jira
(v8.20.10#820010)