Serverless tip #5 — How to invoke a secured Cloud Run service locally
Requirements:
- an existing Google Cloud Platform account with a project
- you have enabled the Cloud Run service and already deployed a container image
- your local environment’s gcloud is already configured to point at your GCP project
By default, when you deploy a Cloud Run service, it is secured by default, unless you use the –allow-unauthenticated flag when using the gcloud command-line (or the appropriate checkbox on the Google Cloud Console).
But once deployed, if you want to call it locally from your development machine, for testing purpose, you’ll have to be authenticated.
Read more...