0

I've been searching on google and keep getting referred to the VPC documentation https://cloud.google.com/vpc-service-controls/docs/set-up-private-connectivity but I don't think this will solve my problem. I'm trying to limit the IP address accessing my webhook function on GCP and I need to use API gateway (Apigee isn't an option at the moment for me). Any advice would be great!

jjj831
  • 23
  • 2
  • Is API Gateway a strong requirement? – guillaume blaquiere Apr 30 '21 at 07:30
  • Well, I need something before the webhook function to stop any traffic from coming in. Putting code to whitelist within the function isn't an option either. Would using an API key work to whitelist IP addresses? I'm really new to this, thanks for responding :) – jjj831 Apr 30 '21 at 07:59
  • The question is if you can restrict traffic to your backend by IP? Like to tell API Gateway to allow only incoming connections from a certain IP? – Armando Cuevas Apr 30 '21 at 15:47

1 Answers1

2

If API Gateway isn't requirement, I propose you this solution:

guillaume blaquiere
  • 66,369
  • 2
  • 47
  • 76
  • Thanks for offering this solution! I think i'm going to try using an API key first and restrict the IP address and see where that leads me first, but it's great to have another solution to try as well :) – jjj831 Apr 30 '21 at 09:42