mlab-lattice / lattice

Apache License 2.0
1 stars 3 forks source link

Handle errors due to invalid character sets #167

Open tfogo opened 6 years ago

tfogo commented 6 years ago

Trying to create a system with a name including invalid characters (e.g. Ω) will throw a 500 error from the Lattice API. No error message is returned.

Trying to deploy a system when a service name includes invalid characters (e.g. version utf8 on system__petflix) will result in the service build exiting (i.e. having a finished timestamp) but remaining in the pending state. See build 99943d8b-7cc8-45b8-9cc9-06b860088456 in Lattice fbefa11dc545c87716ed26735007fb2e on staging.

I'm assuming K8s' restrictions on character sets are behind this: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#syntax-and-character-set

If you need characters to test with, this is a handy reference: https://github.com/minimaxir/big-list-of-naughty-strings/blob/master/blns.txt