-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Using unicode username/password for RabbitMQ agent will result in 401 unauthorised access #7176
Comments
Hi,
Because the integration simply makes http requests, could you try to run the following command:
Maybe the answer is that, the rabbitmq UI converts/escapes the unicode characters? |
Hi, my colleague just left for vacation, but this is how we added the user:
|
Hey @moodh I'm thinking you may not have granted the required permissions, can you try this curl command then? Rabbitmq should give you the reason for the 401.
|
Hi, with a unicode password all endpoints works from curl/web browser to rabbitmq, just not through the datadog integration. We tested adding encoding correctly in the integration code which made the integration work so its definitely a problem in the integration with that version combination. My colleague will be gone for a month now and he has a reproducible environment so I'm not able to test more scenarios without him. |
Hi again, took me sometime to dig into that issue but you're right non-ascii characters in the password or the username will prevent the rabbitmq integration to work correctly. Some technical details:
My understanding is that:
All in all what does it means for you is that:
|
Hi, great that you found the cause. Don't worry about fixing it soon for our sake, we simply changed the password when we realized that was the issue. :) |
Note: If you have a feature request, you should contact support so the request can be properly tracked.
Output of the info page
Additional environment details (Operating System, Cloud provider, etc):
Steps to reproduce the issue:
Describe the results you received:
Although the entered username/password are correct I see following error message in logs:
Describe the results you expected:
Since the username/password are correct, I should see no error message and auth should be successful. I checked the username/password on RabbitMQ admin page and it works.
Additional information you deem important (e.g. issue happens only occasionally):
It seems that in newer versions, datadog-agent does some kind of decodings on instance values which will cause such problems.
To be exact, I think this is the PR that decode all values and convert them to native strings: #4730
The text was updated successfully, but these errors were encountered: