I am trying to set up access for Rapid API to my API deployed using Google Cloud Run.
Found article on how to control access: https://rapidapi.com/blog/add-authentication-and-billing-for-your-api-on-google-cloud-platform-tutorial/ The idea is clear, but repeating the steps above does not solve the problem.
I made a firewall rule in the default vpc network and added all the ip addresses specified in this article, but when try to contact to my gcp endpoint, I still get an restricted access error with a status code of 403.
I also tried to invoke container run from my server with static ip after adding it too but got same error message forbidden 403
, so the problem seem to be exactly with firewall setup for ingress traffic.
In google cloud, for my cloud run container i specified option
Allow internal traffic and traffic from Cloud Load Balancing
for Ingress
traffic, and for Authentication
- Allow unauthenticated invocations
.