summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Merge bug26427HEADmasterSimon MacMullen2015-01-0933-262/+1133
|\
| * Don't fail if sbin or etc existMichael Klishin2015-01-081-2/+2
| |
| * stable to defaultJean-Sebastien Pedron2015-01-0723-221/+907
| |\
| | * Merge bug26393Simon MacMullen2015-01-064-26/+63
| | |\
| | | * No need to concatenate hard-coded lists...bug26393Jean-Sebastien Pedron2014-12-102-4/+4
| | | |
| | | * Now that empty keys are dropped, we can always add ssl_* keysJean-Sebastien Pedron2014-12-101-11/+1
| | | | | | | | | | | | | | | | | | | | If the connection isn't over SSL, ssl_* keys will be empty and dropped anyway.
| | | * Filter out auth notification properties with no valueJean-Sebastien Pedron2014-12-032-2/+2
| | | |
| | | * Style fix: Use ++ to construct EventProps, not multiple temporary variablesJean-Sebastien Pedron2014-12-032-25/+17
| | | |
| | | * Pass "extra properties" to notify_auth_result/{3,4} instead of a messageJean-Sebastien Pedron2014-12-022-15/+12
| | | | | | | | | | | | | | | | | | | | This avoids to passs an empty message in the case of successful authentication.
| | | * Only include ssl/certificate informations when the connection is over SSLJean-Sebastien Pedron2014-12-021-6/+17
| | | | | | | | | | | | | | | | This gives lighter notifications for plain TCP connections.
| | | * Use list comprehension instead of lists:foldl/3Jean-Sebastien Pedron2014-12-021-8/+8
| | | | | | | | | | | | | | | | | | | | | | | | To keep a somewhat logical order in the list of user_authentication_* properties, reverse the order of the AUTH_NOTIFICATION_INFO_KEYS list. This list was previously reversed by lists:foldl/3.
| | | * Use rabbit_misc:format/2 instead of lists:flatten/1 + io_lib:format/2Jean-Sebastien Pedron2014-12-022-2/+2
| | | |
| | | * Move the info keys list added to user_authentication_* to a -define()Jean-Sebastien Pedron2014-12-021-15/+6
| | | |
| | | * Drop {refuse, _, _} from rabbit_auth_mechanism:handle_response/2 return valuesJean-Sebastien Pedron2014-11-262-7/+0
| | | |
| | | * Rephrase a comment to use the present tenseJean-Sebastien Pedron2014-11-261-1/+1
| | | |
| | | * Update rabbit_auth_mechanism:handle_response() spec to match the changeJean-Sebastien Pedron2014-11-262-3/+6
| | | |
| | | * Add more properties to the user_authentication_* notificationsJean-Sebastien Pedron2014-11-253-23/+83
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Until now, the only property was {name, Username}. The added properties are: o {connection_type, network | direct} o {error, Message} (only if the authentication failed) For network connections, the following informations are added as returned by rabbit_reader:infos/2: o auth_mechanism o host o name (the property is renamed to connection_name to avoid conflict with the username) o peer_cert_issuer o peer_cert_subject o peer_cert_validity o peer_host o peer_port o protocol o ssl o ssl_cipher o ssl_protocol o vhost The notification is sent by rabbit_reader:notify_auth_result/5 and rabbit_direct:notify_auth_result/4, not by rabbit_access_control:check_user_login/2 anymore. This fixes a bug where a "user_authentication_success" event would be sent by rabbit_access_control:check_user_login/2, even if rabbit_reader:auth_phase/2 rejects the user later because the connection isn't on the loopback interface.
| | * | stable to defaultSimon MacMullen2015-01-051-4/+55
| | |\ \
| | * \ \ stable to defaultSimon MacMullen2015-01-051-1/+0
| | |\ \ \
| | * \ \ \ stable to defaultSimon MacMullen2014-12-1222-202/+851
| | |\ \ \ \
| | | * \ \ \ stable to defaultSimon MacMullen2014-12-111-2/+13
| | | |\ \ \ \
| | | * \ \ \ \ merge bug26475 into defaultMichael Klishin2014-12-107-25/+142
| | | |\ \ \ \ \
| | | | * \ \ \ \ stable to defaultSimon MacMullen2014-12-1017-187/+507
| | | | |\ \ \ \ \
| | | | | * \ \ \ \ stable to default (Alvaro forgot)Simon MacMullen2014-12-0917-187/+507
| | | | | |\ \ \ \ \
| | | | | | * \ \ \ \ stable to defaultSimon MacMullen2014-12-0517-187/+507
| | | | | | |\ \ \ \ \
| | | | | | | * \ \ \ \ stable to defaultSimon MacMullen2014-12-0517-187/+507
| | | | | | | |\ \ \ \ \
| | | | | | | | * \ \ \ \ stable to defaultSimon MacMullen2014-11-281-4/+14
| | | | | | | | |\ \ \ \ \
| | | | | | | | * \ \ \ \ \ stable to defaultSimon MacMullen2014-11-281-15/+27
| | | | | | | | |\ \ \ \ \ \
| | | | | | | | * \ \ \ \ \ \ stable to defaultSimon MacMullen2014-11-262-0/+9
| | | | | | | | |\ \ \ \ \ \ \
| | | * | | | | | | | | | | | | Nicer feedback.bug26475Simon MacMullen2014-12-091-1/+3
| | | | | | | | | | | | | | | |
| | | * | | | | | | | | | | | | Split out preparation from rename/2, and add comments.Simon MacMullen2014-12-091-29/+77
| | | | | | | | | | | | | | | |
| | | * | | | | | | | | | | | | Various fixes / improvements: with the new scheme multiple renamings will ↵Simon MacMullen2014-12-091-32/+39
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | not waork, so check for them. Fix abortive renames (with a copy of the mnesia dir). Ensure we don't talk to any other nodes while backing up / restoring since that inevitably goes wrong. Split up rename/2 a bit and rename a few other things for more clarity.
| | | * | | | | | | | | | | | | Fail clearly if the node specified with '-n' is not a member of the cluster ↵Simon MacMullen2014-12-091-4/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | before or after.
| | | * | | | | | | | | | | | | Ensure become(node()) works rather than failing with {node_running, ...}.Simon MacMullen2014-12-091-2/+2
| | | | | | | | | | | | | | | |
| | | * | | | | | | | | | | | | WIP clustererer compatibility: install the fallback and "upgrade" mnesia at ↵Simon MacMullen2014-12-081-13/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | rename_cluster_node time, instead of during next boot. This means we need to faff around a bit making sure we do not contact other nodes during the upgrade, but also that on-disk data structures are left in a consistent state for the clusterererer to find them.
| | | * | | | | | | | | | | | | Maybe clearer?Simon MacMullen2014-12-011-1/+1
| | | | | | | | | | | | | | | |
| | | * | | | | | | | | | | | | Add a section to the manual page.Simon MacMullen2014-12-011-0/+35
| | | | | | | | | | | | | | | |
| | | * | | | | | | | | | | | | Swap location of backup and regular config files. A bit less logical, but we ↵Simon MacMullen2014-12-011-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | need them to be in the right place when starting for big-bang upgrades to work.
| | | * | | | | | | | | | | | | Put all the rename-related temp files in a directory together, and keep ↵Simon MacMullen2014-12-011-13/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | copies of the rewritten configs so we can roll back without having to re-edit them.
| | | * | | | | | | | | | | | | Allow argument-pairs to rename_cluster_node to go in any order (and thus ↵Simon MacMullen2014-12-012-23/+46
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | allow remote-only renamings). Don't use mnesia:transform_table/3 since it's rather picky about which disk nodes are up.
| | | * | | | | | | | | | | | | Rename againSimon MacMullen2014-11-281-3/+4
| | | | | | | | | | | | | | | |
| | | * | | | | | | | | | | | | And unbreak clusters.Simon MacMullen2014-11-281-0/+1
| | | | | | | | | | | | | | | |
| | | * | | | | | | | | | | | | Detect starting as the old node name after a rename and roll back. Also ↵Simon MacMullen2014-11-282-26/+44
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | rename a bit.
| | | * | | | | | | | | | | | | Less io:format, more rabbit_log.Simon MacMullen2014-11-281-7/+6
| | | | | | | | | | | | | | | |
| | | * | | | | | | | | | | | | Improve the chance of not losing a bunch of data.Simon MacMullen2014-11-281-0/+1
| | | | | | | | | | | | | | | |
| | | * | | | | | | | | | | | | OopsSimon MacMullen2014-11-281-1/+1
| | | | | | | | | | | | | | | |
| | | * | | | | | | | | | | | | Rename thingsSimon MacMullen2014-11-282-9/+8
| | | | | | | | | | | | | | | |
| | | * | | | | | | | | | | | | Remove commented out bit, remove pointless RPC (we're in the cluster by that ↵Simon MacMullen2014-11-281-47/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | point, we can make Mnesia changes ourselves).
| | | * | | | | | | | | | | | | We are presumably the source of truth now, so make sure we boot.Simon MacMullen2014-11-281-0/+1
| | | | | | | | | | | | | | | |
| | | * | | | | | | | | | | | | Support renaming other remote nodes at the same time, in case we want to do ↵Simon MacMullen2014-11-272-68/+69
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | a big bang.