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

Basic authentication with strong password encryption causes high latency #4791

Closed
1 of 2 tasks
micw opened this issue Apr 17, 2019 · 2 comments
Closed
1 of 2 tasks

Basic authentication with strong password encryption causes high latency #4791

micw opened this issue Apr 17, 2019 · 2 comments

Comments

@micw
Copy link

micw commented Apr 17, 2019

Do you want to request a feature or report a bug?

Bug

Did you try using a 1.7.x configuration for the version 2.0?

  • Yes
  • No

What did you do?

  • Run traefik ingress
  • Expose some service without basic auth
  • Expose the same service with basic auth and weak password encryption (e.g. bcrypt, complexity 5)
  • Expose the same service with basic auth and strong password encryption (e.g. bcrypt, complexity 11)

What did you expect to see?

  • roughly the same response time with/without basic auth

What did you see instead?

  • response without basic auth: ~20ms
  • response with basic auth (bcrypt 5): ~25ms
  • response with basic auth (bcrypt 11): ~200ms

Output of traefik version: (What version of Traefik are you using?)

1.7.10

What is your environment & configuration (arguments, toml, provider, platform, ...)?

  - args:
    - --logLevel=INFO
    - --api
    - --kubernetes
    - --kubernetes.ingressEndpoint.ip=127.0.0.1
    - --insecureskipverify
    - --entryPoints=Name:http Address::80 Redirect.EntryPoint:https
    - --entryPoints=Name:https Address::443 TLS Compress:true
    - --defaultentrypoints=http,https
    - --metrics.prometheus
@micw micw changed the title Basic authentication with kubernetes causes high latency Basic authentication with strong password encryption causes high latency Apr 17, 2019
@micw
Copy link
Author

micw commented Apr 17, 2019

Update: I identified the root cause and updated the issue title and description

@jbdoumenjou
Copy link
Member

Hi @micw,

Thank you for your interest in Traefik.

Nothing unexpected here, the complexity of the encryption increases the response time.

If you have any other questions or concerns, feel free to visit our slack channel.

@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

3 participants