andrewm4894
andrewm4894

Reputation: 1558

Serverless GCP function whitelist cloud scheduler ip

I'm wondering how to extend this GCP HTTP example to only be callable by a Google Cloud Scheduler IP address or some way to limit it to being called from inside the specific GCP project.

Maybe the easiest would be some sort of resource or network config block in the serverless.yml but just not quite sure how to go about it and could not really find an example in the examples repository.

Upvotes: 0

Views: 349

Answers (1)

andrewm4894
andrewm4894

Reputation: 1558

I actually think in this case it makes more sense for me to create a pub sub function and then use pub sub messages via the scheduler to trigger the function.

My main worry was a http endpoint that could be public. The pub sub approach side steps this altogether.

Upvotes: 1

Related Questions