Whitelist traffic to specific App Engine application

603 views
Skip to first unread message

Thanos Makris

unread,
Mar 12, 2013, 7:26:02 AM3/12/13
to google-a...@googlegroups.com
Hi,

We have developed an AppEngine application that serves as backend for a mobile application. We want to whitelist the URL of the application, so the mobile users would not be charged when using this application. 

However, we have the following issue. When the mobile application "hits" appname.appspot.com, the request is redirected to appspot.l.google.com and the response is sent from this URL. Thus, the users are charged for the data exchange. 

Is there any way to tackle this problem?

Thanks a lot!

Barry Hunter

unread,
Mar 12, 2013, 7:36:26 AM3/12/13
to google-appengine
Are you sure its redirected? That doesn't sound right. In fact I dont see how it can do, if it was redirected the hostname would go missing, and the hostname (containing the appname) is needed to route the request to your application (rather than the thousends of other apps runnong on appspot) 

There is a DNS CNAME, but its effectively an internal detail of how the DNS is routed. It's very common for sites to use CNAMEs to handle DNS - particully for routing requests via a CDN. It seems very odd that any whitelisting system would use an intermediate CNAME hostname for whitelisting. It should either use the original hostname (ie the hostname in the URL) or the final IP address. 

If the final IP you are out of luck, because Google uses many IPs for AppEngine. You need whitelisting on the original hostname. 



--
You received this message because you are subscribed to the Google Groups "Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-appengi...@googlegroups.com.
To post to this group, send email to google-a...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Thanos Makris

unread,
Mar 12, 2013, 11:46:11 AM3/12/13
to google-a...@googlegroups.com
Thanks a lot for your prompt reply! I will check it and see what happens. 

Jeff Schnitzer

unread,
Mar 12, 2013, 12:19:19 PM3/12/13
to Google App Engine
As an additional bit of advice, you should *never* deploy a mobile app
with a hardcoded link to *.appspot.com or any other hosting-specific
domain. Buy your own domain and set up api.yourdomain.com. That way if
you ever want to move off of GAE, you won't need to set up proxies or
try to force-upgrade all your users.

I've seen this mistake made sooo many times with appspot.com,
herokuapp.com, etc... and the app owner is always kicking themselves
later.

Jeff

Kaan Soral

unread,
Mar 12, 2013, 4:00:23 PM3/12/13
to google-a...@googlegroups.com
IMHO If you ever need to move out of GAE, you are already in deep s*, so a hardcoded mobile url would be a minor trouble  compared to your existing troubles.

But great advice anyway.

The only advantage of using *.appspot.com domain is: it has https, which is a big plus sometimes. (For example Facebook apps) Setting up SSL for a normal domain seems like a 1-2 day heavy job, considering GAE/Google Apps doesn't help.

Vinny P

unread,
Mar 12, 2013, 4:10:44 PM3/12/13
to google-a...@googlegroups.com


On Tuesday, March 12, 2013 3:00:23 PM UTC-5, Kaan Soral wrote:
IMHO If you ever need to move out of GAE, you are already in deep s*, so a hardcoded mobile url would be a minor trouble  compared to your existing troubles.

But great advice anyway.

Agreed, plus you could always set up a simple servlet to do a HTTP redirect.  

 
The only advantage of using *.appspot.com domain is: it has https, which is a big plus sometimes. (For example Facebook apps) Setting up SSL for a normal domain seems like a 1-2 day heavy job, considering GAE/Google Apps doesn't help.


SubToMe just did an interesting writeup about how they enabled SSL for their GAE app: http://blog.superfeedr.com/asset-hosting-ssl-domain/ Worth a read, especially if you want SSL.

-Vinny P

Jeff Schnitzer

unread,
Mar 12, 2013, 7:39:31 PM3/12/13
to Google App Engine
This very heavily depends on the application. Often migration involves
just moving part of the app - I've done this with one popular mobile
game, and partychapp had to do it as well.

It's worth the extra day (or whatever is needed)

Jeff
Reply all
Reply to author
Forward
0 new messages