I know how to use Kuma or Istio as Service Mesh and inject one SideCar proxy into one existing SpringBoot Application or any other Application but can we inject one SpringBoot application as SideCar Proxy into another SpringBoot Application.
The context is, lets say SideCar Proxy SpringBoot application might be having basic things (i.e Authentication, Security Policy or any other type of policy etc) which might be required in main SpringBoot Service. And the same SideCar proxy application can be injected into any other application.
Question might sound little vague but I can provide more details on it if anything is not clear or confusing.
Thanks
To my knowledge, this is not possible in Kuma or any other service mesh. I believe what you are asking for is the ability to customize/replace the proxy used by the service mesh. In the case of Kuma and Istio, which use Envoy as the sidecar proxy, you would need to reimplement most of Envoy in your Springboot application.
I think you are better off trying to move the logic in your SpringBoot "sidecar" into either Kuma policies or into some gateway. Apache APISIX, for example, has support for Java plugins.