Skip to content

Basic authentication with strong password encryption causes high latency #4791

@micw

Description

@micw

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions