Is it possible to access GCP metadata endpoint from Cloud Run instance?

  Kiến thức lập trình

I have a cloud run instance that I’m trying to use to communicate with another, secured Cloud Run instance.

The latter instance allows external traffic but can only be invoked by set service accounts.

Problem is, in order for my instance to invoke via HTTPS, it needs to send a token in the request header which I need/want to retrieve from the http://metadata endpoint, however when I attempted to do this via Cloud Run it’s automatically redirected to Https and thus the endpoint fails.

Is it possible to prevent this or access metadata from a CR instance? I’ve tried setting specify CSP rules to override but these are ignored.

Thanks in advance