Venkat Srinivasan
Venkat Srinivasan

Reputation: 545

How can I disable http access to a GCP Cloud function

A GCP cloud function that takes a HTTP trigger can be accessed via http and https transports. Is there a way to disable the http endpoint?

Upvotes: 2

Views: 880

Answers (1)

Nahuel Varela
Nahuel Varela

Reputation: 1040

Right now there is no functionality to achieve this from the start.

What you could do, is to redirect any incoming request from HTTP to HTTPS from inside the function. I don't know in which language you are working with but there is a good discussion on this SO post.

Upvotes: 1

Related Questions