Google cloud run and cloudflare subdomain mapping

Hi,

I have an app and root domain (say, abc.com) set up with google cloud run. Works fine.
When i configure with CF, it works fine with root domain with SSL set to ‘strict’ or ‘strict full’.
Now i need to add multiple subdomains with CNAME to my own domain and i dont want to add every subdomain to google cloud run domain mapping. I just want to go ahead with CF for all of my subdomains.
When i add a CNAME www abc.com, this does not work. When i add another subdomain like
CNAME client abc.com, this also does not work.
Error - Handshake failed.

Sample Ray ID: 6d69f0c5cf4b91a2.

Pls suggest solution.

You need to make sure that each of these services is properly configured and set up.

I’d suggest to pause Cloudflare altogether (Overview screen, bottom right), then add all desired DNS records, make sure they all load fine on HTTPS, and only then unpause Cloudflare.

Hi This is what i have done and confirmed the same with root domain.
But this does not work with subdomains which is created on CF but not on google cloud run.
So why CF does not work with CNAME set up with its own root domain ?

What about this part?

You said you have done everything I suggested, if you have, you should have a working setup at this point.

Cloudflare only manages DNS, everything else has to be configured with your host.

I can really only reiterate what I advised before.

Did you understand what i am asking ?
Read it carefully -

Root domain configured with cloud run. Works fine on https.

Configured now with CF. Works fine on CF with https set to ‘strict’ and ‘strict full’ both ways.

Add a subdomain on CF (client CNAME to root domain).

This subdomain is not configured on cloud run and will not configure as i want CF to handle all of my subdomains. It should work as CF can handle many subdomains which is not configured even on cloud run mapping.

But it is not working. Pls suggest solution.

How to make friends :wink:

What’s the domain and which record are you talking about?

1 Like

Well, that error message is pretty self-explanatory. You have no valid setup on your machine.

And the domain is neither paused as I suggested, so you did not follow my advice. We are going a bit in circles here.

Can you explain what is unclear about this?

No i will not do this.
Because they will not work as i would not add subdomain on my server mapping. Did you know about google cloud run domain mapping ?

Well, if you don’t listen to advice, there is little point in continuing here.

You need to fix your server, that’s all I can say again.

What to fix on server ?

If the root domain works, then why not dynamically added subdomain works while subdomain maps to its own root domain ?
following this article -

I am afraid server configuration discussions are off-topic for the forum here as they are not Cloudflare related.

I advised you on what to do to debug this issue, but you seemingly do not want to do so.

I think you even dont understand anything at Cloudflare and are just wasting time for customers. Can you escalate it to your senior ?

Lad, you are on the community, if you haven’t realised that :wink:

I chose to volunteer my time to help here, haven’t heard a single thank you yet, and instead of following my advice to actually fix your issue (which you shouldn’t have asked in the first place, because this issue has been discussed a million times anyhow) you are complaining? Are you for real? :laughing: :roll_eyes:

I said can you escalate it to your senior ?
Have you gone through the doc link i sent you regarding subdomain creation on CF and does it say anything to do on server side for subdomains ?

I am the senior here :wink:

1 Like

to your senior or reporting person ?

Whatever, you were told what to do. It’s your choice if you want to fix the issue or not.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.