Im trying to get our project to have some basic http authentication. I can get one user to work but I need multiple users to have their own logins.
I have a secret called auth with the this data:
user1 = password_hash
user2 = password_hash2
I have done this command to see the logs of the pod:
kubectl logs nginx-ingress-controller-8lrhh -n ingress-nginx
This is the return:
I0214 23:21:47.056041 6 store.go:449] secret default/auth was updated and it is used in ingress annotations. Parsing…
E0214 23:21:47.056585 6 annotations.go:197] error reading BasicDigestAuth annotation in Ingress default/backend: the secret auth does not contain a key with value auth
W0214 23:21:47.056883 6 backend_ssl.go:46] Error obtaining X.509 certificate: secret “default/auth” contains no keypair or CA certificate
I0214 23:21:47.057941 6 controller.go:133] Configuration changes detected, backend reload required.
I0214 23:21:47.333999 6 controller.go:149] Backend successfully reloaded.
It says that i need a key with auth. Does that mean I need to put the user:hash into the key auth?
Thanks for the help in advance!