V.B.
V.B.

Reputation: 69

Stomp.js secure conneciton || Rabbitmq javascript client secure connection

Is there any way to connect to rabbitmq without rabbit server username and password on javascript.

I don't wanna use this unsecure way

  var client = Stomp.overWS('ws://localhost:61614/stomp');
  client.connect(login, passcode, connectCallback);

Upvotes: 1

Views: 1508

Answers (1)

lsowen
lsowen

Reputation: 3828

At some level, the stomp connection will require a username/password. The way to secure the connection is to create a special limited RabbitMQ user with the minimum set of permissions required. You can see details of the permissions options on the RabbitMQ ACL page.

Additionally, if you don't want to pass a username/password from the stomp client, you can set a "default user" which is used with an anonymous stomp connection. See the "Default User" section of the RabbitMQ STOMP page.

However, be aware that while you aren't passing a username/password from the client, the client will still have all the permissions on the RabbitMQ broker that the "default user" has.

Upvotes: 3

Related Questions