Skip to content

Allow to set headers from http.Request and client certificate

License

Notifications You must be signed in to change notification settings

pnxs/traefik-plugin-mtls-header

Repository files navigation

mTLS Header Plugin

Build Status Build Status

This plugin allows to set custom headers from http.Request and client certificate (if provided) using text/template.

Configuration

Example: Given a client certificate with the common name "mtls_client" the following configuration will insert this http-header: "X-Client-CN: CN=mtls_client".

testData:
  headers:
    X-Client-CN: 'CN=[[.Cert.Subject.CommonName]]'
  encodeUrl: false

About

Allow to set headers from http.Request and client certificate

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published