Thursday, 12 September 2013

RabbitMQ Pika connection through an authenticated proxy server

RabbitMQ Pika connection through an authenticated proxy server

We are trying to establish a connection to RabbitMQ using Pika from behind
an authenticated proxy. We cannot get around this requirement because the
server is in a customer's environment.
Pika connection parameters do not seem to include proxy egress settings.
Is it possible to connect through an authenticated proxy and if so, how?
By way of example only, this is the process we need to use for running a
pip install behind their proxy:
pip install --upgrade --proxy http://user:pass@proxyAddress:proxyPort
git+ssh://git@github.com/SomeGithubUser/somerepo.git#egg=somerepo
We currently use SQS and connect through boto which does include explicit
proxy settings.
This is the current pika parameters available for setting up a connection:
parameters = pika.ConnectionParameters('rabbit-server1',
5672
'/',
credentials)
But, it feels like there should be a few more kwargs that could be passed
like:
parameters = pika.ConnectionParameters('rabbit-server1',
5672
'/',
credentials,
proxy_url="http://myproxy",
proxy_port=8080,
proxy_user="somebody",
proxy_password="mypassword")
Thanks in advance.

No comments:

Post a Comment