Hi all,
I am successfully connecting a python script to rabbitmq , default username and password where removed (guest:guest)
import pika
rabbitmq_url = "amqp://user:password@localhost:5672"
connection_params = pika.URLParameters(rabbitmq_url)
connection = pika.BlockingConnection(connection_params)
channel = connection.channel()
print(channel)
connection.close()
Then I see in the rabbitmq logs
2022-01-11 16:03:30.741009+01:00 [info] <0.8583.0> connection <0.8583.0> (
10.3.17.1:54916 ->
10.3.17.22:5672):
user 'user' authenticated and granted access to vhost '/'
Trying to use a similar configuration in server_config.json
{
"instance_name" : "irods_rule_engine_plugin-audit_amqp-instance",
"plugin_name" : "irods_rule_engine_plugin-audit_amqp",
"plugin_specific_configuration" : {
"amqp_location" : "user:password@localhost:5672",
"amqp_options" : "",
"amqp_topic" : "audit_messages",
"pep_regex_to_match": "audit_.*"
}
}
The rabbitmq logs are as follows
2022-01-11 15:53:45.002194+01:00 [info] <0.7535.0> accepting AMQP connection <0.7535.0> (10.3.17.12:33750 -> 10.3.17.22:5672)
2022-01-11 15:53:45.225059+01:00 [erro] <0.7535.0> closing AMQP connection <0.7535.0> (10.3.17.12:33750 -> 10.3.17.22:5672):
2022-01-11 15:53:45.225059+01:00 [erro] <0.7535.0> default_user_missing
It is worth mentioning that if I create the guest:guest user in rabbitmq there is no problem anymore. However, the default user is not wanted.
Any ideas/suggestions?
Thanks in advance.
Venus