Egress oauth token injection

Hi Folks

Below is our deployment topology

  • Application-1 is deployed to K8s-1 (Service Mesh- Istio)
  • Application-2 is not deployed within K8s-1. This is a legacy application. This application accepts oAuth token for authentication.

We want to achieve functionality where-in we intercept all outgoing HTTP calls (egress) from Application-1 into Application-2 and then inject Bearer token in the Authorization header.

Is it possible to intercept outgoing HTTP calls (egress) with Istio and then inject authorization header ?

@howardjohn - Any thoughts on this pls?

Also interested in this topic