stackexpress-jawed opened a new issue #6239:
URL: https://github.com/apache/trafficcontrol/issues/6239


   <!--
   ************ STOP!! ************
   If this issue identifies a security vulnerability, DO NOT submit it! 
Instead, contact
   the Apache Traffic Control Security Team at 
[email protected] and follow the
   guidelines at https://apache.org/security regarding vulnerability disclosure.
   
   - For *SUPPORT QUESTIONS*, use the #traffic-control channel on the ASF slack 
(https://s.apache.org/tc-slack-request)
   or the Traffic Control Users mailing list (send an email to 
[email protected] to subscribe).
   - Before submitting, please **SEARCH GITHUB** for a similar issue or PR
       * https://github.com/apache/trafficcontrol/issues
       * https://github.com/apache/trafficcontrol/pulls
   -->
   
   <!-- Do not submit security vulnerabilities or support requests here - see 
above -->
   ## This Bug Report affects these Traffic Control components:
   <!-- delete all those that don't apply -->
   - Traffic Ops
   - Documentation
   
   
   ## Current behavior:
   <!-- Describe how the bug happens -->
   
   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:
   <!-- Describe what the behavior would be without the bug -->
   
   Prevent user to create same custom domain for another delivery service.
   
   
   ## Steps to reproduce:
   <!-- If the current behavior is a bug, please provide the *STEPS TO 
REPRODUCE* and
   include the applicable TC version.
   -->
   
    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.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to