-
-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Long tunnel names cause errors when creating DNS records #139
Comments
Thanks for your contribution for reporting this issue! 🚀 Get that, using DNS record comments for annotating metadata(this DNS Record is controlled by which operator) is NOT good. Maybe we could use TXT record as instead. What do you think about that? Do you have any suggestions? ❤️ |
Thank you for your response. I think using a TXT record is not good for security, because information about the connection is visible to the outside world. How about not including the tunnel name as connection information? Specifically, the comment in the DNS record should be as follows
|
I think it's fine because you can check the tunnel name from the Cloudflare Dashboard without including it. What do you think? |
Let me take a look why we need setup the comment 🤔 |
How about limiting the length of tunnel names and displaying an error message if the limit is exceeded when the controller is started, so that it will not start? Example
Or, how about cutting off the excess part if the total length exceeds 100 characters?
|
summary
If the tunnel name is long, the length of the comment in the DNS record exceeds the limit of 100 characters.
In that case, it seems that DNS records cannot be registered.
Therefore, it is necessary to ensure that the comment length does not exceed 100 characters.
Details
When I created the Ingress resource, I received the following error.
The following code was temporarily changed for debugging purposes.
https://github.com/STRRL/cloudflare-tunnel-ingress-controller/blob/master/pkg/cloudflare-controller/tunnel-client.go#L150
Here is the controller's log afterwards.
There are 110 characters in the COMMENT string
The text was updated successfully, but these errors were encountered: