{"action":"created","comment":{"url":"https://api.github.com/repos/cds-snc/nrcan_api/pulls/comments/172984568","pull_request_review_id":102097161,"id":172984568,"diff_hunk":"@@ -1,23 +1,25 @@\n import os\n import hashlib\n+import secrets\n import typing\n from http import HTTPStatus\n import zipfile\n+import requests\n import flask\n from werkzeug import utils\n from azure.common import AzureMissingResourceHttpError\n from extract_endpoint import azure_utils\n \n \n-DEFAULT_ENDPOINT_SECRET_KEY = 'no key'\n+DEFAULT_ETL_SECRET_KEY = 'no key'","path":"extract_endpoint/src/extract_endpoint/endpoint.py","position":15,"original_position":15,"commit_id":"294c373aa07216428a7d1054e5b7bab9d66bbed6","original_commit_id":"294c373aa07216428a7d1054e5b7bab9d66bbed6","user":{"login":"sastels","id":8228248,"avatar_url":"https://avatars2.githubusercontent.com/u/8228248?v=4","gravatar_id":"","url":"https://api.github.com/users/sastels","html_url":"https://github.com/sastels","followers_url":"https://api.github.com/users/sastels/followers","following_url":"https://api.github.com/users/sastels/following{/other_user}","gists_url":"https://api.github.com/users/sastels/gists{/gist_id}","starred_url":"https://api.github.com/users/sastels/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sastels/subscriptions","organizations_url":"https://api.github.com/users/sastels/orgs","repos_url":"https://api.github.com/users/sastels/repos","events_url":"https://api.github.com/users/sastels/events{/privacy}","received_events_url":"https://api.github.com/users/sastels/received_events","type":"User","site_admin":false},"body":"Use a shared secret key in all three places (post, endpoint, etl wrapper)","created_at":"2018-03-07T21:06:39Z","updated_at":"2018-03-07T21:06:39Z","html_url":"https://github.com/cds-snc/nrcan_api/pull/321#discussion_r172984568","pull_request_url":"https://api.github.com/repos/cds-snc/nrcan_api/pulls/321","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/cds-snc/nrcan_api/pulls/comments/172984568"},"html":{"href":"https://github.com/cds-snc/nrcan_api/pull/321#discussion_r172984568"},"pull_request":{"href":"https://api.github.com/repos/cds-snc/nrcan_api/pulls/321"}}},"pull_request":{"url":"https://api.github.com/repos/cds-snc/nrcan_api/pulls/321","id":172995914,"html_url":"https://github.com/cds-snc/nrcan_api/pull/321","diff_url":"https://github.com/cds-snc/nrcan_api/pull/321.diff","patch_url":"https://github.com/cds-snc/nrcan_api/pull/321.patch","issue_url":"https://api.github.com/repos/cds-snc/nrcan_api/issues/321","number":321,"state":"open","locked":false,"title":"Endpoint triggers TL","user":{"login":"sastels","id":8228248,"avatar_url":"https://avatars2.githubusercontent.com/u/8228248?v=4","gravatar_id":"","url":"https://api.github.com/users/sastels","html_url":"https://github.com/sastels","followers_url":"https://api.github.com/users/sastels/followers","following_url":"https://api.github.com/users/sastels/following{/other_user}","gists_url":"https://api.github.com/users/sastels/gists{/gist_id}","starred_url":"https://api.github.com/users/sastels/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sastels/subscriptions","organizations_url":"https://api.github.com/users/sastels/orgs","repos_url":"https://api.github.com/users/sastels/repos","events_url":"https://api.github.com/users/sastels/events{/privacy}","received_events_url":"https://api.github.com/users/sastels/received_events","type":"User","site_admin":false},"body":"Have endpoint trigger TL:\r\n- when finished uploading to Azure\r\n- when post_to_endpoint asks it to (ie for a manual trigger)","created_at":"2018-03-05T21:47:32Z","updated_at":"2018-03-07T21:06:39Z","closed_at":null,"merged_at":null,"merge_commit_sha":"29e48b9eb33a07ce3d2fce7acf41db0b7f85fd6e","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/cds-snc/nrcan_api/pulls/321/commits","review_comments_url":"https://api.github.com/repos/cds-snc/nrcan_api/pulls/321/comments","review_comment_url":"https://api.github.com/repos/cds-snc/nrcan_api/pulls/comments{/number}","comments_url":"https://api.github.com/repos/cds-snc/nrcan_api/issues/321/comments","statuses_url":"https://api.github.com/repos/cds-snc/nrcan_api/statuses/294c373aa07216428a7d1054e5b7bab9d66bbed6","head":{"label":"cds-snc:endpoint_triggers_tl","ref":"endpoint_triggers_tl","sha":"294c373aa07216428a7d1054e5b7bab9d66bbed6","user":{"login":"cds-snc","id":30166251,"avatar_url":"https://avatars1.githubusercontent.com/u/30166251?v=4","gravatar_id":"","url":"https://api.github.com/users/cds-snc","html_url":"https://github.com/cds-snc","followers_url":"https://api.github.com/users/cds-snc/followers","following_url":"https://api.github.com/users/cds-snc/following{/other_user}","gists_url":"https://api.github.com/users/cds-snc/gists{/gist_id}","starred_url":"https://api.github.com/users/cds-snc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cds-snc/subscriptions","organizations_url":"https://api.github.com/users/cds-snc/orgs","repos_url":"https://api.github.com/users/cds-snc/repos","events_url":"https://api.github.com/users/cds-snc/events{/privacy}","received_events_url":"https://api.github.com/users/cds-snc/received_events","type":"Organization","site_admin":false},"repo":{"id":111843247,"name":"nrcan_api","full_name":"cds-snc/nrcan_api","owner":{"login":"cds-snc","id":30166251,"avatar_url":"https://avatars1.githubusercontent.com/u/30166251?v=4","gravatar_id":"","url":"https://api.github.com/users/cds-snc","html_url":"https://github.com/cds-snc","followers_url":"https://api.github.com/users/cds-snc/followers","following_url":"https://api.github.com/users/cds-snc/following{/other_user}","gists_url":"https://api.github.com/users/cds-snc/gists{/gist_id}","starred_url":"https://api.github.com/users/cds-snc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cds-snc/subscriptions","organizations_url":"https://api.github.com/users/cds-snc/orgs","repos_url":"https://api.github.com/users/cds-snc/repos","events_url":"https://api.github.com/users/cds-snc/events{/privacy}","received_events_url":"https://api.github.com/users/cds-snc/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cds-snc/nrcan_api","description":"An API for Natural Resources Canada's Energuide data.","fork":false,"url":"https://api.github.com/repos/cds-snc/nrcan_api","forks_url":"https://api.github.com/repos/cds-snc/nrcan_api/forks","keys_url":"https://api.github.com/repos/cds-snc/nrcan_api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cds-snc/nrcan_api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cds-snc/nrcan_api/teams","hooks_url":"https://api.github.com/repos/cds-snc/nrcan_api/hooks","issue_events_url":"https://api.github.com/repos/cds-snc/nrcan_api/issues/events{/number}","events_url":"https://api.github.com/repos/cds-snc/nrcan_api/events","assignees_url":"https://api.github.com/repos/cds-snc/nrcan_api/assignees{/user}","branches_url":"https://api.github.com/repos/cds-snc/nrcan_api/branches{/branch}","tags_url":"https://api.github.com/repos/cds-snc/nrcan_api/tags","blobs_url":"https://api.github.com/repos/cds-snc/nrcan_api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cds-snc/nrcan_api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cds-snc/nrcan_api/git/refs{/sha}","trees_url":"https://api.github.com/repos/cds-snc/nrcan_api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cds-snc/nrcan_api/statuses/{sha}","languages_url":"https://api.github.com/repos/cds-snc/nrcan_api/languages","stargazers_url":"https://api.github.com/repos/cds-snc/nrcan_api/stargazers","contributors_url":"https://api.github.com/repos/cds-snc/nrcan_api/contributors","subscribers_url":"https://api.github.com/repos/cds-snc/nrcan_api/subscribers","subscription_url":"https://api.github.com/repos/cds-snc/nrcan_api/subscription","commits_url":"https://api.github.com/repos/cds-snc/nrcan_api/commits{/sha}","git_commits_url":"https://api.github.com/repos/cds-snc/nrcan_api/git/commits{/sha}","comments_url":"https://api.github.com/repos/cds-snc/nrcan_api/comments{/number}","issue_comment_url":"https://api.github.com/repos/cds-snc/nrcan_api/issues/comments{/number}","contents_url":"https://api.github.com/repos/cds-snc/nrcan_api/contents/{+path}","compare_url":"https://api.github.com/repos/cds-snc/nrcan_api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cds-snc/nrcan_api/merges","archive_url":"https://api.github.com/repos/cds-snc/nrcan_api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cds-snc/nrcan_api/downloads","issues_url":"https://api.github.com/repos/cds-snc/nrcan_api/issues{/number}","pulls_url":"https://api.github.com/repos/cds-snc/nrcan_api/pulls{/number}","milestones_url":"https://api.github.com/repos/cds-snc/nrcan_api/milestones{/number}","notifications_url":"https://api.github.com/repos/cds-snc/nrcan_api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cds-snc/nrcan_api/labels{/name}","releases_url":"https://api.github.com/repos/cds-snc/nrcan_api/releases{/id}","deployments_url":"https://api.github.com/repos/cds-snc/nrcan_api/deployments","created_at":"2017-11-23T19:19:13Z","updated_at":"2018-03-05T22:03:55Z","pushed_at":"2018-03-07T21:03:21Z","git_url":"git://github.com/cds-snc/nrcan_api.git","ssh_url":"git@github.com:cds-snc/nrcan_api.git","clone_url":"https://github.com/cds-snc/nrcan_api.git","svn_url":"https://github.com/cds-snc/nrcan_api","homepage":null,"size":1828,"stargazers_count":2,"watchers_count":2,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"archived":false,"open_issues_count":8,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":2,"open_issues":8,"watchers":2,"default_branch":"master"}},"base":{"label":"cds-snc:master","ref":"master","sha":"aed8aa3d4b437a777d41d456cd4ef796077c3d27","user":{"login":"cds-snc","id":30166251,"avatar_url":"https://avatars1.githubusercontent.com/u/30166251?v=4","gravatar_id":"","url":"https://api.github.com/users/cds-snc","html_url":"https://github.com/cds-snc","followers_url":"https://api.github.com/users/cds-snc/followers","following_url":"https://api.github.com/users/cds-snc/following{/other_user}","gists_url":"https://api.github.com/users/cds-snc/gists{/gist_id}","starred_url":"https://api.github.com/users/cds-snc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cds-snc/subscriptions","organizations_url":"https://api.github.com/users/cds-snc/orgs","repos_url":"https://api.github.com/users/cds-snc/repos","events_url":"https://api.github.com/users/cds-snc/events{/privacy}","received_events_url":"https://api.github.com/users/cds-snc/received_events","type":"Organization","site_admin":false},"repo":{"id":111843247,"name":"nrcan_api","full_name":"cds-snc/nrcan_api","owner":{"login":"cds-snc","id":30166251,"avatar_url":"https://avatars1.githubusercontent.com/u/30166251?v=4","gravatar_id":"","url":"https://api.github.com/users/cds-snc","html_url":"https://github.com/cds-snc","followers_url":"https://api.github.com/users/cds-snc/followers","following_url":"https://api.github.com/users/cds-snc/following{/other_user}","gists_url":"https://api.github.com/users/cds-snc/gists{/gist_id}","starred_url":"https://api.github.com/users/cds-snc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cds-snc/subscriptions","organizations_url":"https://api.github.com/users/cds-snc/orgs","repos_url":"https://api.github.com/users/cds-snc/repos","events_url":"https://api.github.com/users/cds-snc/events{/privacy}","received_events_url":"https://api.github.com/users/cds-snc/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cds-snc/nrcan_api","description":"An API for Natural Resources Canada's Energuide data.","fork":false,"url":"https://api.github.com/repos/cds-snc/nrcan_api","forks_url":"https://api.github.com/repos/cds-snc/nrcan_api/forks","keys_url":"https://api.github.com/repos/cds-snc/nrcan_api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cds-snc/nrcan_api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cds-snc/nrcan_api/teams","hooks_url":"https://api.github.com/repos/cds-snc/nrcan_api/hooks","issue_events_url":"https://api.github.com/repos/cds-snc/nrcan_api/issues/events{/number}","events_url":"https://api.github.com/repos/cds-snc/nrcan_api/events","assignees_url":"https://api.github.com/repos/cds-snc/nrcan_api/assignees{/user}","branches_url":"https://api.github.com/repos/cds-snc/nrcan_api/branches{/branch}","tags_url":"https://api.github.com/repos/cds-snc/nrcan_api/tags","blobs_url":"https://api.github.com/repos/cds-snc/nrcan_api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cds-snc/nrcan_api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cds-snc/nrcan_api/git/refs{/sha}","trees_url":"https://api.github.com/repos/cds-snc/nrcan_api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cds-snc/nrcan_api/statuses/{sha}","languages_url":"https://api.github.com/repos/cds-snc/nrcan_api/languages","stargazers_url":"https://api.github.com/repos/cds-snc/nrcan_api/stargazers","contributors_url":"https://api.github.com/repos/cds-snc/nrcan_api/contributors","subscribers_url":"https://api.github.com/repos/cds-snc/nrcan_api/subscribers","subscription_url":"https://api.github.com/repos/cds-snc/nrcan_api/subscription","commits_url":"https://api.github.com/repos/cds-snc/nrcan_api/commits{/sha}","git_commits_url":"https://api.github.com/repos/cds-snc/nrcan_api/git/commits{/sha}","comments_url":"https://api.github.com/repos/cds-snc/nrcan_api/comments{/number}","issue_comment_url":"https://api.github.com/repos/cds-snc/nrcan_api/issues/comments{/number}","contents_url":"https://api.github.com/repos/cds-snc/nrcan_api/contents/{+path}","compare_url":"https://api.github.com/repos/cds-snc/nrcan_api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cds-snc/nrcan_api/merges","archive_url":"https://api.github.com/repos/cds-snc/nrcan_api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cds-snc/nrcan_api/downloads","issues_url":"https://api.github.com/repos/cds-snc/nrcan_api/issues{/number}","pulls_url":"https://api.github.com/repos/cds-snc/nrcan_api/pulls{/number}","milestones_url":"https://api.github.com/repos/cds-snc/nrcan_api/milestones{/number}","notifications_url":"https://api.github.com/repos/cds-snc/nrcan_api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cds-snc/nrcan_api/labels{/name}","releases_url":"https://api.github.com/repos/cds-snc/nrcan_api/releases{/id}","deployments_url":"https://api.github.com/repos/cds-snc/nrcan_api/deployments","created_at":"2017-11-23T19:19:13Z","updated_at":"2018-03-05T22:03:55Z","pushed_at":"2018-03-07T21:03:21Z","git_url":"git://github.com/cds-snc/nrcan_api.git","ssh_url":"git@github.com:cds-snc/nrcan_api.git","clone_url":"https://github.com/cds-snc/nrcan_api.git","svn_url":"https://github.com/cds-snc/nrcan_api","homepage":null,"size":1828,"stargazers_count":2,"watchers_count":2,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"archived":false,"open_issues_count":8,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":2,"open_issues":8,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/cds-snc/nrcan_api/pulls/321"},"html":{"href":"https://github.com/cds-snc/nrcan_api/pull/321"},"issue":{"href":"https://api.github.com/repos/cds-snc/nrcan_api/issues/321"},"comments":{"href":"https://api.github.com/repos/cds-snc/nrcan_api/issues/321/comments"},"review_comments":{"href":"https://api.github.com/repos/cds-snc/nrcan_api/pulls/321/comments"},"review_comment":{"href":"https://api.github.com/repos/cds-snc/nrcan_api/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/cds-snc/nrcan_api/pulls/321/commits"},"statuses":{"href":"https://api.github.com/repos/cds-snc/nrcan_api/statuses/294c373aa07216428a7d1054e5b7bab9d66bbed6"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"sastels"}}