{"action":"created","comment":{"url":"https://api.github.com/repos/Tendrl/specifications/pulls/comments/129234596","pull_request_review_id":51984733,"id":129234596,"diff_hunk":"@@ -0,0 +1,124 @@\n+# Authentication and Authorisation (AA) linkage between tendrl UI and Grafana\n+\n+The intent of this spec is to:-\n+\n+  - Sync read-write and read-only roles per user between tendrl and grafana, priority being read-only.\n+  - Sync user creation and changes to existing users and their roles in tendrl to grafana.\n+  - Users authenticated via tendrl should be automatically authenticated in grafana as well.\n+  - Launching a cluster specific grafana dashboard should be pre-authorised from within tendrl ui.\n+\n+\n+## Problem Description\n+\n+Since the Tendrl stack is going to include Grafana for monitoring, so there will be a button in UI of Tendrl which can take users to Grafana Dashboard to view different charts.Tendrl has an authentication system and Grafana has there own authentication system as well. So instead of having two authentication for users, we are planning to bring it down to one.\n+  \n+## Use Cases\n+Provide seemless authorization between two dashboards.\n+There are three types of users in Tendrl:- \n+* Admin\n+* Limited\n+* Viewer","path":"specs/authentication_and_authorisation_linkage_be.adoc","position":20,"original_position":20,"commit_id":"c507bd5333bd3562b95acd724048ae1213960ad7","original_commit_id":"c507bd5333bd3562b95acd724048ae1213960ad7","user":{"login":"gnehapk","id":5517376,"avatar_url":"https://avatars2.githubusercontent.com/u/5517376?v=4","gravatar_id":"","url":"https://api.github.com/users/gnehapk","html_url":"https://github.com/gnehapk","followers_url":"https://api.github.com/users/gnehapk/followers","following_url":"https://api.github.com/users/gnehapk/following{/other_user}","gists_url":"https://api.github.com/users/gnehapk/gists{/gist_id}","starred_url":"https://api.github.com/users/gnehapk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gnehapk/subscriptions","organizations_url":"https://api.github.com/users/gnehapk/orgs","repos_url":"https://api.github.com/users/gnehapk/repos","events_url":"https://api.github.com/users/gnehapk/events{/privacy}","received_events_url":"https://api.github.com/users/gnehapk/received_events","type":"User","site_admin":false},"body":"@a2batic I think types of users - Admin, Limited and Normal. Refer API doc - https://github.com/Tendrl/api/blob/master/docs/authorizaton.adoc","created_at":"2017-07-25T07:52:36Z","updated_at":"2017-07-25T07:52:36Z","html_url":"https://github.com/Tendrl/specifications/pull/205#discussion_r129234596","pull_request_url":"https://api.github.com/repos/Tendrl/specifications/pulls/205","_links":{"self":{"href":"https://api.github.com/repos/Tendrl/specifications/pulls/comments/129234596"},"html":{"href":"https://github.com/Tendrl/specifications/pull/205#discussion_r129234596"},"pull_request":{"href":"https://api.github.com/repos/Tendrl/specifications/pulls/205"}}},"pull_request":{"url":"https://api.github.com/repos/Tendrl/specifications/pulls/205","id":132012369,"html_url":"https://github.com/Tendrl/specifications/pull/205","diff_url":"https://github.com/Tendrl/specifications/pull/205.diff","patch_url":"https://github.com/Tendrl/specifications/pull/205.patch","issue_url":"https://api.github.com/repos/Tendrl/specifications/issues/205","number":205,"state":"open","locked":false,"title":"Spec for AA linkage with grafana","user":{"login":"a2batic","id":12200504,"avatar_url":"https://avatars0.githubusercontent.com/u/12200504?v=4","gravatar_id":"","url":"https://api.github.com/users/a2batic","html_url":"https://github.com/a2batic","followers_url":"https://api.github.com/users/a2batic/followers","following_url":"https://api.github.com/users/a2batic/following{/other_user}","gists_url":"https://api.github.com/users/a2batic/gists{/gist_id}","starred_url":"https://api.github.com/users/a2batic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/a2batic/subscriptions","organizations_url":"https://api.github.com/users/a2batic/orgs","repos_url":"https://api.github.com/users/a2batic/repos","events_url":"https://api.github.com/users/a2batic/events{/privacy}","received_events_url":"https://api.github.com/users/a2batic/received_events","type":"User","site_admin":false},"body":"tendrl-bug-id: #191 ","created_at":"2017-07-24T09:58:54Z","updated_at":"2017-07-25T07:52:36Z","closed_at":null,"merged_at":null,"merge_commit_sha":"52345bf1fdd5db41c3d9cad78552ed7ed7790a3e","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/Tendrl/specifications/pulls/205/commits","review_comments_url":"https://api.github.com/repos/Tendrl/specifications/pulls/205/comments","review_comment_url":"https://api.github.com/repos/Tendrl/specifications/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Tendrl/specifications/issues/205/comments","statuses_url":"https://api.github.com/repos/Tendrl/specifications/statuses/c507bd5333bd3562b95acd724048ae1213960ad7","head":{"label":"a2batic:master","ref":"master","sha":"c507bd5333bd3562b95acd724048ae1213960ad7","user":{"login":"a2batic","id":12200504,"avatar_url":"https://avatars0.githubusercontent.com/u/12200504?v=4","gravatar_id":"","url":"https://api.github.com/users/a2batic","html_url":"https://github.com/a2batic","followers_url":"https://api.github.com/users/a2batic/followers","following_url":"https://api.github.com/users/a2batic/following{/other_user}","gists_url":"https://api.github.com/users/a2batic/gists{/gist_id}","starred_url":"https://api.github.com/users/a2batic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/a2batic/subscriptions","organizations_url":"https://api.github.com/users/a2batic/orgs","repos_url":"https://api.github.com/users/a2batic/repos","events_url":"https://api.github.com/users/a2batic/events{/privacy}","received_events_url":"https://api.github.com/users/a2batic/received_events","type":"User","site_admin":false},"repo":{"id":98174438,"name":"specifications","full_name":"a2batic/specifications","owner":{"login":"a2batic","id":12200504,"avatar_url":"https://avatars0.githubusercontent.com/u/12200504?v=4","gravatar_id":"","url":"https://api.github.com/users/a2batic","html_url":"https://github.com/a2batic","followers_url":"https://api.github.com/users/a2batic/followers","following_url":"https://api.github.com/users/a2batic/following{/other_user}","gists_url":"https://api.github.com/users/a2batic/gists{/gist_id}","starred_url":"https://api.github.com/users/a2batic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/a2batic/subscriptions","organizations_url":"https://api.github.com/users/a2batic/orgs","repos_url":"https://api.github.com/users/a2batic/repos","events_url":"https://api.github.com/users/a2batic/events{/privacy}","received_events_url":"https://api.github.com/users/a2batic/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/a2batic/specifications","description":"Tendrl specs go here","fork":true,"url":"https://api.github.com/repos/a2batic/specifications","forks_url":"https://api.github.com/repos/a2batic/specifications/forks","keys_url":"https://api.github.com/repos/a2batic/specifications/keys{/key_id}","collaborators_url":"https://api.github.com/repos/a2batic/specifications/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/a2batic/specifications/teams","hooks_url":"https://api.github.com/repos/a2batic/specifications/hooks","issue_events_url":"https://api.github.com/repos/a2batic/specifications/issues/events{/number}","events_url":"https://api.github.com/repos/a2batic/specifications/events","assignees_url":"https://api.github.com/repos/a2batic/specifications/assignees{/user}","branches_url":"https://api.github.com/repos/a2batic/specifications/branches{/branch}","tags_url":"https://api.github.com/repos/a2batic/specifications/tags","blobs_url":"https://api.github.com/repos/a2batic/specifications/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/a2batic/specifications/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/a2batic/specifications/git/refs{/sha}","trees_url":"https://api.github.com/repos/a2batic/specifications/git/trees{/sha}","statuses_url":"https://api.github.com/repos/a2batic/specifications/statuses/{sha}","languages_url":"https://api.github.com/repos/a2batic/specifications/languages","stargazers_url":"https://api.github.com/repos/a2batic/specifications/stargazers","contributors_url":"https://api.github.com/repos/a2batic/specifications/contributors","subscribers_url":"https://api.github.com/repos/a2batic/specifications/subscribers","subscription_url":"https://api.github.com/repos/a2batic/specifications/subscription","commits_url":"https://api.github.com/repos/a2batic/specifications/commits{/sha}","git_commits_url":"https://api.github.com/repos/a2batic/specifications/git/commits{/sha}","comments_url":"https://api.github.com/repos/a2batic/specifications/comments{/number}","issue_comment_url":"https://api.github.com/repos/a2batic/specifications/issues/comments{/number}","contents_url":"https://api.github.com/repos/a2batic/specifications/contents/{+path}","compare_url":"https://api.github.com/repos/a2batic/specifications/compare/{base}...{head}","merges_url":"https://api.github.com/repos/a2batic/specifications/merges","archive_url":"https://api.github.com/repos/a2batic/specifications/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/a2batic/specifications/downloads","issues_url":"https://api.github.com/repos/a2batic/specifications/issues{/number}","pulls_url":"https://api.github.com/repos/a2batic/specifications/pulls{/number}","milestones_url":"https://api.github.com/repos/a2batic/specifications/milestones{/number}","notifications_url":"https://api.github.com/repos/a2batic/specifications/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/a2batic/specifications/labels{/name}","releases_url":"https://api.github.com/repos/a2batic/specifications/releases{/id}","deployments_url":"https://api.github.com/repos/a2batic/specifications/deployments","created_at":"2017-07-24T09:38:17Z","updated_at":"2017-01-29T14:19:37Z","pushed_at":"2017-07-24T09:55:36Z","git_url":"git://github.com/a2batic/specifications.git","ssh_url":"git@github.com:a2batic/specifications.git","clone_url":"https://github.com/a2batic/specifications.git","svn_url":"https://github.com/a2batic/specifications","homepage":null,"size":278,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_projects":true,"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":"master"}},"base":{"label":"Tendrl:master","ref":"master","sha":"19ca20951f582f6741ef32489fc3fca343a38547","user":{"login":"Tendrl","id":19151627,"avatar_url":"https://avatars0.githubusercontent.com/u/19151627?v=4","gravatar_id":"","url":"https://api.github.com/users/Tendrl","html_url":"https://github.com/Tendrl","followers_url":"https://api.github.com/users/Tendrl/followers","following_url":"https://api.github.com/users/Tendrl/following{/other_user}","gists_url":"https://api.github.com/users/Tendrl/gists{/gist_id}","starred_url":"https://api.github.com/users/Tendrl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tendrl/subscriptions","organizations_url":"https://api.github.com/users/Tendrl/orgs","repos_url":"https://api.github.com/users/Tendrl/repos","events_url":"https://api.github.com/users/Tendrl/events{/privacy}","received_events_url":"https://api.github.com/users/Tendrl/received_events","type":"Organization","site_admin":false},"repo":{"id":74454505,"name":"specifications","full_name":"Tendrl/specifications","owner":{"login":"Tendrl","id":19151627,"avatar_url":"https://avatars0.githubusercontent.com/u/19151627?v=4","gravatar_id":"","url":"https://api.github.com/users/Tendrl","html_url":"https://github.com/Tendrl","followers_url":"https://api.github.com/users/Tendrl/followers","following_url":"https://api.github.com/users/Tendrl/following{/other_user}","gists_url":"https://api.github.com/users/Tendrl/gists{/gist_id}","starred_url":"https://api.github.com/users/Tendrl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tendrl/subscriptions","organizations_url":"https://api.github.com/users/Tendrl/orgs","repos_url":"https://api.github.com/users/Tendrl/repos","events_url":"https://api.github.com/users/Tendrl/events{/privacy}","received_events_url":"https://api.github.com/users/Tendrl/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Tendrl/specifications","description":"Tendrl specs go here","fork":false,"url":"https://api.github.com/repos/Tendrl/specifications","forks_url":"https://api.github.com/repos/Tendrl/specifications/forks","keys_url":"https://api.github.com/repos/Tendrl/specifications/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Tendrl/specifications/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Tendrl/specifications/teams","hooks_url":"https://api.github.com/repos/Tendrl/specifications/hooks","issue_events_url":"https://api.github.com/repos/Tendrl/specifications/issues/events{/number}","events_url":"https://api.github.com/repos/Tendrl/specifications/events","assignees_url":"https://api.github.com/repos/Tendrl/specifications/assignees{/user}","branches_url":"https://api.github.com/repos/Tendrl/specifications/branches{/branch}","tags_url":"https://api.github.com/repos/Tendrl/specifications/tags","blobs_url":"https://api.github.com/repos/Tendrl/specifications/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Tendrl/specifications/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Tendrl/specifications/git/refs{/sha}","trees_url":"https://api.github.com/repos/Tendrl/specifications/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Tendrl/specifications/statuses/{sha}","languages_url":"https://api.github.com/repos/Tendrl/specifications/languages","stargazers_url":"https://api.github.com/repos/Tendrl/specifications/stargazers","contributors_url":"https://api.github.com/repos/Tendrl/specifications/contributors","subscribers_url":"https://api.github.com/repos/Tendrl/specifications/subscribers","subscription_url":"https://api.github.com/repos/Tendrl/specifications/subscription","commits_url":"https://api.github.com/repos/Tendrl/specifications/commits{/sha}","git_commits_url":"https://api.github.com/repos/Tendrl/specifications/git/commits{/sha}","comments_url":"https://api.github.com/repos/Tendrl/specifications/comments{/number}","issue_comment_url":"https://api.github.com/repos/Tendrl/specifications/issues/comments{/number}","contents_url":"https://api.github.com/repos/Tendrl/specifications/contents/{+path}","compare_url":"https://api.github.com/repos/Tendrl/specifications/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Tendrl/specifications/merges","archive_url":"https://api.github.com/repos/Tendrl/specifications/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Tendrl/specifications/downloads","issues_url":"https://api.github.com/repos/Tendrl/specifications/issues{/number}","pulls_url":"https://api.github.com/repos/Tendrl/specifications/pulls{/number}","milestones_url":"https://api.github.com/repos/Tendrl/specifications/milestones{/number}","notifications_url":"https://api.github.com/repos/Tendrl/specifications/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Tendrl/specifications/labels{/name}","releases_url":"https://api.github.com/repos/Tendrl/specifications/releases{/id}","deployments_url":"https://api.github.com/repos/Tendrl/specifications/deployments","created_at":"2016-11-22T09:09:11Z","updated_at":"2017-01-29T14:19:37Z","pushed_at":"2017-07-25T07:45:48Z","git_url":"git://github.com/Tendrl/specifications.git","ssh_url":"git@github.com:Tendrl/specifications.git","clone_url":"https://github.com/Tendrl/specifications.git","svn_url":"https://github.com/Tendrl/specifications","homepage":null,"size":276,"stargazers_count":3,"watchers_count":3,"language":null,"has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":17,"mirror_url":null,"open_issues_count":50,"forks":17,"open_issues":50,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Tendrl/specifications/pulls/205"},"html":{"href":"https://github.com/Tendrl/specifications/pull/205"},"issue":{"href":"https://api.github.com/repos/Tendrl/specifications/issues/205"},"comments":{"href":"https://api.github.com/repos/Tendrl/specifications/issues/205/comments"},"review_comments":{"href":"https://api.github.com/repos/Tendrl/specifications/pulls/205/comments"},"review_comment":{"href":"https://api.github.com/repos/Tendrl/specifications/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Tendrl/specifications/pulls/205/commits"},"statuses":{"href":"https://api.github.com/repos/Tendrl/specifications/statuses/c507bd5333bd3562b95acd724048ae1213960ad7"}}}}
{"actor":{"display_login":"gnehapk"}}