Getting Istio version from within a Pod/Container

Is there any way for a container to programmatically determine what version of Istio is running?

For example, if my container can hit an endpoint on the sidecar like

Thank you!

Are you within a container and want to get the version of the current sidecar?

We don’t have a direct /version endpoint but I think you should be able to do curl and there is an ISTIO_VERSION in there. Or you can run istioctl version (for control plane) or istioctl proxy-status (for sidecars)