{"action":"created","issue":{"url":"https://api.github.com/repos/kubernetes/heapster/issues/1324","repository_url":"https://api.github.com/repos/kubernetes/heapster","labels_url":"https://api.github.com/repos/kubernetes/heapster/issues/1324/labels{/name}","comments_url":"https://api.github.com/repos/kubernetes/heapster/issues/1324/comments","events_url":"https://api.github.com/repos/kubernetes/heapster/issues/1324/events","html_url":"https://github.com/kubernetes/heapster/pull/1324","id":180284610,"number":1324,"title":"Add support for scoped tokens in Monasca Sink","user":{"login":"taimir","id":8666527,"avatar_url":"https://avatars.githubusercontent.com/u/8666527?v=3","gravatar_id":"","url":"https://api.github.com/users/taimir","html_url":"https://github.com/taimir","followers_url":"https://api.github.com/users/taimir/followers","following_url":"https://api.github.com/users/taimir/following{/other_user}","gists_url":"https://api.github.com/users/taimir/gists{/gist_id}","starred_url":"https://api.github.com/users/taimir/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/taimir/subscriptions","organizations_url":"https://api.github.com/users/taimir/orgs","repos_url":"https://api.github.com/users/taimir/repos","events_url":"https://api.github.com/users/taimir/events{/privacy}","received_events_url":"https://api.github.com/users/taimir/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/kubernetes/heapster/labels/cla:%20yes","name":"cla: yes","color":"bfe5bf"},{"url":"https://api.github.com/repos/kubernetes/heapster/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2016-09-30T11:45:58Z","updated_at":"2016-10-11T09:52:26Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/kubernetes/heapster/pulls/1324","html_url":"https://github.com/kubernetes/heapster/pull/1324","diff_url":"https://github.com/kubernetes/heapster/pull/1324.diff","patch_url":"https://github.com/kubernetes/heapster/pull/1324.patch"},"body":"In practice most Monasca monitoring setups require an authorization role for the monasca metric collecting agents (hear the heapster monasca sink). Since roles are only associated with scope authorization, this needs to be supported.\r\n\r\nThe required change is in the `keystone_client.go`, where a scope is added to the token creation request if `TenantID` has been provided by the user. Note that the currently used version of `gophercloud` (OpenStack client) requires that there is no `TenantID` field in the AuthOpts passed to a token creation request, that's why it needs to be set to empty.\n\n<!-- Reviewable:start -->\n---\nThis change is [<img src=\"https://reviewable.kubernetes.io/review_button.svg\" height=\"34\" align=\"absmiddle\" alt=\"Reviewable\"/>](https://reviewable.kubernetes.io/reviews/kubernetes/heapster/1324)\n<!-- Reviewable:end -->\n"},"comment":{"url":"https://api.github.com/repos/kubernetes/heapster/issues/comments/252864476","html_url":"https://github.com/kubernetes/heapster/pull/1324#issuecomment-252864476","issue_url":"https://api.github.com/repos/kubernetes/heapster/issues/1324","id":252864476,"user":{"login":"cheld","id":7448799,"avatar_url":"https://avatars.githubusercontent.com/u/7448799?v=3","gravatar_id":"","url":"https://api.github.com/users/cheld","html_url":"https://github.com/cheld","followers_url":"https://api.github.com/users/cheld/followers","following_url":"https://api.github.com/users/cheld/following{/other_user}","gists_url":"https://api.github.com/users/cheld/gists{/gist_id}","starred_url":"https://api.github.com/users/cheld/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cheld/subscriptions","organizations_url":"https://api.github.com/users/cheld/orgs","repos_url":"https://api.github.com/users/cheld/repos","events_url":"https://api.github.com/users/cheld/events{/privacy}","received_events_url":"https://api.github.com/users/cheld/received_events","type":"User","site_admin":false},"created_at":"2016-10-11T09:52:26Z","updated_at":"2016-10-11T09:52:26Z","body":"manually tested and code reviewed. lgtm"}}
{"actor":{"display_login":"cheld"}}