Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More advanced middlewares #30

Closed
ghost opened this issue Sep 29, 2015 · 10 comments
Closed

More advanced middlewares #30

ghost opened this issue Sep 29, 2015 · 10 comments

Comments

@ghost
Copy link

ghost commented Sep 29, 2015

Hi guys,

Hope you are all well !

Here are the

  • Transform Request/Response
  • Managing templates for frontends body transformation
  • Concurrent sub-requests to nest json responses in a middleware

Cheers,

@vdemeester vdemeester added the kind/enhancement a new or improved feature. label Sep 29, 2015
@seeder
Copy link

seeder commented Oct 15, 2015

So i just tried putting traefik in front of Jenkins ... no joy, it needs some response rewriting ( in Location header for example )
Great project, makes stuff cleaner than any apache/haproxy/nginx frankensteins monsters, but needs a bit more feature oomph exposed

@emilevauge
Copy link
Member

@seeder could you give me a concrete exemple? I already have some implementation ideas, but I'm still not completely satisfied by those ones ^^

@ghost
Copy link
Author

ghost commented Oct 19, 2015

For my part, it would be great to have a rewrite module like on Vulcand (https://vulcand.io/proxy.html#rewrites-and-redirects).

My use case is to embbed Traefik inside a docker container in order to map several services:

Current use (with a file generated during the build of the container):
/service_1 going to loadbalanced ports or different front-ends
/service_2 going to one specific front-end

Wished use of Traefik:
/api/v1/service1/function1
/api/v1/service1/function2
/api/v1/service2/

@mathieu-pousse
Copy link

+1 would be very nice !

@ekozan
Copy link

ekozan commented Mar 21, 2016

@emilevauge Yop, may be can we discuss about many middlewares like auth, logs, etc ... for example I want to use the next feature of Coreos/Dex ( groups ) for make an oauth2 login on some admin applications on my k8s cluster. the real question is "How we can pass the options to the middleware"

@sandstrom sandstrom mentioned this issue May 19, 2016
@sandstrom
Copy link

Transforming request/response would be great! Ability to adjust headers (add/remove/edit) would probably go a long way.

@sybrandy
Copy link

Hello,

Not sure if this is the right place to mention this, but I recently had to fork/modify Traefik to support SSL cert forwarding to our backends, setting client certs for the backends (e.g. the backend HTTP client uses a client cert), and authorization capabilities so the users can be authenticated at the proxy. The last part was done to support a custom authorization system that's in-house, but I did create a Basic Auth version using the same interface. We're still testing it, but so far it appears to be working well. As soon as we've had things running for a while and things look good, I plan on creating some pull requests. As of right now I don't have an ETA as we want to be sure everything is working well before we release the changes.

@ldez ldez added the priority/P3 maybe label May 30, 2017
m3co-code pushed a commit to m3co-code/traefik that referenced this issue Aug 22, 2017
Also change clean script to run cwd-modifying operations inside a
sub-shell.
@fentas
Copy link

fentas commented Oct 27, 2017

Hey is there any solution for this nowadays?
I want to replace haproxy with traefik in our docker swarm infrastructure but in order to do that, I have to replace a Lua script, rerouting incoming traffic to certain docker service depending on user auth (request against a rest API) and header/URL information.

also asked on StackOverflow:
https://stackoverflow.com/questions/46980439/user-authentication-and-dynamic-routing-in-traefik

@emilevauge
Copy link
Member

Closing this one in favor of #1336

@traefik traefik locked and limited conversation to collaborators Sep 1, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

10 participants