Thanks for answering.
As the validation url called is the right one, I guess that’s Cloudflare validation request.
I don’t call this url on my side.
Plus, I just finished the validation, and it’s working.
In fact, there are multiple challenge occurring when you add a custom hostname.
Here is the log I have :
Host: subdomain.mysite.com
User Agent: Cloudflare Custom Hostname Verification
{"level":30,"time":1694072902311,"pid":22923,"hostname":"sheldon","name":"redbird","msg":"Proxying subdomain.mysite.com/.well-known/cf-custom-hostname-challenge/2cfae0b7-f9d7-47af-a2dd-ca2926737bb4 to localhost:8081/.well-known/cf-custom-hostname-challenge/2cfae0b7-f9d7-47af-a2dd-ca2926737bb4","v":1}
Host: mysite.com
User Agent: Cloudflare Custom Hostname Verification
{"level":30,"time":1694072902337,"pid":22923,"hostname":"sheldon","name":"redbird","msg":"Proxying mysite.com/.well-known/cf-custom-hostname-challenge/2cfae0b7-f9d7-47af-a2dd-ca2926737bb4 to localhost:8080/.well-known/cf-custom-hostname-challenge/2cfae0b7-f9d7-47af-a2dd-ca2926737bb4","v":1}
Host: mysite.com
User Agent: Cloudflare Custom Hostname Verification
{"level":30,"time":1694072902342,"pid":22923,"hostname":"sheldon","name":"redbird","msg":"Proxying mysite.com/.well-known/cf-custom-hostname-challenge/2cfae0b7-f9d7-47af-a2dd-ca2926737bb4 to localhost:8080/.well-known/cf-custom-hostname-challenge/2cfae0b7-f9d7-47af-a2dd-ca2926737bb4","v":1}
Host: mysite.com
User Agent: Cloudflare Custom Hostname Verification
{"level":30,"time":1694072902384,"pid":22923,"hostname":"sheldon","name":"redbird","msg":"Proxying mysite.com/.well-known/cf-custom-hostname-challenge/2cfae0b7-f9d7-47af-a2dd-ca2926737bb4 to localhost:8080/.well-known/cf-custom-hostname-challenge/2cfae0b7-f9d7-47af-a2dd-ca2926737bb4","v":1}
Host: subdomain.mysite.com
User Agent: bushbaby/2023.8.12
{"level":30,"time":1694072904072,"pid":22923,"hostname":"sheldon","name":"redbird","msg":"Proxying subdomain.mysite.com/.well-known/acme-challenge/IN_dJrN2THNcj9I4LPNemhxrK-BgyFBO7Fd5QXrEvCFtQLdOukpXkDaBb8r61KnB to localhost:8081/.well-known/acme-challenge/IN_dJrN2THNcj9I4LPNemhxrK-BgyFBO7Fd5QXrEvCFtQLdOukpXkDaBb8r61KnB","v":1}
The 3 first requests are made as soon as the POST request to the API has been done. It’s the prevalidation request.
The last one few time later, is the realtime HTTP validation. And this one has the bushbaby/2023.8.12 user agent.
One other weird thing is that when you register multiple hostname for the same base domain, and you have set CNAME for each one.
Only one is automatically activated with realtime validation. https://developers.cloudflare.com/cloudflare-for-platforms/cloudflare-for-saas/domain-support/hostname-validation/realtime-validation/