Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to use ssl parameter #12

Open
bvenkysubbu opened this issue Jul 2, 2018 · 5 comments
Open

Unable to use ssl parameter #12

bvenkysubbu opened this issue Jul 2, 2018 · 5 comments

Comments

@bvenkysubbu
Copy link

bvenkysubbu commented Jul 2, 2018

I am unable to find a way to pass the ssl parameter using rabbitmq integration for stackstorm. I am trying to run the following command using stackstorm.

$ rabbitmqadmin --host=mustang.rmq.cloudamqp.com --port=443 --vhost=itweicph --username=itweicph --password=some-password --ssl list exchanges

How can I pass the "--ssl" flag?

@nmaludy
Copy link
Contributor

nmaludy commented Jul 2, 2018

Have you tried changing the messaging URL to use amqps://:

[messaging]
url = amqps://user:[email protected]:5672/

Reference: https://www.rabbitmq.com/uri-spec.html

@bvenkysubbu
Copy link
Author

Where can I specify this on the command line? This is what I am trying to do -

$ st2 run rabbitmq.list_exchanges host=mustang.rmq.cloudamqp.com port=443 virtual_host=itweicph username=itweicph password=some-password

Here is the result -

ERROR: 400 Client Error: Bad Request
MESSAGE: Additional properties are not allowed ('host', 'virtual_host' were unexpected) for url: http://127.0.0.1:9101/v1/executions

@nmaludy
Copy link
Contributor

nmaludy commented Jul 2, 2018

@bvenkysubbu Sorry, i didn't read this case clearly enough, i thought this was for the main StackStorm project.

It doesn't look like that action supports the SSL flag: https://github.com/StackStorm-Exchange/stackstorm-rabbitmq/blob/master/actions/list_exchanges.py

PRs are welcome!

@bvenkysubbu
Copy link
Author

Will attempt to add this feature. Thanks @nmaludy

@LindsayHill
Copy link
Contributor

The SSL parameter is only one part of it. The only parameter that list_exchanges supports today is vhost. Looks like it would be trivial to add an optional host parameter, and an SSL flag.

As a workaround, if all you want to do is use the rabbitmqadmin command, then just call that with core.local.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants