bschmitt / laravel-amqp

AMQP wrapper for Laravel and Lumen to publish and consume messages
MIT License
270 stars 86 forks source link

Doesn't allow to use an existing exchange with just write permissions. #37

Open rajashreem opened 6 years ago

rajashreem commented 6 years ago

The way the code is written, it always tries to declare an exchange. And that requires the configure permissions on the exchange resource from the user part. If the user has just write permissions and just wants to publish to that exchange, it raises an exception of access refused. Something that is not expected.

Php amqplib basic_publish allows users to publish messages to given exchange with just write permissions.