Skip to content

A traefik plugin that causes a random delay on authentication failures

Notifications You must be signed in to change notification settings

colearendt/traefik-plugin-auth-delay

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Traefik Plugin: Auth Delay

A traefik plugin to add a random delay to failed authentication requests based on status code.

Makes password stuffing and brute force attacks harder for all services using this plugin / middleware by inserting a random delay before the failed response is returned. With a random delay, such attacks will take longer... long enough that the attacker will either grow old or move along to someone else who doesn't like traefik plugins as much as we do!

But what if they just parallelize their requests!? Well then the rate limiter will get them 😉 Traefik comes with one of those out of the box (although the InFlightReqs middleware could be useful here too).

Example Configuration

TODO

What is a Traefik Plugin

TL;DR; A Traefik plugin is a custom middleware for Traefik.

More on Traefik plugins is written here.

I also wrote an init container that simplifies using "local" plugins (i.e. plugins without Traefik Pilot) inside of Kubernetes.

Thanks

Inspired by and much boilerplate from traefik-plugin-rewrite-headers, which is a fantastically useful Traefik Plugin.

About

A traefik plugin that causes a random delay on authentication failures

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages