{"action":"created","comment":{"url":"https://api.github.com/repos/percona/percona-server/pulls/comments/33366546","id":33366546,"diff_hunk":"@@ -0,0 +1,45 @@\n+.. _proxy_protocol_support:\n+\n+============================\n+ Support for PROXY protocol\n+============================\n+\n+The proxy protocol allows an intermediate proxying server between the server and the ultimate client (i.e. HAProxy) to provide the source client address to the server, which normally would only see the proxying server address instead. The correct source client address then might be used in ``mysql.user`` for access control, provide more exact information for the error log, audit plugins etc.\n+\n+As the proxy protocol amounts to spoofing the client address, it is disabled by default, and can be enabled on per-host or per-network basis for the trusted source addresses where trusted proxy servers are known to run.\n+\n+The option is a global-only, read-only variable :variable:`proxy_protocol_networks`, which is either a ``*`` (to enable proxying globally), or a list of comma-separated IPv4 and IPv6 network and host addresses, for which proxying is enabled. Network addresses are specified in CIDR notation, i.e. 192.168.0.0/24.\n+\n+.. note:: \n+\n+   You need to ensure proper firewall ACL's in place when this feature is enabled, along with ``/32`` being a single host.\n+\n+Only TCP/IPv4 and TCP/IPv6 are supported. UNIX socket (and strictly speaking Windows named pipe) connections can not be proxied and do not fall under the effect of proxy-protocol-networks='*'.\n+\n+As a special exception, it is forbidden for the proxied IP address to be 127.0.0.1 / ::1.","path":"doc/source/flexibility/proxy_protocol_support.rst","position":19,"original_position":19,"commit_id":"1e7e29780b72070fd0edb6d39ae57ff72827c32e","original_commit_id":"1e7e29780b72070fd0edb6d39ae57ff72827c32e","user":{"login":"laurynas-biveinis","id":58894,"avatar_url":"https://avatars.githubusercontent.com/u/58894?v=3","gravatar_id":"","url":"https://api.github.com/users/laurynas-biveinis","html_url":"https://github.com/laurynas-biveinis","followers_url":"https://api.github.com/users/laurynas-biveinis/followers","following_url":"https://api.github.com/users/laurynas-biveinis/following{/other_user}","gists_url":"https://api.github.com/users/laurynas-biveinis/gists{/gist_id}","starred_url":"https://api.github.com/users/laurynas-biveinis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/laurynas-biveinis/subscriptions","organizations_url":"https://api.github.com/users/laurynas-biveinis/orgs","repos_url":"https://api.github.com/users/laurynas-biveinis/repos","events_url":"https://api.github.com/users/laurynas-biveinis/events{/privacy}","received_events_url":"https://api.github.com/users/laurynas-biveinis/received_events","type":"User","site_admin":false},"body":"127.0.0.1 or ::1","created_at":"2015-06-26T15:32:19Z","updated_at":"2015-06-26T15:32:19Z","html_url":"https://github.com/percona/percona-server/pull/100#discussion_r33366546","pull_request_url":"https://api.github.com/repos/percona/percona-server/pulls/100","_links":{"self":{"href":"https://api.github.com/repos/percona/percona-server/pulls/comments/33366546"},"html":{"href":"https://github.com/percona/percona-server/pull/100#discussion_r33366546"},"pull_request":{"href":"https://api.github.com/repos/percona/percona-server/pulls/100"}}},"pull_request":{"url":"https://api.github.com/repos/percona/percona-server/pulls/100","id":38657393,"html_url":"https://github.com/percona/percona-server/pull/100","diff_url":"https://github.com/percona/percona-server/pull/100.diff","patch_url":"https://github.com/percona/percona-server/pull/100.patch","issue_url":"https://api.github.com/repos/percona/percona-server/issues/100","number":100,"state":"open","locked":false,"title":"Release notes for Percona Server 5.6.25-73.0","user":{"login":"hrvojem","id":2334261,"avatar_url":"https://avatars.githubusercontent.com/u/2334261?v=3","gravatar_id":"","url":"https://api.github.com/users/hrvojem","html_url":"https://github.com/hrvojem","followers_url":"https://api.github.com/users/hrvojem/followers","following_url":"https://api.github.com/users/hrvojem/following{/other_user}","gists_url":"https://api.github.com/users/hrvojem/gists{/gist_id}","starred_url":"https://api.github.com/users/hrvojem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hrvojem/subscriptions","organizations_url":"https://api.github.com/users/hrvojem/orgs","repos_url":"https://api.github.com/users/hrvojem/repos","events_url":"https://api.github.com/users/hrvojem/events{/privacy}","received_events_url":"https://api.github.com/users/hrvojem/received_events","type":"User","site_admin":false},"body":"Fixes WEB-1377","created_at":"2015-06-26T14:56:31Z","updated_at":"2015-06-26T15:32:19Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6ab309a52a64219e037bb209a1d74cd8ca6044e0","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/percona/percona-server/pulls/100/commits","review_comments_url":"https://api.github.com/repos/percona/percona-server/pulls/100/comments","review_comment_url":"https://api.github.com/repos/percona/percona-server/pulls/comments{/number}","comments_url":"https://api.github.com/repos/percona/percona-server/issues/100/comments","statuses_url":"https://api.github.com/repos/percona/percona-server/statuses/1e7e29780b72070fd0edb6d39ae57ff72827c32e","head":{"label":"hrvojem:5.6-ps-rn-5.6.25-73.0","ref":"5.6-ps-rn-5.6.25-73.0","sha":"1e7e29780b72070fd0edb6d39ae57ff72827c32e","user":{"login":"hrvojem","id":2334261,"avatar_url":"https://avatars.githubusercontent.com/u/2334261?v=3","gravatar_id":"","url":"https://api.github.com/users/hrvojem","html_url":"https://github.com/hrvojem","followers_url":"https://api.github.com/users/hrvojem/followers","following_url":"https://api.github.com/users/hrvojem/following{/other_user}","gists_url":"https://api.github.com/users/hrvojem/gists{/gist_id}","starred_url":"https://api.github.com/users/hrvojem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hrvojem/subscriptions","organizations_url":"https://api.github.com/users/hrvojem/orgs","repos_url":"https://api.github.com/users/hrvojem/repos","events_url":"https://api.github.com/users/hrvojem/events{/privacy}","received_events_url":"https://api.github.com/users/hrvojem/received_events","type":"User","site_admin":false},"repo":{"id":31358610,"name":"percona-server","full_name":"hrvojem/percona-server","owner":{"login":"hrvojem","id":2334261,"avatar_url":"https://avatars.githubusercontent.com/u/2334261?v=3","gravatar_id":"","url":"https://api.github.com/users/hrvojem","html_url":"https://github.com/hrvojem","followers_url":"https://api.github.com/users/hrvojem/followers","following_url":"https://api.github.com/users/hrvojem/following{/other_user}","gists_url":"https://api.github.com/users/hrvojem/gists{/gist_id}","starred_url":"https://api.github.com/users/hrvojem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hrvojem/subscriptions","organizations_url":"https://api.github.com/users/hrvojem/orgs","repos_url":"https://api.github.com/users/hrvojem/repos","events_url":"https://api.github.com/users/hrvojem/events{/privacy}","received_events_url":"https://api.github.com/users/hrvojem/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/hrvojem/percona-server","description":"","fork":true,"url":"https://api.github.com/repos/hrvojem/percona-server","forks_url":"https://api.github.com/repos/hrvojem/percona-server/forks","keys_url":"https://api.github.com/repos/hrvojem/percona-server/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hrvojem/percona-server/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hrvojem/percona-server/teams","hooks_url":"https://api.github.com/repos/hrvojem/percona-server/hooks","issue_events_url":"https://api.github.com/repos/hrvojem/percona-server/issues/events{/number}","events_url":"https://api.github.com/repos/hrvojem/percona-server/events","assignees_url":"https://api.github.com/repos/hrvojem/percona-server/assignees{/user}","branches_url":"https://api.github.com/repos/hrvojem/percona-server/branches{/branch}","tags_url":"https://api.github.com/repos/hrvojem/percona-server/tags","blobs_url":"https://api.github.com/repos/hrvojem/percona-server/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hrvojem/percona-server/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hrvojem/percona-server/git/refs{/sha}","trees_url":"https://api.github.com/repos/hrvojem/percona-server/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hrvojem/percona-server/statuses/{sha}","languages_url":"https://api.github.com/repos/hrvojem/percona-server/languages","stargazers_url":"https://api.github.com/repos/hrvojem/percona-server/stargazers","contributors_url":"https://api.github.com/repos/hrvojem/percona-server/contributors","subscribers_url":"https://api.github.com/repos/hrvojem/percona-server/subscribers","subscription_url":"https://api.github.com/repos/hrvojem/percona-server/subscription","commits_url":"https://api.github.com/repos/hrvojem/percona-server/commits{/sha}","git_commits_url":"https://api.github.com/repos/hrvojem/percona-server/git/commits{/sha}","comments_url":"https://api.github.com/repos/hrvojem/percona-server/comments{/number}","issue_comment_url":"https://api.github.com/repos/hrvojem/percona-server/issues/comments{/number}","contents_url":"https://api.github.com/repos/hrvojem/percona-server/contents/{+path}","compare_url":"https://api.github.com/repos/hrvojem/percona-server/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hrvojem/percona-server/merges","archive_url":"https://api.github.com/repos/hrvojem/percona-server/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hrvojem/percona-server/downloads","issues_url":"https://api.github.com/repos/hrvojem/percona-server/issues{/number}","pulls_url":"https://api.github.com/repos/hrvojem/percona-server/pulls{/number}","milestones_url":"https://api.github.com/repos/hrvojem/percona-server/milestones{/number}","notifications_url":"https://api.github.com/repos/hrvojem/percona-server/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hrvojem/percona-server/labels{/name}","releases_url":"https://api.github.com/repos/hrvojem/percona-server/releases{/id}","created_at":"2015-02-26T08:54:50Z","updated_at":"2015-05-06T19:51:00Z","pushed_at":"2015-06-26T14:55:37Z","git_url":"git://github.com/hrvojem/percona-server.git","ssh_url":"git@github.com:hrvojem/percona-server.git","clone_url":"https://github.com/hrvojem/percona-server.git","svn_url":"https://github.com/hrvojem/percona-server","homepage":null,"size":278985,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"5.6"}},"base":{"label":"percona:5.6","ref":"5.6","sha":"5e1efd3779c38dbddad6595125bb6ea7f8cdcf18","user":{"login":"percona","id":1683025,"avatar_url":"https://avatars.githubusercontent.com/u/1683025?v=3","gravatar_id":"","url":"https://api.github.com/users/percona","html_url":"https://github.com/percona","followers_url":"https://api.github.com/users/percona/followers","following_url":"https://api.github.com/users/percona/following{/other_user}","gists_url":"https://api.github.com/users/percona/gists{/gist_id}","starred_url":"https://api.github.com/users/percona/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/percona/subscriptions","organizations_url":"https://api.github.com/users/percona/orgs","repos_url":"https://api.github.com/users/percona/repos","events_url":"https://api.github.com/users/percona/events{/privacy}","received_events_url":"https://api.github.com/users/percona/received_events","type":"Organization","site_admin":false},"repo":{"id":30753733,"name":"percona-server","full_name":"percona/percona-server","owner":{"login":"percona","id":1683025,"avatar_url":"https://avatars.githubusercontent.com/u/1683025?v=3","gravatar_id":"","url":"https://api.github.com/users/percona","html_url":"https://github.com/percona","followers_url":"https://api.github.com/users/percona/followers","following_url":"https://api.github.com/users/percona/following{/other_user}","gists_url":"https://api.github.com/users/percona/gists{/gist_id}","starred_url":"https://api.github.com/users/percona/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/percona/subscriptions","organizations_url":"https://api.github.com/users/percona/orgs","repos_url":"https://api.github.com/users/percona/repos","events_url":"https://api.github.com/users/percona/events{/privacy}","received_events_url":"https://api.github.com/users/percona/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/percona/percona-server","description":"","fork":false,"url":"https://api.github.com/repos/percona/percona-server","forks_url":"https://api.github.com/repos/percona/percona-server/forks","keys_url":"https://api.github.com/repos/percona/percona-server/keys{/key_id}","collaborators_url":"https://api.github.com/repos/percona/percona-server/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/percona/percona-server/teams","hooks_url":"https://api.github.com/repos/percona/percona-server/hooks","issue_events_url":"https://api.github.com/repos/percona/percona-server/issues/events{/number}","events_url":"https://api.github.com/repos/percona/percona-server/events","assignees_url":"https://api.github.com/repos/percona/percona-server/assignees{/user}","branches_url":"https://api.github.com/repos/percona/percona-server/branches{/branch}","tags_url":"https://api.github.com/repos/percona/percona-server/tags","blobs_url":"https://api.github.com/repos/percona/percona-server/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/percona/percona-server/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/percona/percona-server/git/refs{/sha}","trees_url":"https://api.github.com/repos/percona/percona-server/git/trees{/sha}","statuses_url":"https://api.github.com/repos/percona/percona-server/statuses/{sha}","languages_url":"https://api.github.com/repos/percona/percona-server/languages","stargazers_url":"https://api.github.com/repos/percona/percona-server/stargazers","contributors_url":"https://api.github.com/repos/percona/percona-server/contributors","subscribers_url":"https://api.github.com/repos/percona/percona-server/subscribers","subscription_url":"https://api.github.com/repos/percona/percona-server/subscription","commits_url":"https://api.github.com/repos/percona/percona-server/commits{/sha}","git_commits_url":"https://api.github.com/repos/percona/percona-server/git/commits{/sha}","comments_url":"https://api.github.com/repos/percona/percona-server/comments{/number}","issue_comment_url":"https://api.github.com/repos/percona/percona-server/issues/comments{/number}","contents_url":"https://api.github.com/repos/percona/percona-server/contents/{+path}","compare_url":"https://api.github.com/repos/percona/percona-server/compare/{base}...{head}","merges_url":"https://api.github.com/repos/percona/percona-server/merges","archive_url":"https://api.github.com/repos/percona/percona-server/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/percona/percona-server/downloads","issues_url":"https://api.github.com/repos/percona/percona-server/issues{/number}","pulls_url":"https://api.github.com/repos/percona/percona-server/pulls{/number}","milestones_url":"https://api.github.com/repos/percona/percona-server/milestones{/number}","notifications_url":"https://api.github.com/repos/percona/percona-server/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/percona/percona-server/labels{/name}","releases_url":"https://api.github.com/repos/percona/percona-server/releases{/id}","created_at":"2015-02-13T11:32:01Z","updated_at":"2015-06-26T11:04:52Z","pushed_at":"2015-06-26T14:56:31Z","git_url":"git://github.com/percona/percona-server.git","ssh_url":"git@github.com:percona/percona-server.git","clone_url":"https://github.com/percona/percona-server.git","svn_url":"https://github.com/percona/percona-server","homepage":null,"size":687557,"stargazers_count":26,"watchers_count":26,"language":"C++","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":19,"mirror_url":null,"open_issues_count":3,"forks":19,"open_issues":3,"watchers":26,"default_branch":"5.6"}},"_links":{"self":{"href":"https://api.github.com/repos/percona/percona-server/pulls/100"},"html":{"href":"https://github.com/percona/percona-server/pull/100"},"issue":{"href":"https://api.github.com/repos/percona/percona-server/issues/100"},"comments":{"href":"https://api.github.com/repos/percona/percona-server/issues/100/comments"},"review_comments":{"href":"https://api.github.com/repos/percona/percona-server/pulls/100/comments"},"review_comment":{"href":"https://api.github.com/repos/percona/percona-server/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/percona/percona-server/pulls/100/commits"},"statuses":{"href":"https://api.github.com/repos/percona/percona-server/statuses/1e7e29780b72070fd0edb6d39ae57ff72827c32e"}}}}