haproxytech / haproxy-consul-connect

HaProxy Connector for Consul Connect. Enables Service Mesh with Consul and HaProxy using TLS and Consul Discovery
Apache License 2.0
95 stars 20 forks source link

Add `appname_header` option #41

Closed ShimmerGlass closed 4 years ago

ShimmerGlass commented 4 years ago

This option adds a header in the style of "X-Forwarded-For", but containing the app name that made the request. The information is extracted from the client certificate.

Example configuration:

{
  "service": {
    "name": "socat",
    "port": 8181,
    "connect": {
      "sidecar_service": {
        "proxy": {
          "config": {
            "appname_header": "X-App"
          }
        }
      }
    }
  }
}