Bunny and Amazon MQ Service

496 views
Skip to first unread message

Chad Upton

unread,
Jan 30, 2018, 3:38:07 PM1/30/18
to Ruby RabbitMQ libraries
Was just curious if anyone has tested bunny with Amazon's new MQ service that supports AMQP specifically.

Setting up a new broker the connection string looks something like:

amqp+ssl://b-75ab6a3e-7c84-4ee7-acea-ddeb5cbcf0c1-1.mq.us-east-1.amazonaws.com:5671 <-- this is how Amazon provides it to you.

This has a couple weird issues:
  1. You aren't given a user to auth with by default
  2. You aren't given any certificates to do name verification with
  3. Bunny or how we are using it seems to explode when pointing at it.

We tried our existing implementation on top of bunny and it through this message:

```
[2018-01-30T20:11:01.549623 #6949]  WARN -- #<Bunny::Session:0x5638674ad030 @b-75ab6a3e-7c84-4ee7-acea-ddeb5cbcf0c1-1.mq.us-east-1.amazonaws.com:5671, vhost=, addresses=[b-75ab6a3e-7c84-4ee7-acea-ddeb5cbcf0c1-1.mq.us-east-1.amazonaws.com:5671]>: 

Using TLS but peer hostname verification is disabled. This is convenient for local development but prone to man-in-the-middle attacks. Please set verify_peer: true in production!
Using TLS but no client certificate is provided! If RabbitMQ is configured to verify peer certificate, connection upgrade will fail!

{"message":"Must be one of [:method, :headers, :body, :heartbeat] {"message":"Must be one of [:method, :headers, :body, :heartbeat]\n[\"/home/rails/rails_app/current/vendor/bundle/ruby/2.2.0/gems/amq-protocol-2.3.0/lib/amq/protocol/frame.rb:64:in `decode_header'\", \"/home/rails/rails_app/current/vendor/bundle/ruby/2.2.0/gems/bunny-2.9.1/lib/bunny/transport.rb:237:in `read_next_frame'\", \"/home/rails/rails_app/current/vendor/bundle/ruby/2.2.0/gems/bunny-2.9.1/lib/bunny/session.rb:1127:in `init_connection'\", ................. etc }
```

Michael Klishin

unread,
Jan 30, 2018, 3:40:12 PM1/30/18
to ruby...@googlegroups.com
I’m pretty sure it supports AMQP 1.0, which, despite the name, is a completely different protocol.
--
Bunny: http://rubybunny.info
March Hare: http://rubymarchhare.info
 
IRC: #rabbitmq on irc.freenode.net
 
Post to the group: ruby...@googlegroups.com | unsubscribe: ruby-amqp+unsubscribe@googlegroups.com
---
You received this message because you are subscribed to the Google Groups "Ruby RabbitMQ libraries" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ruby-amqp+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--
Staff Software Engineer, Pivotal/RabbitMQ
Reply all
Reply to author
Forward
0 new messages