Commit Graph

184 Commits

Author SHA1 Message Date
Carl Hörberg c1a8d8004c rabbitmqadmin: only load load_cert_chain if key file is provided
will throw an exception otherwise
2017-02-15 11:37:12 +03:00
Carl Hörberg 6a1cc1812d rabbitmqadmin: set http ssl purpose to SERVER_AUTH
CLIENT_AUTH is for server to verify client certificates:
https://docs.python.org/2.7/library/ssl.html#ssl.Purpose.CLIENT_AUTH
2017-02-15 11:37:01 +03:00
Carl Hörberg 73d7957fa2 rabbitmqadmin: only load load_cert_chain if key file is provided
will throw an exception otherwise
2017-02-14 23:46:19 +01:00
Carl Hörberg 02372cd444 rabbitmqadmin: set http ssl purpose to SERVER_AUTH
CLIENT_AUTH is for server to verify client certificates:
https://docs.python.org/2.7/library/ssl.html#ssl.Purpose.CLIENT_AUTH
2017-02-14 23:37:15 +01:00
Michael Klishin 22d494463f Merge branch 'stable' 2017-02-07 16:33:44 +03:00
Gabriele Santomaggio 95308282d5 Change str to maybe_utf8,
Fixes https://github.com/rabbitmq/rabbitmq-management/issues/343
2017-02-07 10:22:54 +01:00
Michael Klishin 3bf0f02306 Switch operator policies and vhost limit endpoints to use dashes
Like we already do with aliveness-check and a few other things.
These endpoints are new in 3.7.0/master and we should unify them while
we can.

Per suggestion from @acogoluegnes.

References rabbitmq/rabbitmq-server#500, rabbitmq/rabbitmq-server#501,
rabbitmq/rabbitmq-server#930.
2017-01-03 18:58:18 +08:00
Daniil Fedotov d5b0d7a267 Manage vhost limits using rabbitmqadmin 2016-10-06 18:19:14 +01:00
Michael Klishin fb7550c3b5 Finish support for operator policies in HTTP API and rabbitmqadmin 2016-09-01 18:13:42 +03:00
Michael Klishin fd36bb8e01 Merge branch 'stable' 2016-06-13 15:01:45 +03:00
Michael Klishin da6903f160 Emit a warning on Python < 2.7.9 is used w/ HTTPS 2016-06-13 14:56:09 +03:00
Michael Klishin a40fceabbb Mention 2.7.9 in this message 2016-06-13 14:52:31 +03:00
Michael Klishin e9e5007bad Partially re-enable `rabbitmqadmin` HTTPS support for Python < 2.7.9
Prior to 2.7.9, Python didn't have a proper SSLContext and TLS
configurability of libraries such as httplib was limited to say the
least. To add insult to injury, said Python 2.x versions have SSLv3
enabled while RabbitMQ TCP listeners disable it in modern versions.

See the comments in https://github.com/rabbitmq/rabbitmq-management/issues/225 for more
information.

This can be worked around by switching to urllib2 but it's too risky
a change for 3.6.x in my opinion:
http://anotherlayer.net/2014/10/16/forcing-tls1-in-pythons-urllib2-on-osx/

Fixes #225 (to the extent we are willing to do this in 3.6.x and given
our team resources available).
2016-06-13 14:40:34 +03:00
Gabriele Santomaggio 3b9ac547ad Modified ACK modes in "Get messages"
Issue #68
[#118655225]
2016-05-09 13:47:38 +01:00
Michael Klishin 731c123e75 Allow user to disable peer hostname verification
New command line argument (ssl-disable-hostname-verification) turns off
peer hostname verification which is on by default.

Fixes #151,#152

Credit: Ross Jones.
2016-03-18 12:08:21 +00:00
Michael Klishin 5a8cbdb0e4 Allows user to specify a CA certificate that we will treat as trusted
New command line argument (ssl-ca-cert-file) to specify the location of a CA cert that is then treated as trusted.

Peer certificate is now required, and SSLv3 is disabled.

Fixes #149 by no longer using the HTTPSConnection deprecated constructor.

References #151, #152.

Credits: Ross Jones.
2016-03-18 11:49:52 +00:00
Michael Klishin 711d5ad1e3 Merge branch 'stable' into rabbitmq-management-65 2016-02-17 07:18:29 +03:00
Michael Klishin 0c654e2a4a base_uri => path_prefix, references #130 2016-02-16 12:07:33 +03:00
Thierno IB. BARRY a71f2512b5 add base_uri option for the management API in 3.6.x release
Add this option in 3.6.x release
2016-02-16 09:59:28 +01:00
Diana Corbacho 8ba0e077df Export/import config on virtual host level
Use:
./bin/rabbitmqadmin export rabbit.conf --vhost <vhost>
./bin/rabbitmqadmin import rabbit.conf --vhost <vhost>
2016-02-15 11:49:30 +00:00
Michael Klishin 890c94e0a3 Update (c) info 2016-01-01 12:59:18 +03:00
Diana Corbacho 08773e3045 Convert string to boolean in SSL config 2015-10-12 11:22:12 +01:00
Michael Klishin e439844d61 (c) year 2015-05-24 04:17:41 +03:00
Simon MacMullen f4c5d854cc Fix compatibility with Python 2 2015-02-25 17:59:25 +00:00
Simon MacMullen 716c8bd02c Infrastructure to run tests under both python 2 and 3 2015-02-25 17:23:46 +00:00
Simon MacMullen df1131b1dc Port to Python 3, at the cost of breaking Python 2 compatibility.
Really, we need to support both.
2015-02-25 16:45:47 +00:00
Simon MacMullen e874d01520 Slightly cleaner(?) and don't limit columns if output is JSON. 2014-10-13 16:40:04 +01:00
Simon MacMullen 5642b1f2ce Default to limiting columns in list views (and "show overview") to make initial use less overwhelming. 2014-09-25 14:54:54 +01:00
Simon MacMullen a8c5a95ff2 Damn it, Python. 2014-08-22 13:24:46 +01:00
Simon MacMullen ced4155cdc Support publishing with properties. 2014-08-22 12:58:00 +01:00
Simon MacMullen 09d29207d7 Merge in default, remove all web UI changes. 2014-05-01 12:14:48 +01:00
Simon MacMullen 63431eaf1f Update copyright for 2014 2014-03-17 17:25:22 +00:00
Simon MacMullen ff6072d2fc Cope if HOME is not set. 2013-12-10 14:50:18 +00:00
Simon MacMullen 430a1a2ca6 Trailing whitespace 2013-10-09 13:55:56 +01:00
Tim Watson 0fa8bd5983 Strip unused function 2013-10-09 12:25:46 +01:00
Tim Watson 652ca62768 Catch specific exception and assert explicit --config is present 2013-10-09 12:24:03 +01:00
Tim Watson d8c9cfa879 de-couple option setting from exception handling 2013-10-09 11:52:40 +01:00
Tim Watson 7240eac9b0 Improve command line option handling - submitted by Simon Lundström
Change the order in which configuration is loaded and defaults are
applied.
2013-10-08 12:40:08 +01:00
Emile Joubert 56d35b2732 Merged bug25572 into default 2013-08-13 16:15:31 +01:00
Emile Joubert af2c02b3b5 Merged stable into default 2013-07-31 13:57:30 +01:00
Simon MacMullen 00dece0a0c s/VMware/GoPivotal/g 2013-07-01 10:49:13 +01:00
Simon MacMullen 629880faef Most of policy apply-to. 2013-06-24 16:59:36 +01:00
Simon MacMullen 71aadeb9e4 Allow enabling / disabling tracing via the HTTP API. 2013-06-24 11:54:04 +01:00
Simon MacMullen a04c634337 stable to default 2013-01-24 13:15:53 +00:00
Emile Joubert 44a82d0d90 Update copyright 2013 2013-01-23 11:51:55 +00:00
Simon MacMullen b96029201b Also while we're there, let's make destination_type default to queue, since that's the common case. 2013-01-18 11:12:39 +00:00
Simon MacMullen 1f1af27ff9 Allow specifying arguments for exchanges, queues and bindings. While we are there, make routing_key optional, since, umm, it is. 2013-01-18 10:56:13 +00:00
Simon MacMullen 27fd85c95d stable to default 2013-01-17 17:40:25 +00:00
Simon MacMullen cec79d63b1 At the cost of some duplication, remove requirement for extglob. I love languages which have bits that can be turned off for you. 2013-01-17 17:39:46 +00:00
Simon MacMullen 29ee3a48ea stable to default 2013-01-16 17:57:13 +00:00
Simon MacMullen b6fccba83e Give a sensible error message if the user enters broken JSON (or more likely, the shell eats it for them). 2013-01-16 17:45:37 +00:00
Simon MacMullen de6137a98a rabbitmqadmin --version 2013-01-11 14:54:46 +00:00
Simon MacMullen 23e0a909b7 Make "rabbitmqadmin help" do the same as "rabbitmqadmin --help". 2012-11-06 14:44:45 +00:00
Simon MacMullen 8c9d66a9bb And add those to bash completion that nobody but me uses ;-) 2012-11-06 14:12:52 +00:00
Simon MacMullen 875c718ffd Sorting support 2012-11-06 14:11:46 +00:00
Emile Joubert aafdec6241 Merged bug25149 into default 2012-11-05 12:27:28 +00:00
Simon MacMullen 9b3db9067f Rename "key" to "name" one more time, unmandatorise vhost since it's magic in rabbitmqadmin anyway, add some bleedin' tests. 2012-11-02 12:58:19 +00:00
Simon MacMullen d30c260833 Support redirects. Batteries included? Don't think so. 2012-10-31 14:15:57 +00:00
Simon MacMullen dd05374bc1 s/55672/15672/g 2012-10-30 18:10:22 +00:00
Simon MacMullen 809e29e50a Explain why priority is considered 'json'. Also make vhost not mandatory, we default to '/' everywhere else. 2012-10-17 12:27:42 +01:00
Simon MacMullen 4ae5ddd493 Handle things we know to be specially JSON in listing as well as declaring. This behaves much more intuitively. 2012-10-17 12:24:17 +01:00
Emile Joubert 6a2f867337 Further policy updates 2012-10-10 17:13:22 +01:00
Simon MacMullen 92521ab2b3 Detect python < 2.6 and bail. This requires some changes so that the script will at least parse (but not run) with older python (tested with 2.4 as that seems to be the oldest version in common use; thanks RHEL5). 2012-06-06 12:14:08 +01:00
Simon MacMullen f8bcd8fe55 Oops 2012-04-19 16:16:25 +01:00
Simon MacMullen f305cde0fb Allow setting and clearing parameters in rabbitmqadmin 2012-04-19 16:03:24 +01:00
Simon MacMullen 6b82f81005 List runtime parameters in mgmt. 2012-03-26 18:27:07 +01:00
Simon MacMullen 2f306d8d68 Merge bug24736 (again again) 2012-02-22 13:26:23 +00:00
Simon MacMullen f7f9ccb80a Ignore --vhost parameter for things that don't live in vhosts. 2012-02-22 13:25:43 +00:00
Simon MacMullen 5f5b625a33 In fact rename this, I think this makes the intent clearer. 2012-02-22 13:12:25 +00:00
Simon MacMullen 14fdc6756b Better doc 2012-02-22 13:11:42 +00:00
Simon MacMullen 2970a3e071 default_vhost from Massimo. 2012-02-22 13:08:54 +00:00
Simon MacMullen c786021bc1 Fix a bug found by the tests! TSV output should not have trailing tabs on each line. 2012-02-21 15:37:52 +00:00
Simon MacMullen 63b113e39c Fix a bug found by the tests! rabbitmqadmin declare permission expects a vhost= argument, not a --vhost one. 2012-02-21 15:37:28 +00:00
Simon MacMullen 0213a92a55 Default node when using config file. 2012-02-20 11:49:33 +00:00
Simon MacMullen 969afd80d9 Should have a \n here... 2012-02-17 13:08:49 +00:00
Simon MacMullen 62330fc443 Rejig help slightly 2012-02-13 15:41:21 +00:00
Simon MacMullen 68a6bfd6f5 Oops 2012-02-13 14:44:09 +00:00
Simon MacMullen f5c49c0e3a Help was getting a bit overwhelming, split it up now 2012-02-13 14:42:35 +00:00
Simon MacMullen a625151488 Cosmetic, and fix display of defaults. 2012-02-13 13:58:43 +00:00
Simon MacMullen 03ab92619d Better error handling 2012-02-13 13:03:49 +00:00
Simon MacMullen 8e5fcbb884 Across-port commit d7bcc763833358ae77060610cf0aae18c3ac9457 from Massimo's github. 2012-02-13 12:52:41 +00:00
Simon MacMullen 421573955a Massimo Paladin's patch to introduce a configuration file, rebased against default. 2012-02-09 14:35:38 +00:00
Emile Joubert 08f557cb59 Update copyright 2012 2012-02-02 13:24:33 +00:00
Simon MacMullen 12ecd233d9 Fix breaks to publish and get introduced in 2ff8ff3089c4. 2012-01-16 11:43:34 +00:00
Simon MacMullen a5c5b2b134 Merge bug24672 2012-01-12 13:08:11 +00:00
Simon MacMullen 7cd0181c1d Allow specifying node on queue.declare. 2012-01-12 13:06:42 +00:00
Emile Joubert af66b0e5d4 Merged bug24656 into default 2012-01-09 12:41:41 +00:00
Simon MacMullen 3d3fe70f74 Handle array info items somewhat, by attempting to merge them down to a string. We do this by one of two methods: if we have an array of unicode strings then we concatenate with spaces (this makes slave node arrays look nice). For anything else we reserialise back to JSON (not great, but what else are you going to do?) 2012-01-04 15:15:54 +00:00
Simon MacMullen 9079e4f20f Add encoding field. 2012-01-04 14:45:01 +00:00
Simon MacMullen 1c2e9bbe2f They are definitions, not a schema. 2011-10-13 16:32:55 +01:00
Simon MacMullen 504eb4cc90 It's a schema, not a configuration. 2011-10-05 17:58:22 +01:00
Alexandru Scvortov 41157c8e5c update rabbitmqadmin copyright header 2011-08-01 12:17:31 +01:00
Simon MacMullen 862f72e27c Support tags in rabbitmqadmin, such as it is. 2011-06-09 15:12:02 +01:00
Simon MacMullen 84e11d2ef7 Merge in default 2011-05-16 15:31:06 +01:00
Emile Joubert 4165e86742 Merged bug24082 into default 2011-05-13 11:43:16 +01:00
Simon MacMullen c98a80b4d5 bash-complete the short forms of arguments. 2011-05-10 11:22:06 +01:00
Simon MacMullen 216b4befe8 Join column names with ".", "_" makes hardly any sense. 2011-05-09 16:08:55 +01:00
Simon MacMullen 6587647e76 Send requested columns to server 2011-05-09 16:08:24 +01:00
Emile Joubert a168ae5acd Merged bug23373 into default 2011-03-17 09:56:21 +00:00
Simon MacMullen 5baded2e05 die() should do the same as output(). 2011-03-15 10:39:21 +00:00