-
-
Notifications
You must be signed in to change notification settings - Fork 528
Closed
Description
Hi, I'd like the ability to not apply all optional middleware to all sites. There are cases like ForwardAuth which will be very site specific. There is no good way to achieve this at the moment. I think this feature would add a great deal of flexibility.
Atm I can think of two ways to solve this:
- Define middlewares in the UI (name and textfield config), store them in the database, write them out to the dynamic dir, and provide a list in the resource settings (and hide the
badgerMiddlewareNamename).
- Pro: Very user friendly
- Con: More involved to implement
- Con: Error prone due to user errors
- Scan the dynamic dir for extra files (maybe with a naming convention), and provide these in a list in the resource settings (and hide the
badgerMiddlewareNamename).
- Pro: Pretty easy to implement
- Neutral: It would be a somewhat more 'advanced' hidden feature (if there are no extra middlewares, there would be nothing to select).
- Con: File detection based on naming conventions or on expected values, is a bit jank.
The new access control rules cover some of the use-cases (which look super nice btw), but can never really cover the full flexibility of traefik itself (nor should it). For our case, having this missing means I cannot migrate due to some sites special config rules.
Would be great to hear any opinions on this.
Metadata
Metadata
Assignees
Labels
No labels