{"action":"created","comment":{"url":"https://api.github.com/repos/wazuh/wazuh/pulls/comments/218416245","pull_request_review_id":156346906,"id":218416245,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxODQxNjI0NQ==","diff_hunk":"@@ -28,7 +29,8 @@ def close(self):\n \n     def send(self, msg):\n         try:\n-            sent = self.s.send(dumps(msg))\n+            payload = dumps(msg)\n+            sent = self.s.send(pack(\"<I\", len(msg)) + payload.encode())","path":"framework/wazuh/ossec_socket.py","position":14,"original_position":14,"commit_id":"1c9e02471c7172532d12c5af659d8a1f1a7caf8f","original_commit_id":"1c9e02471c7172532d12c5af659d8a1f1a7caf8f","user":{"login":"mgmacias95","id":8604906,"node_id":"MDQ6VXNlcjg2MDQ5MDY=","avatar_url":"https://avatars0.githubusercontent.com/u/8604906?v=4","gravatar_id":"","url":"https://api.github.com/users/mgmacias95","html_url":"https://github.com/mgmacias95","followers_url":"https://api.github.com/users/mgmacias95/followers","following_url":"https://api.github.com/users/mgmacias95/following{/other_user}","gists_url":"https://api.github.com/users/mgmacias95/gists{/gist_id}","starred_url":"https://api.github.com/users/mgmacias95/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mgmacias95/subscriptions","organizations_url":"https://api.github.com/users/mgmacias95/orgs","repos_url":"https://api.github.com/users/mgmacias95/repos","events_url":"https://api.github.com/users/mgmacias95/events{/privacy}","received_events_url":"https://api.github.com/users/mgmacias95/received_events","type":"User","site_admin":false},"body":"The payload's length should be sent, instead of the msg's length.","created_at":"2018-09-18T12:46:35Z","updated_at":"2018-09-18T12:46:59Z","html_url":"https://github.com/wazuh/wazuh/pull/1272#discussion_r218416245","pull_request_url":"https://api.github.com/repos/wazuh/wazuh/pulls/1272","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/wazuh/wazuh/pulls/comments/218416245"},"html":{"href":"https://github.com/wazuh/wazuh/pull/1272#discussion_r218416245"},"pull_request":{"href":"https://api.github.com/repos/wazuh/wazuh/pulls/1272"}}},"pull_request":{"url":"https://api.github.com/repos/wazuh/wazuh/pulls/1272","id":214311849,"node_id":"MDExOlB1bGxSZXF1ZXN0MjE0MzExODQ5","html_url":"https://github.com/wazuh/wazuh/pull/1272","diff_url":"https://github.com/wazuh/wazuh/pull/1272.diff","patch_url":"https://github.com/wazuh/wazuh/pull/1272.patch","issue_url":"https://api.github.com/repos/wazuh/wazuh/issues/1272","number":1272,"state":"open","locked":false,"title":"Fix the communication between manage_agents and ossec-authd","user":{"login":"Skeptor","id":9034923,"node_id":"MDQ6VXNlcjkwMzQ5MjM=","avatar_url":"https://avatars1.githubusercontent.com/u/9034923?v=4","gravatar_id":"","url":"https://api.github.com/users/Skeptor","html_url":"https://github.com/Skeptor","followers_url":"https://api.github.com/users/Skeptor/followers","following_url":"https://api.github.com/users/Skeptor/following{/other_user}","gists_url":"https://api.github.com/users/Skeptor/gists{/gist_id}","starred_url":"https://api.github.com/users/Skeptor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Skeptor/subscriptions","organizations_url":"https://api.github.com/users/Skeptor/orgs","repos_url":"https://api.github.com/users/Skeptor/repos","events_url":"https://api.github.com/users/Skeptor/events{/privacy}","received_events_url":"https://api.github.com/users/Skeptor/received_events","type":"User","site_admin":false},"body":"Manage_agents didn't work while ossec-authd was running because it didn't send the information with the correct format.\r\nReference issue: #1262 ","created_at":"2018-09-10T13:21:23Z","updated_at":"2018-09-18T12:46:59Z","closed_at":null,"merged_at":null,"merge_commit_sha":"99c6e0d7ffc2f3452d63f45554798cc723c0a3d4","assignee":{"login":"vikman90","id":10536251,"node_id":"MDQ6VXNlcjEwNTM2MjUx","avatar_url":"https://avatars3.githubusercontent.com/u/10536251?v=4","gravatar_id":"","url":"https://api.github.com/users/vikman90","html_url":"https://github.com/vikman90","followers_url":"https://api.github.com/users/vikman90/followers","following_url":"https://api.github.com/users/vikman90/following{/other_user}","gists_url":"https://api.github.com/users/vikman90/gists{/gist_id}","starred_url":"https://api.github.com/users/vikman90/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vikman90/subscriptions","organizations_url":"https://api.github.com/users/vikman90/orgs","repos_url":"https://api.github.com/users/vikman90/repos","events_url":"https://api.github.com/users/vikman90/events{/privacy}","received_events_url":"https://api.github.com/users/vikman90/received_events","type":"User","site_admin":false},"assignees":[{"login":"vikman90","id":10536251,"node_id":"MDQ6VXNlcjEwNTM2MjUx","avatar_url":"https://avatars3.githubusercontent.com/u/10536251?v=4","gravatar_id":"","url":"https://api.github.com/users/vikman90","html_url":"https://github.com/vikman90","followers_url":"https://api.github.com/users/vikman90/followers","following_url":"https://api.github.com/users/vikman90/following{/other_user}","gists_url":"https://api.github.com/users/vikman90/gists{/gist_id}","starred_url":"https://api.github.com/users/vikman90/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vikman90/subscriptions","organizations_url":"https://api.github.com/users/vikman90/orgs","repos_url":"https://api.github.com/users/vikman90/repos","events_url":"https://api.github.com/users/vikman90/events{/privacy}","received_events_url":"https://api.github.com/users/vikman90/received_events","type":"User","site_admin":false},{"login":"chemamartinez","id":29475387,"node_id":"MDQ6VXNlcjI5NDc1Mzg3","avatar_url":"https://avatars1.githubusercontent.com/u/29475387?v=4","gravatar_id":"","url":"https://api.github.com/users/chemamartinez","html_url":"https://github.com/chemamartinez","followers_url":"https://api.github.com/users/chemamartinez/followers","following_url":"https://api.github.com/users/chemamartinez/following{/other_user}","gists_url":"https://api.github.com/users/chemamartinez/gists{/gist_id}","starred_url":"https://api.github.com/users/chemamartinez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chemamartinez/subscriptions","organizations_url":"https://api.github.com/users/chemamartinez/orgs","repos_url":"https://api.github.com/users/chemamartinez/repos","events_url":"https://api.github.com/users/chemamartinez/events{/privacy}","received_events_url":"https://api.github.com/users/chemamartinez/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":246680124,"node_id":"MDU6TGFiZWwyNDY2ODAxMjQ=","url":"https://api.github.com/repos/wazuh/wazuh/labels/bug","name":"bug","color":"d93f0b","default":true}],"milestone":null,"commits_url":"https://api.github.com/repos/wazuh/wazuh/pulls/1272/commits","review_comments_url":"https://api.github.com/repos/wazuh/wazuh/pulls/1272/comments","review_comment_url":"https://api.github.com/repos/wazuh/wazuh/pulls/comments{/number}","comments_url":"https://api.github.com/repos/wazuh/wazuh/issues/1272/comments","statuses_url":"https://api.github.com/repos/wazuh/wazuh/statuses/1c9e02471c7172532d12c5af659d8a1f1a7caf8f","head":{"label":"wazuh:3.6-fix-manage_agents","ref":"3.6-fix-manage_agents","sha":"1c9e02471c7172532d12c5af659d8a1f1a7caf8f","user":{"login":"wazuh","id":13752566,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEzNzUyNTY2","avatar_url":"https://avatars3.githubusercontent.com/u/13752566?v=4","gravatar_id":"","url":"https://api.github.com/users/wazuh","html_url":"https://github.com/wazuh","followers_url":"https://api.github.com/users/wazuh/followers","following_url":"https://api.github.com/users/wazuh/following{/other_user}","gists_url":"https://api.github.com/users/wazuh/gists{/gist_id}","starred_url":"https://api.github.com/users/wazuh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wazuh/subscriptions","organizations_url":"https://api.github.com/users/wazuh/orgs","repos_url":"https://api.github.com/users/wazuh/repos","events_url":"https://api.github.com/users/wazuh/events{/privacy}","received_events_url":"https://api.github.com/users/wazuh/received_events","type":"Organization","site_admin":false},"repo":{"id":40556106,"node_id":"MDEwOlJlcG9zaXRvcnk0MDU1NjEwNg==","name":"wazuh","full_name":"wazuh/wazuh","private":false,"owner":{"login":"wazuh","id":13752566,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEzNzUyNTY2","avatar_url":"https://avatars3.githubusercontent.com/u/13752566?v=4","gravatar_id":"","url":"https://api.github.com/users/wazuh","html_url":"https://github.com/wazuh","followers_url":"https://api.github.com/users/wazuh/followers","following_url":"https://api.github.com/users/wazuh/following{/other_user}","gists_url":"https://api.github.com/users/wazuh/gists{/gist_id}","starred_url":"https://api.github.com/users/wazuh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wazuh/subscriptions","organizations_url":"https://api.github.com/users/wazuh/orgs","repos_url":"https://api.github.com/users/wazuh/repos","events_url":"https://api.github.com/users/wazuh/events{/privacy}","received_events_url":"https://api.github.com/users/wazuh/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/wazuh/wazuh","description":"Wazuh - Host and endpoint security","fork":false,"url":"https://api.github.com/repos/wazuh/wazuh","forks_url":"https://api.github.com/repos/wazuh/wazuh/forks","keys_url":"https://api.github.com/repos/wazuh/wazuh/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wazuh/wazuh/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wazuh/wazuh/teams","hooks_url":"https://api.github.com/repos/wazuh/wazuh/hooks","issue_events_url":"https://api.github.com/repos/wazuh/wazuh/issues/events{/number}","events_url":"https://api.github.com/repos/wazuh/wazuh/events","assignees_url":"https://api.github.com/repos/wazuh/wazuh/assignees{/user}","branches_url":"https://api.github.com/repos/wazuh/wazuh/branches{/branch}","tags_url":"https://api.github.com/repos/wazuh/wazuh/tags","blobs_url":"https://api.github.com/repos/wazuh/wazuh/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wazuh/wazuh/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wazuh/wazuh/git/refs{/sha}","trees_url":"https://api.github.com/repos/wazuh/wazuh/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wazuh/wazuh/statuses/{sha}","languages_url":"https://api.github.com/repos/wazuh/wazuh/languages","stargazers_url":"https://api.github.com/repos/wazuh/wazuh/stargazers","contributors_url":"https://api.github.com/repos/wazuh/wazuh/contributors","subscribers_url":"https://api.github.com/repos/wazuh/wazuh/subscribers","subscription_url":"https://api.github.com/repos/wazuh/wazuh/subscription","commits_url":"https://api.github.com/repos/wazuh/wazuh/commits{/sha}","git_commits_url":"https://api.github.com/repos/wazuh/wazuh/git/commits{/sha}","comments_url":"https://api.github.com/repos/wazuh/wazuh/comments{/number}","issue_comment_url":"https://api.github.com/repos/wazuh/wazuh/issues/comments{/number}","contents_url":"https://api.github.com/repos/wazuh/wazuh/contents/{+path}","compare_url":"https://api.github.com/repos/wazuh/wazuh/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wazuh/wazuh/merges","archive_url":"https://api.github.com/repos/wazuh/wazuh/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wazuh/wazuh/downloads","issues_url":"https://api.github.com/repos/wazuh/wazuh/issues{/number}","pulls_url":"https://api.github.com/repos/wazuh/wazuh/pulls{/number}","milestones_url":"https://api.github.com/repos/wazuh/wazuh/milestones{/number}","notifications_url":"https://api.github.com/repos/wazuh/wazuh/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wazuh/wazuh/labels{/name}","releases_url":"https://api.github.com/repos/wazuh/wazuh/releases{/id}","deployments_url":"https://api.github.com/repos/wazuh/wazuh/deployments","created_at":"2015-08-11T17:39:03Z","updated_at":"2018-09-17T17:27:22Z","pushed_at":"2018-09-18T11:36:58Z","git_url":"git://github.com/wazuh/wazuh.git","ssh_url":"git@github.com:wazuh/wazuh.git","clone_url":"https://github.com/wazuh/wazuh.git","svn_url":"https://github.com/wazuh/wazuh","homepage":"https://wazuh.com/","size":69600,"stargazers_count":568,"watchers_count":568,"language":"C","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":187,"mirror_url":null,"archived":false,"open_issues_count":285,"license":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":187,"open_issues":285,"watchers":568,"default_branch":"master"}},"base":{"label":"wazuh:3.7","ref":"3.7","sha":"4c619783d75e958046e91ee72e535a1fc2b8e9ee","user":{"login":"wazuh","id":13752566,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEzNzUyNTY2","avatar_url":"https://avatars3.githubusercontent.com/u/13752566?v=4","gravatar_id":"","url":"https://api.github.com/users/wazuh","html_url":"https://github.com/wazuh","followers_url":"https://api.github.com/users/wazuh/followers","following_url":"https://api.github.com/users/wazuh/following{/other_user}","gists_url":"https://api.github.com/users/wazuh/gists{/gist_id}","starred_url":"https://api.github.com/users/wazuh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wazuh/subscriptions","organizations_url":"https://api.github.com/users/wazuh/orgs","repos_url":"https://api.github.com/users/wazuh/repos","events_url":"https://api.github.com/users/wazuh/events{/privacy}","received_events_url":"https://api.github.com/users/wazuh/received_events","type":"Organization","site_admin":false},"repo":{"id":40556106,"node_id":"MDEwOlJlcG9zaXRvcnk0MDU1NjEwNg==","name":"wazuh","full_name":"wazuh/wazuh","private":false,"owner":{"login":"wazuh","id":13752566,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEzNzUyNTY2","avatar_url":"https://avatars3.githubusercontent.com/u/13752566?v=4","gravatar_id":"","url":"https://api.github.com/users/wazuh","html_url":"https://github.com/wazuh","followers_url":"https://api.github.com/users/wazuh/followers","following_url":"https://api.github.com/users/wazuh/following{/other_user}","gists_url":"https://api.github.com/users/wazuh/gists{/gist_id}","starred_url":"https://api.github.com/users/wazuh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wazuh/subscriptions","organizations_url":"https://api.github.com/users/wazuh/orgs","repos_url":"https://api.github.com/users/wazuh/repos","events_url":"https://api.github.com/users/wazuh/events{/privacy}","received_events_url":"https://api.github.com/users/wazuh/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/wazuh/wazuh","description":"Wazuh - Host and endpoint security","fork":false,"url":"https://api.github.com/repos/wazuh/wazuh","forks_url":"https://api.github.com/repos/wazuh/wazuh/forks","keys_url":"https://api.github.com/repos/wazuh/wazuh/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wazuh/wazuh/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wazuh/wazuh/teams","hooks_url":"https://api.github.com/repos/wazuh/wazuh/hooks","issue_events_url":"https://api.github.com/repos/wazuh/wazuh/issues/events{/number}","events_url":"https://api.github.com/repos/wazuh/wazuh/events","assignees_url":"https://api.github.com/repos/wazuh/wazuh/assignees{/user}","branches_url":"https://api.github.com/repos/wazuh/wazuh/branches{/branch}","tags_url":"https://api.github.com/repos/wazuh/wazuh/tags","blobs_url":"https://api.github.com/repos/wazuh/wazuh/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wazuh/wazuh/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wazuh/wazuh/git/refs{/sha}","trees_url":"https://api.github.com/repos/wazuh/wazuh/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wazuh/wazuh/statuses/{sha}","languages_url":"https://api.github.com/repos/wazuh/wazuh/languages","stargazers_url":"https://api.github.com/repos/wazuh/wazuh/stargazers","contributors_url":"https://api.github.com/repos/wazuh/wazuh/contributors","subscribers_url":"https://api.github.com/repos/wazuh/wazuh/subscribers","subscription_url":"https://api.github.com/repos/wazuh/wazuh/subscription","commits_url":"https://api.github.com/repos/wazuh/wazuh/commits{/sha}","git_commits_url":"https://api.github.com/repos/wazuh/wazuh/git/commits{/sha}","comments_url":"https://api.github.com/repos/wazuh/wazuh/comments{/number}","issue_comment_url":"https://api.github.com/repos/wazuh/wazuh/issues/comments{/number}","contents_url":"https://api.github.com/repos/wazuh/wazuh/contents/{+path}","compare_url":"https://api.github.com/repos/wazuh/wazuh/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wazuh/wazuh/merges","archive_url":"https://api.github.com/repos/wazuh/wazuh/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wazuh/wazuh/downloads","issues_url":"https://api.github.com/repos/wazuh/wazuh/issues{/number}","pulls_url":"https://api.github.com/repos/wazuh/wazuh/pulls{/number}","milestones_url":"https://api.github.com/repos/wazuh/wazuh/milestones{/number}","notifications_url":"https://api.github.com/repos/wazuh/wazuh/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wazuh/wazuh/labels{/name}","releases_url":"https://api.github.com/repos/wazuh/wazuh/releases{/id}","deployments_url":"https://api.github.com/repos/wazuh/wazuh/deployments","created_at":"2015-08-11T17:39:03Z","updated_at":"2018-09-17T17:27:22Z","pushed_at":"2018-09-18T11:36:58Z","git_url":"git://github.com/wazuh/wazuh.git","ssh_url":"git@github.com:wazuh/wazuh.git","clone_url":"https://github.com/wazuh/wazuh.git","svn_url":"https://github.com/wazuh/wazuh","homepage":"https://wazuh.com/","size":69600,"stargazers_count":568,"watchers_count":568,"language":"C","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":187,"mirror_url":null,"archived":false,"open_issues_count":285,"license":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":187,"open_issues":285,"watchers":568,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/wazuh/wazuh/pulls/1272"},"html":{"href":"https://github.com/wazuh/wazuh/pull/1272"},"issue":{"href":"https://api.github.com/repos/wazuh/wazuh/issues/1272"},"comments":{"href":"https://api.github.com/repos/wazuh/wazuh/issues/1272/comments"},"review_comments":{"href":"https://api.github.com/repos/wazuh/wazuh/pulls/1272/comments"},"review_comment":{"href":"https://api.github.com/repos/wazuh/wazuh/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/wazuh/wazuh/pulls/1272/commits"},"statuses":{"href":"https://api.github.com/repos/wazuh/wazuh/statuses/1c9e02471c7172532d12c5af659d8a1f1a7caf8f"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"mgmacias95"}}