Giter Site home page Giter Site logo

Comments (11)

qiwzhang avatar qiwzhang commented on September 7, 2024

You are reporting two issues:

  1. failed to fetch JWKS: jwt public keys, the url is specified in x-google-jwks_url in openapi spec.
  2. failed to connect to Google API, e.g. Google service control API

Unless x-google-jwks_uri specified a Google API, they are two different problems; accessing Google API may require different configuration than accessing other remote endpoints.

for 1), I think your egress need to allow to access that jwks_uri.
for 2), It seems that Google service control is still not allowed. report call is rejected.

You may have to check your egress settings to allow jwks_uri and Google API.

from esp.

eshwarprasadhu avatar eshwarprasadhu commented on September 7, 2024

for 1) - I have this url https://www.googleapis.com/robot/v1/metadata/x509/<service_account> as x-google-jwks-uri in openapi spec.
for 2) - The Google Service Control API also has the domain ending with *.googleapis.com

The url 1) & 2) is translating into an IP address that is in the IP range 199.36.153.8/30
image

image

It even connects, when I do a telnet to www.googleapis.com and servicecontrol.googleapis.com apis from host VM and esp container.

image

image

Please refer the below screenshot, I have allowed egress to the same IP range in my firewall settings.

image

Not sure what is going wrong here. Please advise.

from esp.

qiwzhang avatar qiwzhang commented on September 7, 2024

Hmm, you may be using private VPC. or your GCE VM only has internal IP address. If so, you need to follow some special setup to access Google services.

I am not expert in this area. I just happened to read this doc. You may need to find some help from other Google supports.

from esp.

nareddyt avatar nareddyt commented on September 7, 2024

I'm not convinced about your IP range 199.36.153.8/30. Are you forming this based on your own observations? Here is the IP address I get from my local machine.

nareddyt-macbookpro% ping servicecontrol.googleapis.com
PING servicecontrol.googleapis.com (172.217.0.42): 56 data bytes

As Wayne said, this seems to be out of scope for us, we are not experts in this.

from esp.

eshwarprasadhu avatar eshwarprasadhu commented on September 7, 2024

@nareddyt It's as per gcp documentation. Please refer this link Private Google Access

from esp.

eshwarprasadhu avatar eshwarprasadhu commented on September 7, 2024

@qiwzhang Yes, We are using private VPC and we don't use external address for our GCE VM.

from esp.

eshwarprasadhu avatar eshwarprasadhu commented on September 7, 2024

@qiwzhang It looks like a bug in connectivity between google service apis managing the endpoints. Please direct to the support team who can help in this regard

from esp.

qiwzhang avatar qiwzhang commented on September 7, 2024

Could you post your evidence here so that I can create a external bug for you? Or you can create a bug for GCP youself?

from esp.

eshwarprasadhu avatar eshwarprasadhu commented on September 7, 2024

I filed a bug for GCP Cloud APIs. Link for your reference https://issuetracker.google.com/issues/169349072

from esp.

eshwarprasadhu avatar eshwarprasadhu commented on September 7, 2024

The problem got resolved by overriding ESP container's default DNS Resolver (8.8.8.8) with the correct DNS Resolver

from esp.

qiwzhang avatar qiwzhang commented on September 7, 2024

That make sense. For a GCE with private IP, it has to use GCP metadata server as DNS resolver.

from esp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    šŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. šŸ“ŠšŸ“ˆšŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ā¤ļø Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.