Tracing connection has credentials hardcoded to "guest" #1
Comments
You can configure permissions on the |
If you can tell what specifically you had to do to see the crash report posted, we may be able to come up with a better way to report such issues. |
The line in the report is {ok, Conn} = amqp_connection:start(
#amqp_params_direct{virtual_host = VHost}), which suggests that we indeed have hardcoded credentials. |
If the guest users exists any user with the proper permission can create traces in the admin section. If the guest user does not exist you get a message in the management panel "Something went wrong trying to start the trace - check the logs.". I checked the logs to find that error message |
Could you at least improve the error message? This bug is most surprising in real world setups where guest access is disabled. You end up spending time debugging the tracing plugin instead of using the tracing plugin to debug a real issue. |
@rbu the right thing to do here is to make the credentials configurable. |
Yes, of course. But since nobody seems to care about that (including myself, I resorted to other debugging mechanisms), I was thinking at least putting a big warning there might help. It's probably the one bug that most every first-time user of this plugin will see before they abandon it. |
FYI: Just got stumped by this as well. Now I'm also debugging via printf again. |
I wouldn't say "nobody cares about that": I'll add credential configuration for |
I doubt that tracing was originally designed to be used in production environments but fair enough. |
Please consider that many people like to have their development environment as similar to the production environment as possible to minimize conflicts because of different versions (or any other difference). This means that the guest user is also disabled on production systems setup like this. |
Going to try squeezing this into |
I have installed RabbitMQ 3.6.0 on Linux CentOS server and try to create a trace file over a new virtual host that is not under permission of the Guest user from the management plugin remotely. Unfortunately, I encounter a same problem like this. |
@mohaFazel credentials used by this plugin can be configured using |
Using any other user with the same permissions as guests results in
The text was updated successfully, but these errors were encountered: