{"action":"created","comment":{"url":"https://api.github.com/repos/rabbitmq/rabbitmq-website/pulls/comments/92400970","pull_request_review_id":12914705,"id":92400970,"diff_hunk":"@@ -189,8 +189,36 @@ Note that:\n * The authenticated user must exist in the configured authentication / authorisation backend(s).\n * Clients **must not** supply username and password.\n \n+You can optionally specify a virtual host for a client certificate by using the `mqtt_default_vhosts`\n+[global runtime parameter](/parameters.html). The value of this global parameter must contain a JSON document that\n+maps certificates' subject's Distinguished Name to their target virtual host. Let's see how to\n+map 2 certificates, `O=client,CN=guest` and `O=client,CN=rabbit`, to the `vhost1` and `vhost2`\n+virtual hosts, respectively.\n \n+Global parameters can be set up with `rabbitmqctl`:\n \n+    rabbitmqctl set_global_parameter mqtt_default_vhosts \\\n+        '{\"O=client,CN=guest\": \"vhost1\", \"O=client,CN=rabbit\": \"vhost2\"}'\n+\n+With `rabbitmqctl`, on Windows:\n+\n+    rabbitmqctl set_global_parameter mqtt_default_vhosts ^\n+        \"{\"\"O=client,CN=guest\"\": \"\"vhost1\"\", \"\"O=client,CN=rabbit\"\": \"\"vhost2\"\"}'\n+\n+And with the HTTP API:\n+\n+    PUT /api/global-parameters/mqtt_default_vhosts\n+    {\"value\": {\"O=client,CN=guest\": \"vhost1\", \"O=client,CN=rabbit\": \"vhost2\"}}\n+\n+Note that:\n+\n+* If the virtual host for a certificate cannot be found (because the certificate\n+subject's DN cannot be found in the `mqtt_default_vhosts` global parameter JSON\n+document or if the global parameter isn't set at all), the virtual host specified\n+by the `vhost` option will be used.","path":"site/mqtt.md","position":30,"original_position":30,"commit_id":"92bfb9697d5c38fa6bfff2d9a8066f2d82a27c89","original_commit_id":"92bfb9697d5c38fa6bfff2d9a8066f2d82a27c89","user":{"login":"michaelklishin","id":1090,"avatar_url":"https://avatars.githubusercontent.com/u/1090?v=3","gravatar_id":"","url":"https://api.github.com/users/michaelklishin","html_url":"https://github.com/michaelklishin","followers_url":"https://api.github.com/users/michaelklishin/followers","following_url":"https://api.github.com/users/michaelklishin/following{/other_user}","gists_url":"https://api.github.com/users/michaelklishin/gists{/gist_id}","starred_url":"https://api.github.com/users/michaelklishin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michaelklishin/subscriptions","organizations_url":"https://api.github.com/users/michaelklishin/orgs","repos_url":"https://api.github.com/users/michaelklishin/repos","events_url":"https://api.github.com/users/michaelklishin/events{/privacy}","received_events_url":"https://api.github.com/users/michaelklishin/received_events","type":"User","site_admin":false},"body":"\"plugin config option\"","created_at":"2016-12-14T14:18:39Z","updated_at":"2016-12-14T14:18:39Z","html_url":"https://github.com/rabbitmq/rabbitmq-website/pull/310#discussion_r92400970","pull_request_url":"https://api.github.com/repos/rabbitmq/rabbitmq-website/pulls/310","_links":{"self":{"href":"https://api.github.com/repos/rabbitmq/rabbitmq-website/pulls/comments/92400970"},"html":{"href":"https://github.com/rabbitmq/rabbitmq-website/pull/310#discussion_r92400970"},"pull_request":{"href":"https://api.github.com/repos/rabbitmq/rabbitmq-website/pulls/310"}}},"pull_request":{"url":"https://api.github.com/repos/rabbitmq/rabbitmq-website/pulls/310","id":97957587,"html_url":"https://github.com/rabbitmq/rabbitmq-website/pull/310","diff_url":"https://github.com/rabbitmq/rabbitmq-website/pull/310.diff","patch_url":"https://github.com/rabbitmq/rabbitmq-website/pull/310.patch","issue_url":"https://api.github.com/repos/rabbitmq/rabbitmq-website/issues/310","number":310,"state":"open","locked":false,"title":"DO NOT MERGE Document MQTT cert/vhost mapping","user":{"login":"acogoluegnes","id":514737,"avatar_url":"https://avatars.githubusercontent.com/u/514737?v=3","gravatar_id":"","url":"https://api.github.com/users/acogoluegnes","html_url":"https://github.com/acogoluegnes","followers_url":"https://api.github.com/users/acogoluegnes/followers","following_url":"https://api.github.com/users/acogoluegnes/following{/other_user}","gists_url":"https://api.github.com/users/acogoluegnes/gists{/gist_id}","starred_url":"https://api.github.com/users/acogoluegnes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/acogoluegnes/subscriptions","organizations_url":"https://api.github.com/users/acogoluegnes/orgs","repos_url":"https://api.github.com/users/acogoluegnes/repos","events_url":"https://api.github.com/users/acogoluegnes/events{/privacy}","received_events_url":"https://api.github.com/users/acogoluegnes/received_events","type":"User","site_admin":false},"body":"Part of rabbitmq/rabbitmq-mqtt#73","created_at":"2016-12-14T14:03:08Z","updated_at":"2016-12-14T14:18:39Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f6bf74f2895b7a9fc491e9974eb8c387cb96b64d","assignee":{"login":"michaelklishin","id":1090,"avatar_url":"https://avatars.githubusercontent.com/u/1090?v=3","gravatar_id":"","url":"https://api.github.com/users/michaelklishin","html_url":"https://github.com/michaelklishin","followers_url":"https://api.github.com/users/michaelklishin/followers","following_url":"https://api.github.com/users/michaelklishin/following{/other_user}","gists_url":"https://api.github.com/users/michaelklishin/gists{/gist_id}","starred_url":"https://api.github.com/users/michaelklishin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michaelklishin/subscriptions","organizations_url":"https://api.github.com/users/michaelklishin/orgs","repos_url":"https://api.github.com/users/michaelklishin/repos","events_url":"https://api.github.com/users/michaelklishin/events{/privacy}","received_events_url":"https://api.github.com/users/michaelklishin/received_events","type":"User","site_admin":false},"assignees":[{"login":"michaelklishin","id":1090,"avatar_url":"https://avatars.githubusercontent.com/u/1090?v=3","gravatar_id":"","url":"https://api.github.com/users/michaelklishin","html_url":"https://github.com/michaelklishin","followers_url":"https://api.github.com/users/michaelklishin/followers","following_url":"https://api.github.com/users/michaelklishin/following{/other_user}","gists_url":"https://api.github.com/users/michaelklishin/gists{/gist_id}","starred_url":"https://api.github.com/users/michaelklishin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michaelklishin/subscriptions","organizations_url":"https://api.github.com/users/michaelklishin/orgs","repos_url":"https://api.github.com/users/michaelklishin/repos","events_url":"https://api.github.com/users/michaelklishin/events{/privacy}","received_events_url":"https://api.github.com/users/michaelklishin/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/rabbitmq/rabbitmq-website/pulls/310/commits","review_comments_url":"https://api.github.com/repos/rabbitmq/rabbitmq-website/pulls/310/comments","review_comment_url":"https://api.github.com/repos/rabbitmq/rabbitmq-website/pulls/comments{/number}","comments_url":"https://api.github.com/repos/rabbitmq/rabbitmq-website/issues/310/comments","statuses_url":"https://api.github.com/repos/rabbitmq/rabbitmq-website/statuses/92bfb9697d5c38fa6bfff2d9a8066f2d82a27c89","head":{"label":"rabbitmq:rabbitmq-mqtt-73","ref":"rabbitmq-mqtt-73","sha":"92bfb9697d5c38fa6bfff2d9a8066f2d82a27c89","user":{"login":"rabbitmq","id":96669,"avatar_url":"https://avatars.githubusercontent.com/u/96669?v=3","gravatar_id":"","url":"https://api.github.com/users/rabbitmq","html_url":"https://github.com/rabbitmq","followers_url":"https://api.github.com/users/rabbitmq/followers","following_url":"https://api.github.com/users/rabbitmq/following{/other_user}","gists_url":"https://api.github.com/users/rabbitmq/gists{/gist_id}","starred_url":"https://api.github.com/users/rabbitmq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rabbitmq/subscriptions","organizations_url":"https://api.github.com/users/rabbitmq/orgs","repos_url":"https://api.github.com/users/rabbitmq/repos","events_url":"https://api.github.com/users/rabbitmq/events{/privacy}","received_events_url":"https://api.github.com/users/rabbitmq/received_events","type":"Organization","site_admin":false},"repo":{"id":32091173,"name":"rabbitmq-website","full_name":"rabbitmq/rabbitmq-website","owner":{"login":"rabbitmq","id":96669,"avatar_url":"https://avatars.githubusercontent.com/u/96669?v=3","gravatar_id":"","url":"https://api.github.com/users/rabbitmq","html_url":"https://github.com/rabbitmq","followers_url":"https://api.github.com/users/rabbitmq/followers","following_url":"https://api.github.com/users/rabbitmq/following{/other_user}","gists_url":"https://api.github.com/users/rabbitmq/gists{/gist_id}","starred_url":"https://api.github.com/users/rabbitmq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rabbitmq/subscriptions","organizations_url":"https://api.github.com/users/rabbitmq/orgs","repos_url":"https://api.github.com/users/rabbitmq/repos","events_url":"https://api.github.com/users/rabbitmq/events{/privacy}","received_events_url":"https://api.github.com/users/rabbitmq/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/rabbitmq/rabbitmq-website","description":"Source files for www.rabbitmq.com","fork":false,"url":"https://api.github.com/repos/rabbitmq/rabbitmq-website","forks_url":"https://api.github.com/repos/rabbitmq/rabbitmq-website/forks","keys_url":"https://api.github.com/repos/rabbitmq/rabbitmq-website/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rabbitmq/rabbitmq-website/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rabbitmq/rabbitmq-website/teams","hooks_url":"https://api.github.com/repos/rabbitmq/rabbitmq-website/hooks","issue_events_url":"https://api.github.com/repos/rabbitmq/rabbitmq-website/issues/events{/number}","events_url":"https://api.github.com/repos/rabbitmq/rabbitmq-website/events","assignees_url":"https://api.github.com/repos/rabbitmq/rabbitmq-website/assignees{/user}","branches_url":"https://api.github.com/repos/rabbitmq/rabbitmq-website/branches{/branch}","tags_url":"https://api.github.com/repos/rabbitmq/rabbitmq-website/tags","blobs_url":"https://api.github.com/repos/rabbitmq/rabbitmq-website/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rabbitmq/rabbitmq-website/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rabbitmq/rabbitmq-website/git/refs{/sha}","trees_url":"https://api.github.com/repos/rabbitmq/rabbitmq-website/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rabbitmq/rabbitmq-website/statuses/{sha}","languages_url":"https://api.github.com/repos/rabbitmq/rabbitmq-website/languages","stargazers_url":"https://api.github.com/repos/rabbitmq/rabbitmq-website/stargazers","contributors_url":"https://api.github.com/repos/rabbitmq/rabbitmq-website/contributors","subscribers_url":"https://api.github.com/repos/rabbitmq/rabbitmq-website/subscribers","subscription_url":"https://api.github.com/repos/rabbitmq/rabbitmq-website/subscription","commits_url":"https://api.github.com/repos/rabbitmq/rabbitmq-website/commits{/sha}","git_commits_url":"https://api.github.com/repos/rabbitmq/rabbitmq-website/git/commits{/sha}","comments_url":"https://api.github.com/repos/rabbitmq/rabbitmq-website/comments{/number}","issue_comment_url":"https://api.github.com/repos/rabbitmq/rabbitmq-website/issues/comments{/number}","contents_url":"https://api.github.com/repos/rabbitmq/rabbitmq-website/contents/{+path}","compare_url":"https://api.github.com/repos/rabbitmq/rabbitmq-website/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rabbitmq/rabbitmq-website/merges","archive_url":"https://api.github.com/repos/rabbitmq/rabbitmq-website/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rabbitmq/rabbitmq-website/downloads","issues_url":"https://api.github.com/repos/rabbitmq/rabbitmq-website/issues{/number}","pulls_url":"https://api.github.com/repos/rabbitmq/rabbitmq-website/pulls{/number}","milestones_url":"https://api.github.com/repos/rabbitmq/rabbitmq-website/milestones{/number}","notifications_url":"https://api.github.com/repos/rabbitmq/rabbitmq-website/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rabbitmq/rabbitmq-website/labels{/name}","releases_url":"https://api.github.com/repos/rabbitmq/rabbitmq-website/releases{/id}","deployments_url":"https://api.github.com/repos/rabbitmq/rabbitmq-website/deployments","created_at":"2015-03-12T17:29:11Z","updated_at":"2016-11-29T09:45:25Z","pushed_at":"2016-12-14T14:03:08Z","git_url":"git://github.com/rabbitmq/rabbitmq-website.git","ssh_url":"git@github.com:rabbitmq/rabbitmq-website.git","clone_url":"https://github.com/rabbitmq/rabbitmq-website.git","svn_url":"https://github.com/rabbitmq/rabbitmq-website","homepage":null,"size":96246,"stargazers_count":63,"watchers_count":63,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":83,"mirror_url":null,"open_issues_count":18,"forks":83,"open_issues":18,"watchers":63,"default_branch":"master"}},"base":{"label":"rabbitmq:master","ref":"master","sha":"31bb09f1fe5e07efd9dcf54225b0242af4865a7c","user":{"login":"rabbitmq","id":96669,"avatar_url":"https://avatars.githubusercontent.com/u/96669?v=3","gravatar_id":"","url":"https://api.github.com/users/rabbitmq","html_url":"https://github.com/rabbitmq","followers_url":"https://api.github.com/users/rabbitmq/followers","following_url":"https://api.github.com/users/rabbitmq/following{/other_user}","gists_url":"https://api.github.com/users/rabbitmq/gists{/gist_id}","starred_url":"https://api.github.com/users/rabbitmq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rabbitmq/subscriptions","organizations_url":"https://api.github.com/users/rabbitmq/orgs","repos_url":"https://api.github.com/users/rabbitmq/repos","events_url":"https://api.github.com/users/rabbitmq/events{/privacy}","received_events_url":"https://api.github.com/users/rabbitmq/received_events","type":"Organization","site_admin":false},"repo":{"id":32091173,"name":"rabbitmq-website","full_name":"rabbitmq/rabbitmq-website","owner":{"login":"rabbitmq","id":96669,"avatar_url":"https://avatars.githubusercontent.com/u/96669?v=3","gravatar_id":"","url":"https://api.github.com/users/rabbitmq","html_url":"https://github.com/rabbitmq","followers_url":"https://api.github.com/users/rabbitmq/followers","following_url":"https://api.github.com/users/rabbitmq/following{/other_user}","gists_url":"https://api.github.com/users/rabbitmq/gists{/gist_id}","starred_url":"https://api.github.com/users/rabbitmq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rabbitmq/subscriptions","organizations_url":"https://api.github.com/users/rabbitmq/orgs","repos_url":"https://api.github.com/users/rabbitmq/repos","events_url":"https://api.github.com/users/rabbitmq/events{/privacy}","received_events_url":"https://api.github.com/users/rabbitmq/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/rabbitmq/rabbitmq-website","description":"Source files for www.rabbitmq.com","fork":false,"url":"https://api.github.com/repos/rabbitmq/rabbitmq-website","forks_url":"https://api.github.com/repos/rabbitmq/rabbitmq-website/forks","keys_url":"https://api.github.com/repos/rabbitmq/rabbitmq-website/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rabbitmq/rabbitmq-website/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rabbitmq/rabbitmq-website/teams","hooks_url":"https://api.github.com/repos/rabbitmq/rabbitmq-website/hooks","issue_events_url":"https://api.github.com/repos/rabbitmq/rabbitmq-website/issues/events{/number}","events_url":"https://api.github.com/repos/rabbitmq/rabbitmq-website/events","assignees_url":"https://api.github.com/repos/rabbitmq/rabbitmq-website/assignees{/user}","branches_url":"https://api.github.com/repos/rabbitmq/rabbitmq-website/branches{/branch}","tags_url":"https://api.github.com/repos/rabbitmq/rabbitmq-website/tags","blobs_url":"https://api.github.com/repos/rabbitmq/rabbitmq-website/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rabbitmq/rabbitmq-website/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rabbitmq/rabbitmq-website/git/refs{/sha}","trees_url":"https://api.github.com/repos/rabbitmq/rabbitmq-website/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rabbitmq/rabbitmq-website/statuses/{sha}","languages_url":"https://api.github.com/repos/rabbitmq/rabbitmq-website/languages","stargazers_url":"https://api.github.com/repos/rabbitmq/rabbitmq-website/stargazers","contributors_url":"https://api.github.com/repos/rabbitmq/rabbitmq-website/contributors","subscribers_url":"https://api.github.com/repos/rabbitmq/rabbitmq-website/subscribers","subscription_url":"https://api.github.com/repos/rabbitmq/rabbitmq-website/subscription","commits_url":"https://api.github.com/repos/rabbitmq/rabbitmq-website/commits{/sha}","git_commits_url":"https://api.github.com/repos/rabbitmq/rabbitmq-website/git/commits{/sha}","comments_url":"https://api.github.com/repos/rabbitmq/rabbitmq-website/comments{/number}","issue_comment_url":"https://api.github.com/repos/rabbitmq/rabbitmq-website/issues/comments{/number}","contents_url":"https://api.github.com/repos/rabbitmq/rabbitmq-website/contents/{+path}","compare_url":"https://api.github.com/repos/rabbitmq/rabbitmq-website/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rabbitmq/rabbitmq-website/merges","archive_url":"https://api.github.com/repos/rabbitmq/rabbitmq-website/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rabbitmq/rabbitmq-website/downloads","issues_url":"https://api.github.com/repos/rabbitmq/rabbitmq-website/issues{/number}","pulls_url":"https://api.github.com/repos/rabbitmq/rabbitmq-website/pulls{/number}","milestones_url":"https://api.github.com/repos/rabbitmq/rabbitmq-website/milestones{/number}","notifications_url":"https://api.github.com/repos/rabbitmq/rabbitmq-website/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rabbitmq/rabbitmq-website/labels{/name}","releases_url":"https://api.github.com/repos/rabbitmq/rabbitmq-website/releases{/id}","deployments_url":"https://api.github.com/repos/rabbitmq/rabbitmq-website/deployments","created_at":"2015-03-12T17:29:11Z","updated_at":"2016-11-29T09:45:25Z","pushed_at":"2016-12-14T14:03:08Z","git_url":"git://github.com/rabbitmq/rabbitmq-website.git","ssh_url":"git@github.com:rabbitmq/rabbitmq-website.git","clone_url":"https://github.com/rabbitmq/rabbitmq-website.git","svn_url":"https://github.com/rabbitmq/rabbitmq-website","homepage":null,"size":96246,"stargazers_count":63,"watchers_count":63,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":83,"mirror_url":null,"open_issues_count":18,"forks":83,"open_issues":18,"watchers":63,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rabbitmq/rabbitmq-website/pulls/310"},"html":{"href":"https://github.com/rabbitmq/rabbitmq-website/pull/310"},"issue":{"href":"https://api.github.com/repos/rabbitmq/rabbitmq-website/issues/310"},"comments":{"href":"https://api.github.com/repos/rabbitmq/rabbitmq-website/issues/310/comments"},"review_comments":{"href":"https://api.github.com/repos/rabbitmq/rabbitmq-website/pulls/310/comments"},"review_comment":{"href":"https://api.github.com/repos/rabbitmq/rabbitmq-website/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/rabbitmq/rabbitmq-website/pulls/310/commits"},"statuses":{"href":"https://api.github.com/repos/rabbitmq/rabbitmq-website/statuses/92bfb9697d5c38fa6bfff2d9a8066f2d82a27c89"}}}}
{"actor":{"display_login":"michaelklishin"}}