Custom domain issue

151 views
Skip to first unread message

msanztru

unread,
Mar 16, 2012, 6:03:47 AM3/16/12
to Google App Engine
Hello,

We have added a custom domain to our appengine app. We followed the
isntructions changed everything but something went wrong and we can't
find the way to fix it. The thing is that in the google apps appengine
tab the main url specified is https://appid.appspot.com. However, and
that means all traffic from the domain mappings will be sent to the
https url, and of course this won't work. I don't know how this https
url ended up there as in the app engine admin console, the app url is
http://appid.appspot.com.

We haven't find the way to change this url. We have tried to disable
this app in google apps but it didn't work, it stays there.

This is quite urgent, so any help will be really appreciated!!

Thanks in advance!

rdodev

unread,
Apr 2, 2012, 9:43:00 AM4/2/12
to google-a...@googlegroups.com
Good luck getting an answer. I don't think custom domains (and the horrible current workflow to add them) is in their priority list, regretfully. :(

Gwyn Howell

unread,
Apr 3, 2012, 6:51:12 AM4/3/12
to google-a...@googlegroups.com
not sure i fully understand, but if you are finding that all your urls are being directed to https then you may wish to check your app.yaml file for secure: always.

Forgive me if I've misunderstood.

Ruben D. Orduz

unread,
Apr 3, 2012, 7:04:55 AM4/3/12
to google-a...@googlegroups.com

The problem he is having is that secure connections are only through https://app.appspot.com and not through his custom domain.

> --
> You received this message because you are subscribed to the Google Groups "Google App Engine" group.
> To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine/-/OCpFcT_0ys4J.
>
> To post to this group, send email to google-a...@googlegroups.com.
> To unsubscribe from this group, send email to google-appengi...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.

Gwyn Howell

unread,
Apr 3, 2012, 7:09:15 AM4/3/12
to google-a...@googlegroups.com
right. well as i'm sure your aware, ssl isn't available for custom domains on app engine. there is a trusted tester program running you may wish to sign up


On Tuesday, 3 April 2012 12:04:55 UTC+1, Ruben D. Orduz wrote:

The problem he is having is that secure connections are only through https://app.appspot.com and not through his custom domain.
On Apr 3, 2012 6:51 AM, "Gwyn Howell" <gwyn....@appogee.co.uk> wrote:
>
> not sure i fully understand, but if you are finding that all your urls are being directed to https then you may wish to check your app.yaml file for secure: always.
>
> Forgive me if I've misunderstood.
>
>
> On Friday, 16 March 2012 10:03:47 UTC, msanztru wrote:
>>
>> Hello,
>>
>> We have added a custom domain to our appengine app. We followed the
>> isntructions changed everything but something went wrong and we can't
>> find the way to fix it. The thing is that in the google apps appengine
>> tab the main url specified is https://appid.appspot.com. However, and
>> that means all traffic from the domain mappings will be sent to the
>> https url, and of course this won't work. I don't know how this https
>> url ended up there as in the app engine admin console, the app url is
>> http://appid.appspot.com.
>>
>> We haven't find the way to change this url. We have tried to disable
>> this app in google apps but it didn't work, it stays there.
>>
>> This is quite urgent, so any help will be really appreciated!!
>>
>> Thanks in advance!
>
> --
> You received this message because you are subscribed to the Google Groups "Google App Engine" group.
> To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine/-/OCpFcT_0ys4J.
>

> To post to this group, send email to google-appengine@googlegroups.com.
> To unsubscribe from this group, send email to google-appengine+unsubscribe@googlegroups.com.

Jeff Schnitzer

unread,
Apr 3, 2012, 11:52:59 AM4/3/12
to google-a...@googlegroups.com
Or, if appropriate, use this:

http://blorn.com/post/20185054195/ssl-for-your-domain-on-google-app-engine

(CF is re-investigating whether they can run the last-mile in SSL too)

Jeff

>> > To post to this group, send email to google-a...@googlegroups.com.


>> > To unsubscribe from this group, send email to

>> > google-appengi...@googlegroups.com.


>> > For more options, visit this group at
>> > http://groups.google.com/group/google-appengine?hl=en.
>

> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine" group.
> To view this discussion on the web visit

> https://groups.google.com/d/msg/google-appengine/-/zBj62V4r1GsJ.
>
> To post to this group, send email to google-a...@googlegroups.com.


> To unsubscribe from this group, send email to

> google-appengi...@googlegroups.com.

Gwyn Howell

unread,
Apr 3, 2012, 12:00:54 PM4/3/12
to google-a...@googlegroups.com
I was getting excited until I got to the line "With GAE, you use the “Flexible SSL” option instead of the “Full SSL” option. This provides encryption between the browser and CloudFlare, but plain HTTP between CloudFlare and Google.". Doesn't that defeat the object?! If it's only encrypted as far as cloudflare your still vulnerable for those http requests between cloudflare and app engine, right?!

>> > To post to this group, send email to google-appengine@googlegroups.com.


>> > To unsubscribe from this group, send email to

>> > google-appengine+unsubscribe@googlegroups.com.


>> > For more options, visit this group at
>> > http://groups.google.com/group/google-appengine?hl=en.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/google-appengine/-/zBj62V4r1GsJ.
>

> To post to this group, send email to google-appengine@googlegroups.com.


> To unsubscribe from this group, send email to

> google-appengine+unsubscribe@googlegroups.com.


> For more options, visit this group at
> http://groups.google.com/group/google-appengine?hl=en.

>> > To post to this group, send email to google-appengine@googlegroups.com.


>> > To unsubscribe from this group, send email to

>> > google-appengine+unsubscribe@googlegroups.com.


>> > For more options, visit this group at
>> > http://groups.google.com/group/google-appengine?hl=en.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/google-appengine/-/zBj62V4r1GsJ.
>

> To post to this group, send email to google-appengine@googlegroups.com.


> To unsubscribe from this group, send email to

> google-appengine+unsubscribe@googlegroups.com.

Jeff Schnitzer

unread,
Apr 3, 2012, 12:29:04 PM4/3/12
to google-a...@googlegroups.com
Yes, the connection between CloudFlare and Google is unencrypted (at
the moment). But it doesn't defeat the point - it depends on what
your threat model is.

If you are sending credit card #s to your backend, this link is a
problem - it violates PCI requirements. For other data, it depends on
your level of sensitivity. The probability of someone intercepting
your data goes from "very high" at the browser to much, much lower at
your servers. Even Google's SSL service likely terminates at some
sort of border router and traverses their (private) network
unencrypted.

Anyone in the security business will tell you there is no 100% way to
secure your system, only ways to reduce the risk. I'm sure that
someone out there has real statistics to back this up, but the biggest
threats to data security seem to be compromised machines, first-mile
snooping (FireSheep), poorly secured infrastructure (default
passwords), lost/unsecured laptops and backup tapes, and unscrupulous
employees. Last-mile snooping is not what keeps me up at night.

Then again, if your website is designed to coordinate civil
disobedience in restrictive regimes, I would be a lot more concerned
about the security of that last mile. I might not even consider GAE
an acceptable hosting platform - there are a lot of employees at
Google, and maybe one of them would take a big fat stack of cash (or a
hero's welcome "back home") to sneak out a data dump.

Security must be considered in context.

Jeff

>> >> > google-a...@googlegroups.com.


>> >> > To unsubscribe from this group, send email to

>> >> > google-appengi...@googlegroups.com.


>> >> > For more options, visit this group at
>> >> > http://groups.google.com/group/google-appengine?hl=en.
>> >
>> > --
>> > You received this message because you are subscribed to the Google
>> > Groups
>> > "Google App Engine" group.
>> > To view this discussion on the web visit
>> > https://groups.google.com/d/msg/google-appengine/-/zBj62V4r1GsJ.
>> >

>> > To post to this group, send email to google-a...@googlegroups.com.


>> > To unsubscribe from this group, send email to

>> > google-appengi...@googlegroups.com.

>> >> > google-a...@googlegroups.com.


>> >> > To unsubscribe from this group, send email to

>> >> > google-appengi...@googlegroups.com.


>> >> > For more options, visit this group at
>> >> > http://groups.google.com/group/google-appengine?hl=en.
>> >
>> > --
>> > You received this message because you are subscribed to the Google
>> > Groups
>> > "Google App Engine" group.
>> > To view this discussion on the web visit
>> > https://groups.google.com/d/msg/google-appengine/-/zBj62V4r1GsJ.
>> >

>> > To post to this group, send email to google-a...@googlegroups.com.


>> > To unsubscribe from this group, send email to

>> > google-appengi...@googlegroups.com.


>> > For more options, visit this group at
>> > http://groups.google.com/group/google-appengine?hl=en.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine" group.
> To view this discussion on the web visit

> https://groups.google.com/d/msg/google-appengine/-/ozUMh_dpwQkJ.
>
> To post to this group, send email to google-a...@googlegroups.com.


> To unsubscribe from this group, send email to

> google-appengi...@googlegroups.com.

Gwyn Howell

unread,
Apr 3, 2012, 12:36:08 PM4/3/12
to google-a...@googlegroups.com
Have you tried this service? I might give it a spin. Any advice?

>> >> > google-appengine@googlegroups.com.


>> >> > To unsubscribe from this group, send email to

>> >> > google-appengine+unsubscribe@googlegroups.com.


>> >> > For more options, visit this group at
>> >> > http://groups.google.com/group/google-appengine?hl=en.
>> >
>> > --
>> > You received this message because you are subscribed to the Google
>> > Groups
>> > "Google App Engine" group.
>> > To view this discussion on the web visit
>> > https://groups.google.com/d/msg/google-appengine/-/zBj62V4r1GsJ.
>> >

>> > To post to this group, send email to google-appengine@googlegroups.com.


>> > To unsubscribe from this group, send email to

>> > google-appengine+unsubscribe@googlegroups.com.

>> >> > google-appengine@googlegroups.com.


>> >> > To unsubscribe from this group, send email to

>> >> > google-appengine+unsubscribe@googlegroups.com.


>> >> > For more options, visit this group at
>> >> > http://groups.google.com/group/google-appengine?hl=en.
>> >
>> > --
>> > You received this message because you are subscribed to the Google
>> > Groups
>> > "Google App Engine" group.
>> > To view this discussion on the web visit
>> > https://groups.google.com/d/msg/google-appengine/-/zBj62V4r1GsJ.
>> >

>> > To post to this group, send email to google-appengine@googlegroups.com.


>> > To unsubscribe from this group, send email to

>> > google-appengine+unsubscribe@googlegroups.com.


>> > For more options, visit this group at
>> > http://groups.google.com/group/google-appengine?hl=en.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/google-appengine/-/ozUMh_dpwQkJ.
>

> To post to this group, send email to google-appengine@googlegroups.com.


> To unsubscribe from this group, send email to

> google-appengine+unsubscribe@googlegroups.com.


> For more options, visit this group at
> http://groups.google.com/group/google-appengine?hl=en.

>> >> > google-appengine@googlegroups.com.


>> >> > To unsubscribe from this group, send email to

>> >> > google-appengine+unsubscribe@googlegroups.com.


>> >> > For more options, visit this group at
>> >> > http://groups.google.com/group/google-appengine?hl=en.
>> >
>> > --
>> > You received this message because you are subscribed to the Google
>> > Groups
>> > "Google App Engine" group.
>> > To view this discussion on the web visit
>> > https://groups.google.com/d/msg/google-appengine/-/zBj62V4r1GsJ.
>> >

>> > To post to this group, send email to google-appengine@googlegroups.com.


>> > To unsubscribe from this group, send email to

>> > google-appengine+unsubscribe@googlegroups.com.

>> >> > google-appengine@googlegroups.com.


>> >> > To unsubscribe from this group, send email to

>> >> > google-appengine+unsubscribe@googlegroups.com.


>> >> > For more options, visit this group at
>> >> > http://groups.google.com/group/google-appengine?hl=en.
>> >
>> > --
>> > You received this message because you are subscribed to the Google
>> > Groups
>> > "Google App Engine" group.
>> > To view this discussion on the web visit
>> > https://groups.google.com/d/msg/google-appengine/-/zBj62V4r1GsJ.
>> >

>> > To post to this group, send email to google-appengine@googlegroups.com.


>> > To unsubscribe from this group, send email to

>> > google-appengine+unsubscribe@googlegroups.com.


>> > For more options, visit this group at
>> > http://groups.google.com/group/google-appengine?hl=en.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/google-appengine/-/ozUMh_dpwQkJ.
>

> To post to this group, send email to google-appengine@googlegroups.com.


> To unsubscribe from this group, send email to

> google-appengine+unsubscribe@googlegroups.com.

alex

unread,
Apr 3, 2012, 12:55:24 PM4/3/12
to google-a...@googlegroups.com
I've been thinking about an alternative for awhile now: HTML5 CORS feature (here's a nice example: http://www.html5rocks.com/en/tutorials/cors/)

That, of course, highly depends on the app structure. This could work if the app is using Ajax to deliver actual content to the users. At least for browsers that support XmlHttpRequest2/XDomainRequest. For instance, GWT could be a perfect match. Like this forum, the new version, is built with GWT I assume. 

Basically, a base HTML is being requested from http://www.example.org but the actual content is being loaded from https://example-org.appspot.com, and fall back to HTTP from the custom domain in case the browser doesn't support XHR2.

Could be an optional feature to customers. Something similar to a "Always use HTTPS" setting in Google Apps configuration for GMail and other services.


What do you guys think?

>> > To post to this group, send email to google-appengine@googlegroups.com.


>> > To unsubscribe from this group, send email to


>> > For more options, visit this group at
>> > http://groups.google.com/group/google-appengine?hl=en.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/google-appengine/-/zBj62V4r1GsJ.
>

> To post to this group, send email to google-appengine@googlegroups.com.


> To unsubscribe from this group, send email to

Ruben D. Orduz

unread,
Apr 3, 2012, 1:03:07 PM4/3/12
to google-a...@googlegroups.com
Not a bad idea, Alex. But I find all the approaches so far like a
"looking the other way: excuse for Google. It should not be up to the
users to come up with all sorts hoops and work-arounds to solve the
problem. It should be Google the one trying to offer legitimate
solutions. Until they do, my money (although a pittance) will continue
to go to AWS. If and when Google makes it easy (i.e. not jumping
though 10 different hoops between Google Apps and App Engine) to add
custom domains and provide SSL option for them, we'll re-evaluate GAE
as a viable app-hosting platform.

>> >> > google-a...@googlegroups.com.


>> >> > To unsubscribe from this group, send email to

>> >> > google-appengi...@googlegroups.com.


>> >> > For more options, visit this group at
>> >> > http://groups.google.com/group/google-appengine?hl=en.
>> >
>> > --
>> > You received this message because you are subscribed to the Google
>> > Groups
>> > "Google App Engine" group.
>> > To view this discussion on the web visit
>> > https://groups.google.com/d/msg/google-appengine/-/zBj62V4r1GsJ.
>> >

>> > To post to this group, send email to google-a...@googlegroups.com.


>> > To unsubscribe from this group, send email to

>> > google-appengi...@googlegroups.com.


>> > For more options, visit this group at
>> > http://groups.google.com/group/google-appengine?hl=en.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine" group.
> To view this discussion on the web visit

> https://groups.google.com/d/msg/google-appengine/-/WTpwdt02W7kJ.
>
> To post to this group, send email to google-a...@googlegroups.com.


> To unsubscribe from this group, send email to

> google-appengi...@googlegroups.com.

Jeff Schnitzer

unread,
Apr 3, 2012, 1:47:28 PM4/3/12
to google-a...@googlegroups.com
On Tue, Apr 3, 2012 at 12:36 PM, Gwyn Howell <gwyn....@appogee.co.uk> wrote:
> Have you tried this service? I might give it a spin. Any advice?

Yes - I wrote that blog entry. We're happy with it. As I mentioned
in the blog, it's likely we will stick with CloudFlare even if GAE
offers SSL natively:

http://blorn.com/post/20185054195/ssl-for-your-domain-on-google-app-engine

The only situation in which we can imagine having to think about it is
if Google's native solution came in cheaper than $20/mo, and then we
had to decide if CF's other features were worth a premium. Yeah, we
are cheapskates. Since the trial balloon price Google floated in a
public survey posted to this list several months ago was $100/mo for
VIP (not-SNI) SSL, I don't expect to face that decision.

Jeff

Mark Rathwell

unread,
Apr 3, 2012, 4:00:23 PM4/3/12
to google-a...@googlegroups.com
Jeff,

Quick question about CF, since you are somewhat familiar. I currently
use nginx on an EC2 instance to handle SSL on a custom domain. Also,
though, this setup allows me to do things like:

redirect all naked domain requests to www
redirect all http requests to https
reverse proxy www.example.com -> app1.appspot.com
reverse proxy api.example.com -> app1.appspot.com/api
reverse proxy other.example.com -> app2.appspot.com

Is this stuff all possible (and straightforward) with CloudFlare? And
is it simple to manage multiple domains from one account?

Thanks in advance for any information you can provide.

- Mark

> --
> You received this message because you are subscribed to the Google Groups "Google App Engine" group.

> To post to this group, send email to google-a...@googlegroups.com.
> To unsubscribe from this group, send email to google-appengi...@googlegroups.com.

Mark Rathwell

unread,
Apr 3, 2012, 4:06:38 PM4/3/12
to google-a...@googlegroups.com
> Jeff,
>
> Quick question about CF, since you are somewhat familiar.  I currently
> use nginx on an EC2 instance to handle SSL on a custom domain.  Also,
> though, this setup allows me to do things like:
>
> redirect all naked domain requests to www
> redirect all http requests to https
> reverse proxy www.example.com  -> app1.appspot.com
> reverse proxy api.example.com    -> app1.appspot.com/api
> reverse proxy other.example.com -> app2.appspot.com
>

I should have also noted, that I understand that all of this setup is
possible solely with GAE and Google Apps, but this setup allows me to
manage it all in one place, as opposed to several. And I was
wondering if the same would be possible with CF.

Jeff Schnitzer

unread,
Apr 3, 2012, 5:09:42 PM4/3/12
to google-a...@googlegroups.com
On Tue, Apr 3, 2012 at 4:00 PM, Mark Rathwell <mark.r...@gmail.com> wrote:
> Jeff,
>
> Quick question about CF, since you are somewhat familiar.  I currently
> use nginx on an EC2 instance to handle SSL on a custom domain.  Also,
> though, this setup allows me to do things like:
>
> redirect all naked domain requests to www
> redirect all http requests to https

This is easy.

> reverse proxy www.example.com  -> app1.appspot.com

> reverse proxy other.example.com -> app2.appspot.com

Effectively yes, although it's not what you describe here. You just
set up www.example.com in CF's dashboard as normal - a CNAME to
ghs.google.com. You can then flip a switch back and forth to enable
or disable the reverse proxy; when on, traffic will route through CF,
when off, traffic will route directly to ghs.google.com.

Note that ghs.google.com and xyz.appspot.com do NOT resolve to the
same ip addresses and have very different behavior. ghs.google.com
will respond to the Host: header for www.example.com. xyz.appspot.com
will only respond to Host: headers for xyz.appspot.com.

The reason SSL on your own domain from CF to xyz.appspot.com doesn't
work is because CF would need to override the Host header and replace
www.example.com with xyz.appspot.com. I know they had this
implemented at one point but then they removed it for reasons that are
not clear to me. I've asked John Roberts about it, maybe this feature
can be revived.

> reverse proxy api.example.com    -> app1.appspot.com/api

This does not appear to be allowed. The url forwarding Page Rules all
issue 301 redirects, you can't transparently forward to a different
uri path.

> Is this stuff all possible (and straightforward) with CloudFlare?  And
> is it simple to manage multiple domains from one account?

The interface is pleasant to use. You can have lots of domains,
although we are only using CF with one. I don't know how it would be
if you're talking hundreds or thousands where you need batch
operations (ie, some sort of domain soup for managing parking pages).

Jeff

alex

unread,
Apr 4, 2012, 3:26:37 AM4/4/12
to google-a...@googlegroups.com
Right. Google to offer a legitimate solution is one side of the story. 

The other one? Conspiracy! SNI was there since 2007 (even earlier) and yet it's not supported by all browser+OS combinations as of today. Clearly, browser vendors do not want this to work because it's easier for governments to spy on their citizens. 


>> >> > To unsubscribe from this group, send email to


>> >> > For more options, visit this group at
>> >> > http://groups.google.com/group/google-appengine?hl=en.
>> >
>> > --
>> > You received this message because you are subscribed to the Google
>> > Groups
>> > "Google App Engine" group.
>> > To view this discussion on the web visit
>> > https://groups.google.com/d/msg/google-appengine/-/zBj62V4r1GsJ.
>> >

>> > To post to this group, send email to google-appengine@googlegroups.com.


>> > To unsubscribe from this group, send email to


>> > For more options, visit this group at
>> > http://groups.google.com/group/google-appengine?hl=en.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/google-appengine/-/WTpwdt02W7kJ.
>

> To post to this group, send email to google-appengine@googlegroups.com.


> To unsubscribe from this group, send email to

Reply all
Reply to author
Forward
0 new messages