Hey Mateusz,

Yes, this header will be stripped if present from an external source. I've 
just verified this now. It must be a "slip of the pen" that the docs don't 
mention this explicitly. I'll make sure that we get that updated.

Cheers,

Nick
Cloud Platform Community Support

On Wednesday, January 4, 2017 at 5:36:07 PM UTC-5, Mateusz Haligowski wrote:
>
> That sound like a great idea, but does AppEngine guarantees that there is 
> no way to spoof the header? I can always just make a curl request with the 
> header set, and the project id is also a part of the URL, isn't it?
>
> W dniu środa, 4 stycznia 2017 13:06:01 UTC-8 użytkownik Evan Jones napisał:
>>
>> You can check the X-Appengine-Inbound-Appid header on requests coming it 
>> to your service. On App Engine, it will be set by Google, so you can trust 
>> it. Check that it matches the project(s) you expect, and return some HTTP 
>> error if it doesn't match. See:
>>
>> https://cloud.google.com/appengine/docs/go/appidentity/
>>
>>
>>
>> On Wednesday, January 4, 2017 at 2:39:13 PM UTC-5, Mateusz Haligowski 
>> wrote:
>>>
>>> Hi google-appengine,
>>> I started playing with GAE a couple of weeks ago and absolutely love it. 
>>> I created a bunch of REST services with Go and deployed them to GAE. I've 
>>> also created a webapp that talks to my backend services.
>>>
>>> Now, I want to handle the user authentication with Auth0 on the webapp 
>>> side, and came to realization that my backend services are publicly 
>>> available. My question is: what is the approach to secure them? Is there 
>>> any way to tell GAE "Accept only http(s) calling from other GAE services?".
>>>
>>> Thanks,
>>> Mateusz
>>>
>>

-- 
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/e562cc8a-d146-4df1-8afe-dd45b8c9154e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to