{"action":"created","issue":{"url":"https://api.github.com/repos/lukas2511/dehydrated/issues/513","repository_url":"https://api.github.com/repos/lukas2511/dehydrated","labels_url":"https://api.github.com/repos/lukas2511/dehydrated/issues/513/labels{/name}","comments_url":"https://api.github.com/repos/lukas2511/dehydrated/issues/513/comments","events_url":"https://api.github.com/repos/lukas2511/dehydrated/issues/513/events","html_url":"https://github.com/lukas2511/dehydrated/issues/513","id":306131695,"number":513,"title":"OCSP stapling file is updated after hooks are called","user":{"login":"twrist","id":670020,"avatar_url":"https://avatars2.githubusercontent.com/u/670020?v=4","gravatar_id":"","url":"https://api.github.com/users/twrist","html_url":"https://github.com/twrist","followers_url":"https://api.github.com/users/twrist/followers","following_url":"https://api.github.com/users/twrist/following{/other_user}","gists_url":"https://api.github.com/users/twrist/gists{/gist_id}","starred_url":"https://api.github.com/users/twrist/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/twrist/subscriptions","organizations_url":"https://api.github.com/users/twrist/orgs","repos_url":"https://api.github.com/users/twrist/repos","events_url":"https://api.github.com/users/twrist/events{/privacy}","received_events_url":"https://api.github.com/users/twrist/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/lukas2511/dehydrated/milestones/5","html_url":"https://github.com/lukas2511/dehydrated/milestone/5","labels_url":"https://api.github.com/repos/lukas2511/dehydrated/milestones/5/labels","id":3185308,"number":5,"title":"Release 0.6.2","description":"","creator":{"login":"lukas2511","id":85965,"avatar_url":"https://avatars0.githubusercontent.com/u/85965?v=4","gravatar_id":"","url":"https://api.github.com/users/lukas2511","html_url":"https://github.com/lukas2511","followers_url":"https://api.github.com/users/lukas2511/followers","following_url":"https://api.github.com/users/lukas2511/following{/other_user}","gists_url":"https://api.github.com/users/lukas2511/gists{/gist_id}","starred_url":"https://api.github.com/users/lukas2511/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lukas2511/subscriptions","organizations_url":"https://api.github.com/users/lukas2511/orgs","repos_url":"https://api.github.com/users/lukas2511/repos","events_url":"https://api.github.com/users/lukas2511/events{/privacy}","received_events_url":"https://api.github.com/users/lukas2511/received_events","type":"User","site_admin":false},"open_issues":3,"closed_issues":4,"state":"open","created_at":"2018-03-13T19:59:41Z","updated_at":"2018-04-08T20:48:48Z","due_on":null,"closed_at":null},"comments":0,"created_at":"2018-03-17T06:06:00Z","updated_at":"2018-04-08T20:48:48Z","closed_at":"2018-04-08T20:48:48Z","author_association":"CONTRIBUTOR","body":"With `OCSP_FETCH=\"yes\"`, the code responsible for fetching the OCSP response is run after the deploy_cert & unchanged_cert hooks are called. This makes it impossible to update the stapling files for haproxy & other webservers that require the file to be named in a specific way.\r\n\r\nPerhaps one way of solving it could be calling a new hook `ocsp_update` whenever the response is updated:\r\n`[[ -n \"${HOOK}\" ]] && \"${HOOK}\" \"ocsp_update\" \"${domain}\" \"${certdir}/ocsp.der\"`"},"comment":{"url":"https://api.github.com/repos/lukas2511/dehydrated/issues/comments/379581402","html_url":"https://github.com/lukas2511/dehydrated/issues/513#issuecomment-379581402","issue_url":"https://api.github.com/repos/lukas2511/dehydrated/issues/513","id":379581402,"user":{"login":"lukas2511","id":85965,"avatar_url":"https://avatars0.githubusercontent.com/u/85965?v=4","gravatar_id":"","url":"https://api.github.com/users/lukas2511","html_url":"https://github.com/lukas2511","followers_url":"https://api.github.com/users/lukas2511/followers","following_url":"https://api.github.com/users/lukas2511/following{/other_user}","gists_url":"https://api.github.com/users/lukas2511/gists{/gist_id}","starred_url":"https://api.github.com/users/lukas2511/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lukas2511/subscriptions","organizations_url":"https://api.github.com/users/lukas2511/orgs","repos_url":"https://api.github.com/users/lukas2511/repos","events_url":"https://api.github.com/users/lukas2511/events{/privacy}","received_events_url":"https://api.github.com/users/lukas2511/received_events","type":"User","site_admin":false},"created_at":"2018-04-08T20:48:48Z","updated_at":"2018-04-08T20:48:48Z","author_association":"OWNER","body":"I merged your pull-request but extended it in 8ba56a8048a15b8f80eb46fd9f95e2e98147f935. Basically renamed the hook to deploy_ocsp (to be similar to deploy_cert) and exported altnames for use inside the hook. Thanks for the suggestion and the initial pull-request!"}}
{"actor":{"display_login":"lukas2511"}}