This repository is inspired from the Demo plugin repository feel free to get back there for reference
The existing plugins can be browsed into the Plugin Catalog.
This plugin is intended to authorize/un-authorize requests based on a given value inside header
To install this plugin on your Traefik instance you will need to do the following steps:
-
Add static configurations inside Traefik deployment (CLI or YAML):
CLI:
--experimental.plugins.headerauthentication.modulename=github.com/omar-shrbajy-arive/headerauthentication --experimental.plugins.headerauthentication.version=v1.0.3
YAML:
experimental: plugins: headerauthentication: moduleName: "github.com/omar-shrbajy-arive/headerauthentication" version: "v1.0.3"
-
Create the middleware and call it inside your router
http: middlewares: my-headerauthentication: plugin: headerauthentication: header: key: 123test name: X-API-KEY