Secure Google Cloud Functions http trigger with auth

前端 未结 6 1833
小鲜肉
小鲜肉 2020-12-02 22:33

I am trying out Google Cloud Functions today following this guide: https://cloud.google.com/functions/docs/quickstart

I created a function with an HTTP trigger, and

6条回答
  •  暖寄归人
    2020-12-02 23:05

    It seems like there are currently 2 ways to secure a Google Cloud Function HTTP endpoint.

    1) Use a hard to guess function name (ex: my-function-vrf55m6f5Dvkrerytf35)

    2) Check for password/credentials/signed-request within the function itself (using a header or parameter)

    Probably best to do both.

提交回复
热议问题