Closed nacardin closed 3 years ago
Fluvio topic name is limited to character set supported by Kubernetes Id. We should reject any topic name that doesn't conform to it.
In that case we should probably create a specialized type such as struct KubeId(String)
with the invariant that it always is a valid Kubernetes Id character set. We can make it so every possible way to construct it will reject any string with characters outside of the valid charset, and we can give it the same serialization rules as string.
For a short-term fix, I'm going to make the CLI reject any non-alphanumeric topic names
We should make a followup issue that allows topic names to be any utf-8 name. My guess for why this doesn't work today is that the topic names may be used as file names somewhere, and not all utf-8 is a valid filename. If that's the case, we may be able to get around this by base64 encoding topic names before they are used as filenames
Describe the setup Fluvio Cloud
Steps to reproduce the behavior:
Log output