In the Security section of the Using app.yaml page (https://cloud.google.com/appengine/docs/flexible/nodejs/configuring-your-app-with-app-yaml#security), the documentation mentions that the handler script property is ignored and the handler login property is only used by Go, Python, and Java. In the Securing URLs for cron section of the Scheduling Jobs with cron.yaml page (https://cloud.google.com/appengine/docs/flexible/nodejs/scheduling-jobs-with-cron-yaml#Node.js_app_yaml_Securing_URLs_for_cron), the documentation instructs the user to use the handler login property to require admin access. This would seem to be at odds with the prior page. Is this property allowed? If not, how do you secure URLs?
@jmdobry @jonparrott @JustinBeckwith any ideas?
@JustinBeckwith can give an authoritative answer.
@JustinBeckwith Friendly ping!
Yeah the docs are a little off here. The login and script properties won't do anything with node.js. Some of the features you're looking at only really make sense in the context of a runtime that's trying to be compatible with App Engine standard (like python, java, and go).
If you're trying to lock down an individual endpoint so only logged in users or admins can access a page, I'd suggest just using passportjs.
Thanks @JustinBeckwith. I'm going to close since this is a tracker for issues with our client library for the Google Cloud APIs. Feel free to continue discussing if you have any more questions @bamapookie.
Most helpful comment
@JustinBeckwith can give an authoritative answer.