{"action":"opened","number":10,"pull_request":{"url":"https://api.github.com/repos/antoiner77/letsencrypt.sh-ovh/pulls/10","id":129256861,"html_url":"https://github.com/antoiner77/letsencrypt.sh-ovh/pull/10","diff_url":"https://github.com/antoiner77/letsencrypt.sh-ovh/pull/10.diff","patch_url":"https://github.com/antoiner77/letsencrypt.sh-ovh/pull/10.patch","issue_url":"https://api.github.com/repos/antoiner77/letsencrypt.sh-ovh/issues/10","number":10,"state":"open","locked":false,"title":"restore a minimal API token init script according to public articles","user":{"login":"koolfy","id":706595,"avatar_url":"https://avatars1.githubusercontent.com/u/706595?v=3","gravatar_id":"","url":"https://api.github.com/users/koolfy","html_url":"https://github.com/koolfy","followers_url":"https://api.github.com/users/koolfy/followers","following_url":"https://api.github.com/users/koolfy/following{/other_user}","gists_url":"https://api.github.com/users/koolfy/gists{/gist_id}","starred_url":"https://api.github.com/users/koolfy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/koolfy/subscriptions","organizations_url":"https://api.github.com/users/koolfy/orgs","repos_url":"https://api.github.com/users/koolfy/repos","events_url":"https://api.github.com/users/koolfy/events{/privacy}","received_events_url":"https://api.github.com/users/koolfy/received_events","type":"User","site_admin":false},"body":"Yo, this is the fastest PR of my entire life, so please test it properly before merging it anywhere.\r\n\r\nIt should make your blogpost ( https://ungeek.fr/letsencrypt-api-ovh/ ) and its derivatives ( http://matthieukeller.com/2016/12/lets-encrypt-certificate-for-offline-servers-with-ovh-dns.html ) correct again, so that people do not need to go through the documentations and examples as I had to :)\r\n\r\nIt was not the end of the world, but it's better if other people after me don't need to understand all the logic, and can just reuse the python script ;)\r\n\r\nI updated the README.md too, as you will read the script defaults to requesting RW on /domain which is probably excessive, but would work 100% of the time for newbies.\r\nAn argument could be fed to the script to limit it further.\r\n\r\nI'll probably study closer what exact permissions are needed for certbot operations, so I can improve the script to anly request the exact correct operations on a specified domain name.\r\n\r\nI am aware that this breaks the --init part of your documentation, but I think it's for the better.\r\n\r\nAgain, sorry to rush this, I'm running against the clock to meet a deadline, and wanted to do this PR before I had the chance to forget :D \r\n\r\nThanks for saving my ass with this tool <3","created_at":"2017-07-06T18:56:22Z","updated_at":"2017-07-06T18:56:22Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/antoiner77/letsencrypt.sh-ovh/pulls/10/commits","review_comments_url":"https://api.github.com/repos/antoiner77/letsencrypt.sh-ovh/pulls/10/comments","review_comment_url":"https://api.github.com/repos/antoiner77/letsencrypt.sh-ovh/pulls/comments{/number}","comments_url":"https://api.github.com/repos/antoiner77/letsencrypt.sh-ovh/issues/10/comments","statuses_url":"https://api.github.com/repos/antoiner77/letsencrypt.sh-ovh/statuses/bed0a12431908e8757e7984b49bc46e3dda93809","head":{"label":"koolfy:fix_documentation_restore_init_script","ref":"fix_documentation_restore_init_script","sha":"bed0a12431908e8757e7984b49bc46e3dda93809","user":{"login":"koolfy","id":706595,"avatar_url":"https://avatars1.githubusercontent.com/u/706595?v=3","gravatar_id":"","url":"https://api.github.com/users/koolfy","html_url":"https://github.com/koolfy","followers_url":"https://api.github.com/users/koolfy/followers","following_url":"https://api.github.com/users/koolfy/following{/other_user}","gists_url":"https://api.github.com/users/koolfy/gists{/gist_id}","starred_url":"https://api.github.com/users/koolfy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/koolfy/subscriptions","organizations_url":"https://api.github.com/users/koolfy/orgs","repos_url":"https://api.github.com/users/koolfy/repos","events_url":"https://api.github.com/users/koolfy/events{/privacy}","received_events_url":"https://api.github.com/users/koolfy/received_events","type":"User","site_admin":false},"repo":{"id":96461598,"name":"letsencrypt.sh-ovh","full_name":"koolfy/letsencrypt.sh-ovh","owner":{"login":"koolfy","id":706595,"avatar_url":"https://avatars1.githubusercontent.com/u/706595?v=3","gravatar_id":"","url":"https://api.github.com/users/koolfy","html_url":"https://github.com/koolfy","followers_url":"https://api.github.com/users/koolfy/followers","following_url":"https://api.github.com/users/koolfy/following{/other_user}","gists_url":"https://api.github.com/users/koolfy/gists{/gist_id}","starred_url":"https://api.github.com/users/koolfy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/koolfy/subscriptions","organizations_url":"https://api.github.com/users/koolfy/orgs","repos_url":"https://api.github.com/users/koolfy/repos","events_url":"https://api.github.com/users/koolfy/events{/privacy}","received_events_url":"https://api.github.com/users/koolfy/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/koolfy/letsencrypt.sh-ovh","description":"OVH hook script","fork":true,"url":"https://api.github.com/repos/koolfy/letsencrypt.sh-ovh","forks_url":"https://api.github.com/repos/koolfy/letsencrypt.sh-ovh/forks","keys_url":"https://api.github.com/repos/koolfy/letsencrypt.sh-ovh/keys{/key_id}","collaborators_url":"https://api.github.com/repos/koolfy/letsencrypt.sh-ovh/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/koolfy/letsencrypt.sh-ovh/teams","hooks_url":"https://api.github.com/repos/koolfy/letsencrypt.sh-ovh/hooks","issue_events_url":"https://api.github.com/repos/koolfy/letsencrypt.sh-ovh/issues/events{/number}","events_url":"https://api.github.com/repos/koolfy/letsencrypt.sh-ovh/events","assignees_url":"https://api.github.com/repos/koolfy/letsencrypt.sh-ovh/assignees{/user}","branches_url":"https://api.github.com/repos/koolfy/letsencrypt.sh-ovh/branches{/branch}","tags_url":"https://api.github.com/repos/koolfy/letsencrypt.sh-ovh/tags","blobs_url":"https://api.github.com/repos/koolfy/letsencrypt.sh-ovh/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/koolfy/letsencrypt.sh-ovh/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/koolfy/letsencrypt.sh-ovh/git/refs{/sha}","trees_url":"https://api.github.com/repos/koolfy/letsencrypt.sh-ovh/git/trees{/sha}","statuses_url":"https://api.github.com/repos/koolfy/letsencrypt.sh-ovh/statuses/{sha}","languages_url":"https://api.github.com/repos/koolfy/letsencrypt.sh-ovh/languages","stargazers_url":"https://api.github.com/repos/koolfy/letsencrypt.sh-ovh/stargazers","contributors_url":"https://api.github.com/repos/koolfy/letsencrypt.sh-ovh/contributors","subscribers_url":"https://api.github.com/repos/koolfy/letsencrypt.sh-ovh/subscribers","subscription_url":"https://api.github.com/repos/koolfy/letsencrypt.sh-ovh/subscription","commits_url":"https://api.github.com/repos/koolfy/letsencrypt.sh-ovh/commits{/sha}","git_commits_url":"https://api.github.com/repos/koolfy/letsencrypt.sh-ovh/git/commits{/sha}","comments_url":"https://api.github.com/repos/koolfy/letsencrypt.sh-ovh/comments{/number}","issue_comment_url":"https://api.github.com/repos/koolfy/letsencrypt.sh-ovh/issues/comments{/number}","contents_url":"https://api.github.com/repos/koolfy/letsencrypt.sh-ovh/contents/{+path}","compare_url":"https://api.github.com/repos/koolfy/letsencrypt.sh-ovh/compare/{base}...{head}","merges_url":"https://api.github.com/repos/koolfy/letsencrypt.sh-ovh/merges","archive_url":"https://api.github.com/repos/koolfy/letsencrypt.sh-ovh/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/koolfy/letsencrypt.sh-ovh/downloads","issues_url":"https://api.github.com/repos/koolfy/letsencrypt.sh-ovh/issues{/number}","pulls_url":"https://api.github.com/repos/koolfy/letsencrypt.sh-ovh/pulls{/number}","milestones_url":"https://api.github.com/repos/koolfy/letsencrypt.sh-ovh/milestones{/number}","notifications_url":"https://api.github.com/repos/koolfy/letsencrypt.sh-ovh/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/koolfy/letsencrypt.sh-ovh/labels{/name}","releases_url":"https://api.github.com/repos/koolfy/letsencrypt.sh-ovh/releases{/id}","deployments_url":"https://api.github.com/repos/koolfy/letsencrypt.sh-ovh/deployments","created_at":"2017-07-06T18:43:41Z","updated_at":"2017-07-06T18:43:42Z","pushed_at":"2017-07-06T18:48:41Z","git_url":"git://github.com/koolfy/letsencrypt.sh-ovh.git","ssh_url":"git@github.com:koolfy/letsencrypt.sh-ovh.git","clone_url":"https://github.com/koolfy/letsencrypt.sh-ovh.git","svn_url":"https://github.com/koolfy/letsencrypt.sh-ovh","homepage":null,"size":10,"stargazers_count":0,"watchers_count":0,"language":"Python","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":"antoiner77:master","ref":"master","sha":"cad5db05d2dc228d9cbdc0a5ab0c72569228f933","user":{"login":"antoiner77","id":10193614,"avatar_url":"https://avatars1.githubusercontent.com/u/10193614?v=3","gravatar_id":"","url":"https://api.github.com/users/antoiner77","html_url":"https://github.com/antoiner77","followers_url":"https://api.github.com/users/antoiner77/followers","following_url":"https://api.github.com/users/antoiner77/following{/other_user}","gists_url":"https://api.github.com/users/antoiner77/gists{/gist_id}","starred_url":"https://api.github.com/users/antoiner77/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/antoiner77/subscriptions","organizations_url":"https://api.github.com/users/antoiner77/orgs","repos_url":"https://api.github.com/users/antoiner77/repos","events_url":"https://api.github.com/users/antoiner77/events{/privacy}","received_events_url":"https://api.github.com/users/antoiner77/received_events","type":"User","site_admin":false},"repo":{"id":56586477,"name":"letsencrypt.sh-ovh","full_name":"antoiner77/letsencrypt.sh-ovh","owner":{"login":"antoiner77","id":10193614,"avatar_url":"https://avatars1.githubusercontent.com/u/10193614?v=3","gravatar_id":"","url":"https://api.github.com/users/antoiner77","html_url":"https://github.com/antoiner77","followers_url":"https://api.github.com/users/antoiner77/followers","following_url":"https://api.github.com/users/antoiner77/following{/other_user}","gists_url":"https://api.github.com/users/antoiner77/gists{/gist_id}","starred_url":"https://api.github.com/users/antoiner77/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/antoiner77/subscriptions","organizations_url":"https://api.github.com/users/antoiner77/orgs","repos_url":"https://api.github.com/users/antoiner77/repos","events_url":"https://api.github.com/users/antoiner77/events{/privacy}","received_events_url":"https://api.github.com/users/antoiner77/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/antoiner77/letsencrypt.sh-ovh","description":"OVH hook script","fork":false,"url":"https://api.github.com/repos/antoiner77/letsencrypt.sh-ovh","forks_url":"https://api.github.com/repos/antoiner77/letsencrypt.sh-ovh/forks","keys_url":"https://api.github.com/repos/antoiner77/letsencrypt.sh-ovh/keys{/key_id}","collaborators_url":"https://api.github.com/repos/antoiner77/letsencrypt.sh-ovh/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/antoiner77/letsencrypt.sh-ovh/teams","hooks_url":"https://api.github.com/repos/antoiner77/letsencrypt.sh-ovh/hooks","issue_events_url":"https://api.github.com/repos/antoiner77/letsencrypt.sh-ovh/issues/events{/number}","events_url":"https://api.github.com/repos/antoiner77/letsencrypt.sh-ovh/events","assignees_url":"https://api.github.com/repos/antoiner77/letsencrypt.sh-ovh/assignees{/user}","branches_url":"https://api.github.com/repos/antoiner77/letsencrypt.sh-ovh/branches{/branch}","tags_url":"https://api.github.com/repos/antoiner77/letsencrypt.sh-ovh/tags","blobs_url":"https://api.github.com/repos/antoiner77/letsencrypt.sh-ovh/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/antoiner77/letsencrypt.sh-ovh/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/antoiner77/letsencrypt.sh-ovh/git/refs{/sha}","trees_url":"https://api.github.com/repos/antoiner77/letsencrypt.sh-ovh/git/trees{/sha}","statuses_url":"https://api.github.com/repos/antoiner77/letsencrypt.sh-ovh/statuses/{sha}","languages_url":"https://api.github.com/repos/antoiner77/letsencrypt.sh-ovh/languages","stargazers_url":"https://api.github.com/repos/antoiner77/letsencrypt.sh-ovh/stargazers","contributors_url":"https://api.github.com/repos/antoiner77/letsencrypt.sh-ovh/contributors","subscribers_url":"https://api.github.com/repos/antoiner77/letsencrypt.sh-ovh/subscribers","subscription_url":"https://api.github.com/repos/antoiner77/letsencrypt.sh-ovh/subscription","commits_url":"https://api.github.com/repos/antoiner77/letsencrypt.sh-ovh/commits{/sha}","git_commits_url":"https://api.github.com/repos/antoiner77/letsencrypt.sh-ovh/git/commits{/sha}","comments_url":"https://api.github.com/repos/antoiner77/letsencrypt.sh-ovh/comments{/number}","issue_comment_url":"https://api.github.com/repos/antoiner77/letsencrypt.sh-ovh/issues/comments{/number}","contents_url":"https://api.github.com/repos/antoiner77/letsencrypt.sh-ovh/contents/{+path}","compare_url":"https://api.github.com/repos/antoiner77/letsencrypt.sh-ovh/compare/{base}...{head}","merges_url":"https://api.github.com/repos/antoiner77/letsencrypt.sh-ovh/merges","archive_url":"https://api.github.com/repos/antoiner77/letsencrypt.sh-ovh/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/antoiner77/letsencrypt.sh-ovh/downloads","issues_url":"https://api.github.com/repos/antoiner77/letsencrypt.sh-ovh/issues{/number}","pulls_url":"https://api.github.com/repos/antoiner77/letsencrypt.sh-ovh/pulls{/number}","milestones_url":"https://api.github.com/repos/antoiner77/letsencrypt.sh-ovh/milestones{/number}","notifications_url":"https://api.github.com/repos/antoiner77/letsencrypt.sh-ovh/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/antoiner77/letsencrypt.sh-ovh/labels{/name}","releases_url":"https://api.github.com/repos/antoiner77/letsencrypt.sh-ovh/releases{/id}","deployments_url":"https://api.github.com/repos/antoiner77/letsencrypt.sh-ovh/deployments","created_at":"2016-04-19T10:11:13Z","updated_at":"2017-04-20T12:26:39Z","pushed_at":"2017-05-28T15:25:06Z","git_url":"git://github.com/antoiner77/letsencrypt.sh-ovh.git","ssh_url":"git@github.com:antoiner77/letsencrypt.sh-ovh.git","clone_url":"https://github.com/antoiner77/letsencrypt.sh-ovh.git","svn_url":"https://github.com/antoiner77/letsencrypt.sh-ovh","homepage":null,"size":10,"stargazers_count":7,"watchers_count":7,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":10,"mirror_url":null,"open_issues_count":1,"forks":10,"open_issues":1,"watchers":7,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/antoiner77/letsencrypt.sh-ovh/pulls/10"},"html":{"href":"https://github.com/antoiner77/letsencrypt.sh-ovh/pull/10"},"issue":{"href":"https://api.github.com/repos/antoiner77/letsencrypt.sh-ovh/issues/10"},"comments":{"href":"https://api.github.com/repos/antoiner77/letsencrypt.sh-ovh/issues/10/comments"},"review_comments":{"href":"https://api.github.com/repos/antoiner77/letsencrypt.sh-ovh/pulls/10/comments"},"review_comment":{"href":"https://api.github.com/repos/antoiner77/letsencrypt.sh-ovh/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/antoiner77/letsencrypt.sh-ovh/pulls/10/commits"},"statuses":{"href":"https://api.github.com/repos/antoiner77/letsencrypt.sh-ovh/statuses/bed0a12431908e8757e7984b49bc46e3dda93809"}},"merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":1,"additions":35,"deletions":0,"changed_files":2}}
{"actor":{"display_login":"koolfy"}}