I want to create external authentication for Service A, which listens to traffic on port 8080
.
What I desire is to have a second container (Service B) running in the same pod as Service A, that intercepts, evaluates and (maybe) forwards the traffic going in on port 8080
"Maybe" means that Service B should filter out every request, that is not authenticated.
Service B would be injected into every service that is getting deployed in order to ensure consistent authorisation and still keep the deployment process simple.
(How) is this possible?