Environment Headers is a middleware plugin for Traefik. With this middleware plugin you can set request and response headers to the value of an environment header. One use case for this middleware is to inject secrets into a request header which would keep the secret out of the configurations.
pilot:token: "xxxxx"experimental:plugins:environmentheader:moduleName: "github.com/nilskohrs/environmentheader"version: "v0.1.4"
http:middlewares:environmentheader-foo:environmentheader:requestHeaders:- header: X-Foo-Headerenv: SECRET_REQUEST_ENVoptional: trueresponseHeaders:- header: X-Bar-Headerenv: SECRET_RESPONSE_HEADERoptional: false