apache / trafficcontrol

Apache Traffic Control is an Open Source implementation of a Content Delivery Network
https://trafficcontrol.apache.org/
Apache License 2.0
1.09k stars 344 forks source link

Two delivery services should not have same custom domain (HOST_REGEXP with setNumber > 0) #6239

Open stackexpress-jawed opened 3 years ago

stackexpress-jawed commented 3 years ago

This Bug Report affects these Traffic Control components:

Current behavior:

When creating a delivery service, the ordinary regex is of the form .*\.ds-name\..*. If we need a custom domain, we can create an additional Delivery Service Regex for the exact domain, e.g. my.domain.example.net , of type HOST_REGEXP, without any special regex characters.

But I am able to create same custom domain using HOST_REGEXP option for two or more delivery service. Which cause duplicate entry in Traffic Server remap.conf file.

there doesn't seem to be any validation in place to prevent that from happening

Expected behavior:

Prevent user to create same custom domain for another delivery service.

Steps to reproduce:

create same custom domain using HOST_REGEXP option for two or more delivery service.


Is there any way to check or validate custom domain regex before creating duplicate? Because it’s causing t3c script to write duplicate entry in remap.config on edge cache servers.

mat1010 commented 5 months ago

Any news on this topic? In worst case, this results in a crashing Trafficserver instance if due to some unfortunate event the service is restarted.