{"action":"created","issue":{"url":"https://api.github.com/repos/DataDog/datadog-agent/issues/1672","repository_url":"https://api.github.com/repos/DataDog/datadog-agent","labels_url":"https://api.github.com/repos/DataDog/datadog-agent/issues/1672/labels{/name}","comments_url":"https://api.github.com/repos/DataDog/datadog-agent/issues/1672/comments","events_url":"https://api.github.com/repos/DataDog/datadog-agent/issues/1672/events","html_url":"https://github.com/DataDog/datadog-agent/pull/1672","id":320734150,"number":1672,"title":"validate auth token for all api endpoints by default","user":{"login":"arbll","id":9051073,"avatar_url":"https://avatars3.githubusercontent.com/u/9051073?v=4","gravatar_id":"","url":"https://api.github.com/users/arbll","html_url":"https://github.com/arbll","followers_url":"https://api.github.com/users/arbll/followers","following_url":"https://api.github.com/users/arbll/following{/other_user}","gists_url":"https://api.github.com/users/arbll/gists{/gist_id}","starred_url":"https://api.github.com/users/arbll/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arbll/subscriptions","organizations_url":"https://api.github.com/users/arbll/orgs","repos_url":"https://api.github.com/users/arbll/repos","events_url":"https://api.github.com/users/arbll/events{/privacy}","received_events_url":"https://api.github.com/users/arbll/received_events","type":"User","site_admin":false},"labels":[{"id":600676186,"url":"https://api.github.com/repos/DataDog/datadog-agent/labels/kind/security","name":"kind/security","color":"fc2929","default":false},{"id":796118273,"url":"https://api.github.com/repos/DataDog/datadog-agent/labels/noreno","name":"noreno","color":"edd682","default":false},{"id":695415843,"url":"https://api.github.com/repos/DataDog/datadog-agent/labels/team/croissant","name":"team/croissant","color":"d4c5f9","default":false}],"state":"open","locked":false,"assignee":{"login":"truthbk","id":448216,"avatar_url":"https://avatars0.githubusercontent.com/u/448216?v=4","gravatar_id":"","url":"https://api.github.com/users/truthbk","html_url":"https://github.com/truthbk","followers_url":"https://api.github.com/users/truthbk/followers","following_url":"https://api.github.com/users/truthbk/following{/other_user}","gists_url":"https://api.github.com/users/truthbk/gists{/gist_id}","starred_url":"https://api.github.com/users/truthbk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/truthbk/subscriptions","organizations_url":"https://api.github.com/users/truthbk/orgs","repos_url":"https://api.github.com/users/truthbk/repos","events_url":"https://api.github.com/users/truthbk/events{/privacy}","received_events_url":"https://api.github.com/users/truthbk/received_events","type":"User","site_admin":false},"assignees":[{"login":"truthbk","id":448216,"avatar_url":"https://avatars0.githubusercontent.com/u/448216?v=4","gravatar_id":"","url":"https://api.github.com/users/truthbk","html_url":"https://github.com/truthbk","followers_url":"https://api.github.com/users/truthbk/followers","following_url":"https://api.github.com/users/truthbk/following{/other_user}","gists_url":"https://api.github.com/users/truthbk/gists{/gist_id}","starred_url":"https://api.github.com/users/truthbk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/truthbk/subscriptions","organizations_url":"https://api.github.com/users/truthbk/orgs","repos_url":"https://api.github.com/users/truthbk/repos","events_url":"https://api.github.com/users/truthbk/events{/privacy}","received_events_url":"https://api.github.com/users/truthbk/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/DataDog/datadog-agent/milestones/26","html_url":"https://github.com/DataDog/datadog-agent/milestone/26","labels_url":"https://api.github.com/repos/DataDog/datadog-agent/milestones/26/labels","id":3281428,"number":26,"title":"6.3.0","description":null,"creator":{"login":"xvello","id":6241083,"avatar_url":"https://avatars2.githubusercontent.com/u/6241083?v=4","gravatar_id":"","url":"https://api.github.com/users/xvello","html_url":"https://github.com/xvello","followers_url":"https://api.github.com/users/xvello/followers","following_url":"https://api.github.com/users/xvello/following{/other_user}","gists_url":"https://api.github.com/users/xvello/gists{/gist_id}","starred_url":"https://api.github.com/users/xvello/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xvello/subscriptions","organizations_url":"https://api.github.com/users/xvello/orgs","repos_url":"https://api.github.com/users/xvello/repos","events_url":"https://api.github.com/users/xvello/events{/privacy}","received_events_url":"https://api.github.com/users/xvello/received_events","type":"User","site_admin":false},"open_issues":10,"closed_issues":0,"state":"open","created_at":"2018-04-19T16:12:11Z","updated_at":"2018-05-07T15:19:15Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2018-05-07T09:22:00Z","updated_at":"2018-05-07T21:46:49Z","closed_at":null,"author_association":"MEMBER","pull_request":{"url":"https://api.github.com/repos/DataDog/datadog-agent/pulls/1672","html_url":"https://github.com/DataDog/datadog-agent/pull/1672","diff_url":"https://github.com/DataDog/datadog-agent/pull/1672.diff","patch_url":"https://github.com/DataDog/datadog-agent/pull/1672.patch"},"body":"### What does this PR do?\r\n\r\nValidates the auth token for all api endpoints by default using a middleware.\r\n\r\n### Motivation\r\n\r\nAdding validation for every endpoint was error-prone."},"comment":{"url":"https://api.github.com/repos/DataDog/datadog-agent/issues/comments/387217080","html_url":"https://github.com/DataDog/datadog-agent/pull/1672#issuecomment-387217080","issue_url":"https://api.github.com/repos/DataDog/datadog-agent/issues/1672","id":387217080,"user":{"login":"trishankatdatadog","id":33133073,"avatar_url":"https://avatars1.githubusercontent.com/u/33133073?v=4","gravatar_id":"","url":"https://api.github.com/users/trishankatdatadog","html_url":"https://github.com/trishankatdatadog","followers_url":"https://api.github.com/users/trishankatdatadog/followers","following_url":"https://api.github.com/users/trishankatdatadog/following{/other_user}","gists_url":"https://api.github.com/users/trishankatdatadog/gists{/gist_id}","starred_url":"https://api.github.com/users/trishankatdatadog/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trishankatdatadog/subscriptions","organizations_url":"https://api.github.com/users/trishankatdatadog/orgs","repos_url":"https://api.github.com/users/trishankatdatadog/repos","events_url":"https://api.github.com/users/trishankatdatadog/events{/privacy}","received_events_url":"https://api.github.com/users/trishankatdatadog/received_events","type":"User","site_admin":false},"created_at":"2018-05-07T21:46:49Z","updated_at":"2018-05-07T21:46:49Z","author_association":"NONE","body":"Here are some good recommendations we could use from the OAuth 2.0 RFC for Bearer Tokens: https://tools.ietf.org/html/rfc6750#section-5.3"}}
{"actor":{"display_login":"trishankatdatadog"}}