{"action":"created","comment":{"url":"https://api.github.com/repos/puppetlabs/puppetserver-ca-cli/pulls/comments/204952174","pull_request_review_id":140127392,"id":204952174,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwNDk1MjE3NA==","diff_hunk":"@@ -0,0 +1,149 @@\n+require 'puppetserver/ca/utils'\n+\n+require 'optparse'\n+require 'openssl'\n+require 'net/https'\n+require 'json'\n+\n+module Puppetserver\n+  module Ca\n+    class RevokeAction\n+      SUMMARY = 'Revoke a given certificate'\n+      BANNER = <<-BANNER\n+Usage:\n+  puppetserver ca revoke [--help|--version]\n+  puppetserver ca revoke CERTNAME\n+\n+Description:\n+Given a valid certname, instructs the CA to revoke it over\n+HTTPS using the local agent's PKI\n+\n+Options:\n+BANNER\n+\n+      def self.parser(parsed = {})\n+        OptionParser.new do |o|\n+          o.banner = BANNER\n+          o.on('--config', 'Path to puppet.conf') do |conf|","path":"lib/puppetserver/ca/revoke_action.rb","position":27,"original_position":27,"commit_id":"b5e44badd20c44d1f0f93a114e4ece7a37bf42a3","original_commit_id":"b5e44badd20c44d1f0f93a114e4ece7a37bf42a3","user":{"login":"justinstoller","id":241423,"node_id":"MDQ6VXNlcjI0MTQyMw==","avatar_url":"https://avatars0.githubusercontent.com/u/241423?v=4","gravatar_id":"","url":"https://api.github.com/users/justinstoller","html_url":"https://github.com/justinstoller","followers_url":"https://api.github.com/users/justinstoller/followers","following_url":"https://api.github.com/users/justinstoller/following{/other_user}","gists_url":"https://api.github.com/users/justinstoller/gists{/gist_id}","starred_url":"https://api.github.com/users/justinstoller/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/justinstoller/subscriptions","organizations_url":"https://api.github.com/users/justinstoller/orgs","repos_url":"https://api.github.com/users/justinstoller/repos","events_url":"https://api.github.com/users/justinstoller/events{/privacy}","received_events_url":"https://api.github.com/users/justinstoller/received_events","type":"User","site_admin":false},"body":"should this be lifted to the main cli class? I think eventually it would then need to reference both a puppet server's conf.d and a puppet.conf??? But maybe the Cli class is a better place for it for the time being regardless?","created_at":"2018-07-25T00:33:00Z","updated_at":"2018-07-25T00:33:00Z","html_url":"https://github.com/puppetlabs/puppetserver-ca-cli/pull/3#discussion_r204952174","pull_request_url":"https://api.github.com/repos/puppetlabs/puppetserver-ca-cli/pulls/3","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/puppetlabs/puppetserver-ca-cli/pulls/comments/204952174"},"html":{"href":"https://github.com/puppetlabs/puppetserver-ca-cli/pull/3#discussion_r204952174"},"pull_request":{"href":"https://api.github.com/repos/puppetlabs/puppetserver-ca-cli/pulls/3"}}},"pull_request":{"url":"https://api.github.com/repos/puppetlabs/puppetserver-ca-cli/pulls/3","id":203364235,"node_id":"MDExOlB1bGxSZXF1ZXN0MjAzMzY0MjM1","html_url":"https://github.com/puppetlabs/puppetserver-ca-cli/pull/3","diff_url":"https://github.com/puppetlabs/puppetserver-ca-cli/pull/3.diff","patch_url":"https://github.com/puppetlabs/puppetserver-ca-cli/pull/3.patch","issue_url":"https://api.github.com/repos/puppetlabs/puppetserver-ca-cli/issues/3","number":3,"state":"open","locked":false,"title":"[WIP] Add `revoke` action","user":{"login":"justinstoller","id":241423,"node_id":"MDQ6VXNlcjI0MTQyMw==","avatar_url":"https://avatars0.githubusercontent.com/u/241423?v=4","gravatar_id":"","url":"https://api.github.com/users/justinstoller","html_url":"https://github.com/justinstoller","followers_url":"https://api.github.com/users/justinstoller/followers","following_url":"https://api.github.com/users/justinstoller/following{/other_user}","gists_url":"https://api.github.com/users/justinstoller/gists{/gist_id}","starred_url":"https://api.github.com/users/justinstoller/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/justinstoller/subscriptions","organizations_url":"https://api.github.com/users/justinstoller/orgs","repos_url":"https://api.github.com/users/justinstoller/repos","events_url":"https://api.github.com/users/justinstoller/events{/privacy}","received_events_url":"https://api.github.com/users/justinstoller/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-07-23T22:44:11Z","updated_at":"2018-07-25T00:33:00Z","closed_at":null,"merged_at":null,"merge_commit_sha":"770365fe9599fa4b9ac7e79e0515ff00572115b7","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/puppetlabs/puppetserver-ca-cli/pulls/3/commits","review_comments_url":"https://api.github.com/repos/puppetlabs/puppetserver-ca-cli/pulls/3/comments","review_comment_url":"https://api.github.com/repos/puppetlabs/puppetserver-ca-cli/pulls/comments{/number}","comments_url":"https://api.github.com/repos/puppetlabs/puppetserver-ca-cli/issues/3/comments","statuses_url":"https://api.github.com/repos/puppetlabs/puppetserver-ca-cli/statuses/b5e44badd20c44d1f0f93a114e4ece7a37bf42a3","head":{"label":"justinstoller:server2258-revoke-action","ref":"server2258-revoke-action","sha":"b5e44badd20c44d1f0f93a114e4ece7a37bf42a3","user":{"login":"justinstoller","id":241423,"node_id":"MDQ6VXNlcjI0MTQyMw==","avatar_url":"https://avatars0.githubusercontent.com/u/241423?v=4","gravatar_id":"","url":"https://api.github.com/users/justinstoller","html_url":"https://github.com/justinstoller","followers_url":"https://api.github.com/users/justinstoller/followers","following_url":"https://api.github.com/users/justinstoller/following{/other_user}","gists_url":"https://api.github.com/users/justinstoller/gists{/gist_id}","starred_url":"https://api.github.com/users/justinstoller/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/justinstoller/subscriptions","organizations_url":"https://api.github.com/users/justinstoller/orgs","repos_url":"https://api.github.com/users/justinstoller/repos","events_url":"https://api.github.com/users/justinstoller/events{/privacy}","received_events_url":"https://api.github.com/users/justinstoller/received_events","type":"User","site_admin":false},"repo":{"id":139073094,"node_id":"MDEwOlJlcG9zaXRvcnkxMzkwNzMwOTQ=","name":"puppetserver-ca-cli","full_name":"justinstoller/puppetserver-ca-cli","owner":{"login":"justinstoller","id":241423,"node_id":"MDQ6VXNlcjI0MTQyMw==","avatar_url":"https://avatars0.githubusercontent.com/u/241423?v=4","gravatar_id":"","url":"https://api.github.com/users/justinstoller","html_url":"https://github.com/justinstoller","followers_url":"https://api.github.com/users/justinstoller/followers","following_url":"https://api.github.com/users/justinstoller/following{/other_user}","gists_url":"https://api.github.com/users/justinstoller/gists{/gist_id}","starred_url":"https://api.github.com/users/justinstoller/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/justinstoller/subscriptions","organizations_url":"https://api.github.com/users/justinstoller/orgs","repos_url":"https://api.github.com/users/justinstoller/repos","events_url":"https://api.github.com/users/justinstoller/events{/privacy}","received_events_url":"https://api.github.com/users/justinstoller/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/justinstoller/puppetserver-ca-cli","description":"A simple Ruby CLI tool to interact with the Puppet Server's included Certificate Authority","fork":true,"url":"https://api.github.com/repos/justinstoller/puppetserver-ca-cli","forks_url":"https://api.github.com/repos/justinstoller/puppetserver-ca-cli/forks","keys_url":"https://api.github.com/repos/justinstoller/puppetserver-ca-cli/keys{/key_id}","collaborators_url":"https://api.github.com/repos/justinstoller/puppetserver-ca-cli/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/justinstoller/puppetserver-ca-cli/teams","hooks_url":"https://api.github.com/repos/justinstoller/puppetserver-ca-cli/hooks","issue_events_url":"https://api.github.com/repos/justinstoller/puppetserver-ca-cli/issues/events{/number}","events_url":"https://api.github.com/repos/justinstoller/puppetserver-ca-cli/events","assignees_url":"https://api.github.com/repos/justinstoller/puppetserver-ca-cli/assignees{/user}","branches_url":"https://api.github.com/repos/justinstoller/puppetserver-ca-cli/branches{/branch}","tags_url":"https://api.github.com/repos/justinstoller/puppetserver-ca-cli/tags","blobs_url":"https://api.github.com/repos/justinstoller/puppetserver-ca-cli/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/justinstoller/puppetserver-ca-cli/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/justinstoller/puppetserver-ca-cli/git/refs{/sha}","trees_url":"https://api.github.com/repos/justinstoller/puppetserver-ca-cli/git/trees{/sha}","statuses_url":"https://api.github.com/repos/justinstoller/puppetserver-ca-cli/statuses/{sha}","languages_url":"https://api.github.com/repos/justinstoller/puppetserver-ca-cli/languages","stargazers_url":"https://api.github.com/repos/justinstoller/puppetserver-ca-cli/stargazers","contributors_url":"https://api.github.com/repos/justinstoller/puppetserver-ca-cli/contributors","subscribers_url":"https://api.github.com/repos/justinstoller/puppetserver-ca-cli/subscribers","subscription_url":"https://api.github.com/repos/justinstoller/puppetserver-ca-cli/subscription","commits_url":"https://api.github.com/repos/justinstoller/puppetserver-ca-cli/commits{/sha}","git_commits_url":"https://api.github.com/repos/justinstoller/puppetserver-ca-cli/git/commits{/sha}","comments_url":"https://api.github.com/repos/justinstoller/puppetserver-ca-cli/comments{/number}","issue_comment_url":"https://api.github.com/repos/justinstoller/puppetserver-ca-cli/issues/comments{/number}","contents_url":"https://api.github.com/repos/justinstoller/puppetserver-ca-cli/contents/{+path}","compare_url":"https://api.github.com/repos/justinstoller/puppetserver-ca-cli/compare/{base}...{head}","merges_url":"https://api.github.com/repos/justinstoller/puppetserver-ca-cli/merges","archive_url":"https://api.github.com/repos/justinstoller/puppetserver-ca-cli/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/justinstoller/puppetserver-ca-cli/downloads","issues_url":"https://api.github.com/repos/justinstoller/puppetserver-ca-cli/issues{/number}","pulls_url":"https://api.github.com/repos/justinstoller/puppetserver-ca-cli/pulls{/number}","milestones_url":"https://api.github.com/repos/justinstoller/puppetserver-ca-cli/milestones{/number}","notifications_url":"https://api.github.com/repos/justinstoller/puppetserver-ca-cli/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/justinstoller/puppetserver-ca-cli/labels{/name}","releases_url":"https://api.github.com/repos/justinstoller/puppetserver-ca-cli/releases{/id}","deployments_url":"https://api.github.com/repos/justinstoller/puppetserver-ca-cli/deployments","created_at":"2018-06-28T22:11:22Z","updated_at":"2018-07-19T14:46:41Z","pushed_at":"2018-07-25T00:24:07Z","git_url":"git://github.com/justinstoller/puppetserver-ca-cli.git","ssh_url":"git@github.com:justinstoller/puppetserver-ca-cli.git","clone_url":"https://github.com/justinstoller/puppetserver-ca-cli.git","svn_url":"https://github.com/justinstoller/puppetserver-ca-cli","homepage":null,"size":100,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"puppetlabs:master","ref":"master","sha":"23acdc4d7d5459b44087a38e3939c43494f1a84d","user":{"login":"puppetlabs","id":234268,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIzNDI2OA==","avatar_url":"https://avatars0.githubusercontent.com/u/234268?v=4","gravatar_id":"","url":"https://api.github.com/users/puppetlabs","html_url":"https://github.com/puppetlabs","followers_url":"https://api.github.com/users/puppetlabs/followers","following_url":"https://api.github.com/users/puppetlabs/following{/other_user}","gists_url":"https://api.github.com/users/puppetlabs/gists{/gist_id}","starred_url":"https://api.github.com/users/puppetlabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/puppetlabs/subscriptions","organizations_url":"https://api.github.com/users/puppetlabs/orgs","repos_url":"https://api.github.com/users/puppetlabs/repos","events_url":"https://api.github.com/users/puppetlabs/events{/privacy}","received_events_url":"https://api.github.com/users/puppetlabs/received_events","type":"Organization","site_admin":false},"repo":{"id":135350068,"node_id":"MDEwOlJlcG9zaXRvcnkxMzUzNTAwNjg=","name":"puppetserver-ca-cli","full_name":"puppetlabs/puppetserver-ca-cli","owner":{"login":"puppetlabs","id":234268,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIzNDI2OA==","avatar_url":"https://avatars0.githubusercontent.com/u/234268?v=4","gravatar_id":"","url":"https://api.github.com/users/puppetlabs","html_url":"https://github.com/puppetlabs","followers_url":"https://api.github.com/users/puppetlabs/followers","following_url":"https://api.github.com/users/puppetlabs/following{/other_user}","gists_url":"https://api.github.com/users/puppetlabs/gists{/gist_id}","starred_url":"https://api.github.com/users/puppetlabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/puppetlabs/subscriptions","organizations_url":"https://api.github.com/users/puppetlabs/orgs","repos_url":"https://api.github.com/users/puppetlabs/repos","events_url":"https://api.github.com/users/puppetlabs/events{/privacy}","received_events_url":"https://api.github.com/users/puppetlabs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/puppetlabs/puppetserver-ca-cli","description":"A simple Ruby CLI tool to interact with the Puppet Server's included Certificate Authority","fork":false,"url":"https://api.github.com/repos/puppetlabs/puppetserver-ca-cli","forks_url":"https://api.github.com/repos/puppetlabs/puppetserver-ca-cli/forks","keys_url":"https://api.github.com/repos/puppetlabs/puppetserver-ca-cli/keys{/key_id}","collaborators_url":"https://api.github.com/repos/puppetlabs/puppetserver-ca-cli/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/puppetlabs/puppetserver-ca-cli/teams","hooks_url":"https://api.github.com/repos/puppetlabs/puppetserver-ca-cli/hooks","issue_events_url":"https://api.github.com/repos/puppetlabs/puppetserver-ca-cli/issues/events{/number}","events_url":"https://api.github.com/repos/puppetlabs/puppetserver-ca-cli/events","assignees_url":"https://api.github.com/repos/puppetlabs/puppetserver-ca-cli/assignees{/user}","branches_url":"https://api.github.com/repos/puppetlabs/puppetserver-ca-cli/branches{/branch}","tags_url":"https://api.github.com/repos/puppetlabs/puppetserver-ca-cli/tags","blobs_url":"https://api.github.com/repos/puppetlabs/puppetserver-ca-cli/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/puppetlabs/puppetserver-ca-cli/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/puppetlabs/puppetserver-ca-cli/git/refs{/sha}","trees_url":"https://api.github.com/repos/puppetlabs/puppetserver-ca-cli/git/trees{/sha}","statuses_url":"https://api.github.com/repos/puppetlabs/puppetserver-ca-cli/statuses/{sha}","languages_url":"https://api.github.com/repos/puppetlabs/puppetserver-ca-cli/languages","stargazers_url":"https://api.github.com/repos/puppetlabs/puppetserver-ca-cli/stargazers","contributors_url":"https://api.github.com/repos/puppetlabs/puppetserver-ca-cli/contributors","subscribers_url":"https://api.github.com/repos/puppetlabs/puppetserver-ca-cli/subscribers","subscription_url":"https://api.github.com/repos/puppetlabs/puppetserver-ca-cli/subscription","commits_url":"https://api.github.com/repos/puppetlabs/puppetserver-ca-cli/commits{/sha}","git_commits_url":"https://api.github.com/repos/puppetlabs/puppetserver-ca-cli/git/commits{/sha}","comments_url":"https://api.github.com/repos/puppetlabs/puppetserver-ca-cli/comments{/number}","issue_comment_url":"https://api.github.com/repos/puppetlabs/puppetserver-ca-cli/issues/comments{/number}","contents_url":"https://api.github.com/repos/puppetlabs/puppetserver-ca-cli/contents/{+path}","compare_url":"https://api.github.com/repos/puppetlabs/puppetserver-ca-cli/compare/{base}...{head}","merges_url":"https://api.github.com/repos/puppetlabs/puppetserver-ca-cli/merges","archive_url":"https://api.github.com/repos/puppetlabs/puppetserver-ca-cli/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/puppetlabs/puppetserver-ca-cli/downloads","issues_url":"https://api.github.com/repos/puppetlabs/puppetserver-ca-cli/issues{/number}","pulls_url":"https://api.github.com/repos/puppetlabs/puppetserver-ca-cli/pulls{/number}","milestones_url":"https://api.github.com/repos/puppetlabs/puppetserver-ca-cli/milestones{/number}","notifications_url":"https://api.github.com/repos/puppetlabs/puppetserver-ca-cli/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/puppetlabs/puppetserver-ca-cli/labels{/name}","releases_url":"https://api.github.com/repos/puppetlabs/puppetserver-ca-cli/releases{/id}","deployments_url":"https://api.github.com/repos/puppetlabs/puppetserver-ca-cli/deployments","created_at":"2018-05-29T20:35:19Z","updated_at":"2018-07-19T21:04:52Z","pushed_at":"2018-07-25T00:24:09Z","git_url":"git://github.com/puppetlabs/puppetserver-ca-cli.git","ssh_url":"git@github.com:puppetlabs/puppetserver-ca-cli.git","clone_url":"https://github.com/puppetlabs/puppetserver-ca-cli.git","svn_url":"https://github.com/puppetlabs/puppetserver-ca-cli","homepage":null,"size":87,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":4,"mirror_url":null,"archived":false,"open_issues_count":3,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":4,"open_issues":3,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/puppetlabs/puppetserver-ca-cli/pulls/3"},"html":{"href":"https://github.com/puppetlabs/puppetserver-ca-cli/pull/3"},"issue":{"href":"https://api.github.com/repos/puppetlabs/puppetserver-ca-cli/issues/3"},"comments":{"href":"https://api.github.com/repos/puppetlabs/puppetserver-ca-cli/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/puppetlabs/puppetserver-ca-cli/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/puppetlabs/puppetserver-ca-cli/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/puppetlabs/puppetserver-ca-cli/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/puppetlabs/puppetserver-ca-cli/statuses/b5e44badd20c44d1f0f93a114e4ece7a37bf42a3"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"justinstoller"}}