-
Notifications
You must be signed in to change notification settings - Fork 78
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
BUG: userlist is not populating users slice causing "no configured users" error #359
Comments
Hi, thank you for reporting this issue, we'll take a look and get back to you. |
Can you share how you run your dataplaneapi (command line options) and |
Dataplane Command
Dataplane YAML
Note: It looks like it doesn't matter if you are specifying cmdline variables, if you don't have a yaml file in Haproxy ConfigConfig location:
I see no differences in the response whether it's in |
Hey folks,
When running
curl -X GET --user admin:admin http://localhost:55555/v3/info
against the dataplane api setup to point to an haproxy config that has a user setup to beadmin
using the standard userlist setup as per the documentation the following is returned:{"code":401,"message":"no configured users"}
Looking at the code there are two places that this happens both in users.go here and here
This appears to indicate that there are no users in the users slice but if that were the case then I believe this check here would fail.
Consequently, I think there's some mishap where the users list that is grabbed by the endpoint isn't the same initialized one as in the file above?
The text was updated successfully, but these errors were encountered: