I've done this filtering the request headers like described here: https://cloud.google.com/appengine/docs/standard/go112/scheduling-jobs-with-cron-yaml#validating_cron_requests
Requests from the Cron Service will also contain a HTTP header: X-Appengine-Cron: true Giuliano Ribeiro On Wed, Aug 28, 2019 at 12:52 AM Bob Glickstein <[email protected]> wrote: > I'm using the Go 1.12 standard environment. I have some handlers for cron- > and cloudtasks-generated requests. How should these handlers ensure that > requests are coming from my GAE service account? The docs are super unclear > about this, and many are outdated (still referring to e.g. login: admin > in app.yaml.) > > Thanks in advance! > > -- > 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 view this discussion on the web visit > https://groups.google.com/d/msgid/google-appengine/360363bf-cdfd-4a1f-b036-5fdba04bd33d%40googlegroups.com > <https://groups.google.com/d/msgid/google-appengine/360363bf-cdfd-4a1f-b036-5fdba04bd33d%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- 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 view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/CAFFKEc3P14ZAeuNwWhAj1-nyeMOatu%3Dq8om6JGeqJTy-99uugA%40mail.gmail.com.
