long domain names produce unexpected errors #872
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
we're having long domain names, with several levels of subdomains. some recipes cause errors when the domain name is used as the stack name and it surpases the 64 character limit of secrets and config names, for instance.
yesterday we had a traefik deployment error where it was complaining a config name wasn't following the
[a-z0-9][a-zA-Z0-9.-_]+[a-z0-9]pattern. i'm typing this from memory because i didn't save screenshots, the idea is that it was alphanumeric with dots, dashes and underscores allowed only in the middle.it was fixed when we reduced the domain name, but the issue was that the stack name was reduced to
somewhat_long_doma_and turned intosomewhat_long_doma__file_provider_yml_v1, docker wasn't accepting the double underscore, and the pattern not matching error was misleading.i can come back with actual errors, i didn't want to forget to report this!
More information would be welcome and
--debuglogs also!We have code that ultimately tries to avoid these errors over here 👇
It's really an annoying limitation which we can't really do much about except for reducing length of inputs if we detect it and there is really no other option. A workaround is to hack
STACK_NAME=foointo your.env.