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

Version 2.0 Docs problem in Digest Middleware #5352

Closed
1 of 2 tasks
einali opened this issue Sep 11, 2019 · 2 comments
Closed
1 of 2 tasks

Version 2.0 Docs problem in Digest Middleware #5352

einali opened this issue Sep 11, 2019 · 2 comments

Comments

@einali
Copy link

einali commented Sep 11, 2019

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

Bug in docs

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

  • Yes
  • No

What did you do?

Just Follow version 2.0 documentations

What did you expect to see?

Digest middle ware activated and authenticate for valid users.

What did you see instead?

Authentication Error

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

v2.0.0 RC 3

I think problem is this configuration is docs in
https://docs.traefik.io/v2.0/middlewares/digestauth/

apiVersion: traefik.containo.us/v1alpha1
kind: Middleware
metadata:
  name: test-auth
spec:
  digestAuth:
    secret: authsecret

---
apiVersion: v1
kind: Secret
metadata:
  name: authsecret
  namespace: default

data:
  users: |2
    dGVzdDokYXByMSRINnVza2trVyRJZ1hMUDZld1RyU3VCa1RycUU4d2ovCnRlc3QyOiRhcHIxJGQ5
    aHI5SEJCJDRIeHdnVWlyM0hQNEVzZ2dQL1FObzAK

provided base64 is for basicAuth sample with apr as realm

echo "dGVzdDokYXByMSRINnVza2trVyRJZ1hMUDZld1RyU3VCa1RycUU4d2ovCnRlc3QyOiRhcHIxJGQ5aHI5SEJCJDRIeHdnVWlyM0hQNEVzZ2dQL1FObzAK" | base64 -d
test:$apr1$H6uskkkW$IgXLP6ewTrSuBkTrqE8wj/
test2:$apr1$d9hr9HBB$4HxwgUir3HP4EsggP/QNo0

it seams right base64 code is this

dGVzdDp0cmFlZmlrOmEyNjg4ZTAzMWVkYjRiZTZhMzc5N2YzODgyNjU1YzA1CnRlc3QyOnRyYWVmaWs6NTE4ODQ1ODAwZjllMmJmYjFmMWY3NDBlYzI0ZjA3NGUKCg==

BTW: how can i commit PR for documentations?
it seams
expected md file

is deprecated!!

@traefik traefik deleted a comment from traefiker Sep 11, 2019
@ldez ldez added area/documentation and removed kind/question a question labels Sep 11, 2019
@ldez ldez reopened this Sep 11, 2019
@ldez ldez added the kind/bug/confirmed a confirmed bug (reproducible). label Sep 11, 2019
@jbdoumenjou
Copy link
Member

Hello @einali , thanks for your interest in the project!

You can open a Pull Request following the guide or you can click the edit bouton on the basic auth middleware documentation.

@traefiker traefiker added this to the 2.0 milestone Sep 12, 2019
@traefiker
Copy link
Contributor

Closed by #5359.

@traefik traefik locked and limited conversation to collaborators Oct 13, 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

4 participants