{"action":"opened","number":23,"pull_request":{"url":"https://api.github.com/repos/dockito/vault/pulls/23","id":80313960,"html_url":"https://github.com/dockito/vault/pull/23","diff_url":"https://github.com/dockito/vault/pull/23.diff","patch_url":"https://github.com/dockito/vault/pull/23.patch","issue_url":"https://api.github.com/repos/dockito/vault/issues/23","number":23,"state":"open","locked":false,"title":"Add support for git https credentials","user":{"login":"NikolausDemmel","id":479562,"avatar_url":"https://avatars.githubusercontent.com/u/479562?v=3","gravatar_id":"","url":"https://api.github.com/users/NikolausDemmel","html_url":"https://github.com/NikolausDemmel","followers_url":"https://api.github.com/users/NikolausDemmel/followers","following_url":"https://api.github.com/users/NikolausDemmel/following{/other_user}","gists_url":"https://api.github.com/users/NikolausDemmel/gists{/gist_id}","starred_url":"https://api.github.com/users/NikolausDemmel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NikolausDemmel/subscriptions","organizations_url":"https://api.github.com/users/NikolausDemmel/orgs","repos_url":"https://api.github.com/users/NikolausDemmel/repos","events_url":"https://api.github.com/users/NikolausDemmel/events{/privacy}","received_events_url":"https://api.github.com/users/NikolausDemmel/received_events","type":"User","site_admin":false},"body":"This builds on top of PR #22, so that should be merged first.\r\n\r\nThis implements #21. It is a simple way to provide git credentials not only for\r\nssh via keys, but also for https. In corporate settings with internet access\r\nthrough proxies, ssh is often not allowed and one is forced to use https.\r\n\r\nThere are two ways to use this, either you provide a credential store and mount\r\nit when running `vault`.\r\n\r\n```\r\ndocker run -p 172.17.0.1:14242:3000 -v $PWD/store:/vault/store vault\r\n```\r\n\r\nAlternatively you can also start the vault with an empty store and interactively\r\nadd / remove credentials.\r\n\r\n```\r\ndocker run -p 172.17.0.1:14242:3000 --name vault vault\r\n\r\n# the following prompts you for a username and password which are stored in the\r\n# running container\r\ndocker exec -it vault credentials set github.com\r\n```\r\n\r\nThe usage inside a `Dockerfile` is the same as for the ssh key. Simply prepend\r\nyour `git clone` or other commands with `ONVAULT`.\r\n\r\nThe changes are really fairly simple:\r\n\r\n - One route is added in `index.js` to download the file with the credentials.\r\n - ONVAULT is extended to download the additional file and configure git, as\r\n   well as revert the changes after executing the passed command.\r\n - The `credential` helper script is added to the container. This is actually\r\n   not essential, but more of a convenience such that you don't need to create\r\n   the credential files manually.\r\n\r\nI did not yet update the README, but I can do that before merge if you are\r\nwilling to include this addition.\r\n\r\ncloses #21","created_at":"2016-08-05T22:07:52Z","updated_at":"2016-08-05T22:07:52Z","closed_at":null,"merged_at":null,"merge_commit_sha":"cc576b6d9dfcb35dd0c7d52dc7820c6797adc080","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/dockito/vault/pulls/23/commits","review_comments_url":"https://api.github.com/repos/dockito/vault/pulls/23/comments","review_comment_url":"https://api.github.com/repos/dockito/vault/pulls/comments{/number}","comments_url":"https://api.github.com/repos/dockito/vault/issues/23/comments","statuses_url":"https://api.github.com/repos/dockito/vault/statuses/8b7587afdb88e2ca5c7af842a4a2b3deef163742","head":{"label":"NikolausDemmel:feature/git-https-credentials","ref":"feature/git-https-credentials","sha":"8b7587afdb88e2ca5c7af842a4a2b3deef163742","user":{"login":"NikolausDemmel","id":479562,"avatar_url":"https://avatars.githubusercontent.com/u/479562?v=3","gravatar_id":"","url":"https://api.github.com/users/NikolausDemmel","html_url":"https://github.com/NikolausDemmel","followers_url":"https://api.github.com/users/NikolausDemmel/followers","following_url":"https://api.github.com/users/NikolausDemmel/following{/other_user}","gists_url":"https://api.github.com/users/NikolausDemmel/gists{/gist_id}","starred_url":"https://api.github.com/users/NikolausDemmel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NikolausDemmel/subscriptions","organizations_url":"https://api.github.com/users/NikolausDemmel/orgs","repos_url":"https://api.github.com/users/NikolausDemmel/repos","events_url":"https://api.github.com/users/NikolausDemmel/events{/privacy}","received_events_url":"https://api.github.com/users/NikolausDemmel/received_events","type":"User","site_admin":false},"repo":{"id":64607736,"name":"vault","full_name":"NikolausDemmel/vault","owner":{"login":"NikolausDemmel","id":479562,"avatar_url":"https://avatars.githubusercontent.com/u/479562?v=3","gravatar_id":"","url":"https://api.github.com/users/NikolausDemmel","html_url":"https://github.com/NikolausDemmel","followers_url":"https://api.github.com/users/NikolausDemmel/followers","following_url":"https://api.github.com/users/NikolausDemmel/following{/other_user}","gists_url":"https://api.github.com/users/NikolausDemmel/gists{/gist_id}","starred_url":"https://api.github.com/users/NikolausDemmel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NikolausDemmel/subscriptions","organizations_url":"https://api.github.com/users/NikolausDemmel/orgs","repos_url":"https://api.github.com/users/NikolausDemmel/repos","events_url":"https://api.github.com/users/NikolausDemmel/events{/privacy}","received_events_url":"https://api.github.com/users/NikolausDemmel/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/NikolausDemmel/vault","description":"Secret store to be used on Docker image building","fork":true,"url":"https://api.github.com/repos/NikolausDemmel/vault","forks_url":"https://api.github.com/repos/NikolausDemmel/vault/forks","keys_url":"https://api.github.com/repos/NikolausDemmel/vault/keys{/key_id}","collaborators_url":"https://api.github.com/repos/NikolausDemmel/vault/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/NikolausDemmel/vault/teams","hooks_url":"https://api.github.com/repos/NikolausDemmel/vault/hooks","issue_events_url":"https://api.github.com/repos/NikolausDemmel/vault/issues/events{/number}","events_url":"https://api.github.com/repos/NikolausDemmel/vault/events","assignees_url":"https://api.github.com/repos/NikolausDemmel/vault/assignees{/user}","branches_url":"https://api.github.com/repos/NikolausDemmel/vault/branches{/branch}","tags_url":"https://api.github.com/repos/NikolausDemmel/vault/tags","blobs_url":"https://api.github.com/repos/NikolausDemmel/vault/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/NikolausDemmel/vault/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/NikolausDemmel/vault/git/refs{/sha}","trees_url":"https://api.github.com/repos/NikolausDemmel/vault/git/trees{/sha}","statuses_url":"https://api.github.com/repos/NikolausDemmel/vault/statuses/{sha}","languages_url":"https://api.github.com/repos/NikolausDemmel/vault/languages","stargazers_url":"https://api.github.com/repos/NikolausDemmel/vault/stargazers","contributors_url":"https://api.github.com/repos/NikolausDemmel/vault/contributors","subscribers_url":"https://api.github.com/repos/NikolausDemmel/vault/subscribers","subscription_url":"https://api.github.com/repos/NikolausDemmel/vault/subscription","commits_url":"https://api.github.com/repos/NikolausDemmel/vault/commits{/sha}","git_commits_url":"https://api.github.com/repos/NikolausDemmel/vault/git/commits{/sha}","comments_url":"https://api.github.com/repos/NikolausDemmel/vault/comments{/number}","issue_comment_url":"https://api.github.com/repos/NikolausDemmel/vault/issues/comments{/number}","contents_url":"https://api.github.com/repos/NikolausDemmel/vault/contents/{+path}","compare_url":"https://api.github.com/repos/NikolausDemmel/vault/compare/{base}...{head}","merges_url":"https://api.github.com/repos/NikolausDemmel/vault/merges","archive_url":"https://api.github.com/repos/NikolausDemmel/vault/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/NikolausDemmel/vault/downloads","issues_url":"https://api.github.com/repos/NikolausDemmel/vault/issues{/number}","pulls_url":"https://api.github.com/repos/NikolausDemmel/vault/pulls{/number}","milestones_url":"https://api.github.com/repos/NikolausDemmel/vault/milestones{/number}","notifications_url":"https://api.github.com/repos/NikolausDemmel/vault/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/NikolausDemmel/vault/labels{/name}","releases_url":"https://api.github.com/repos/NikolausDemmel/vault/releases{/id}","deployments_url":"https://api.github.com/repos/NikolausDemmel/vault/deployments","created_at":"2016-07-31T18:02:04Z","updated_at":"2016-07-31T18:02:05Z","pushed_at":"2016-08-05T22:05:22Z","git_url":"git://github.com/NikolausDemmel/vault.git","ssh_url":"git@github.com:NikolausDemmel/vault.git","clone_url":"https://github.com/NikolausDemmel/vault.git","svn_url":"https://github.com/NikolausDemmel/vault","homepage":"","size":28,"stargazers_count":0,"watchers_count":0,"language":"Shell","has_issues":false,"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":"dockito:master","ref":"master","sha":"4c022bf57b0a206131b72b4a8f5f2a6e26064f89","user":{"login":"dockito","id":9013492,"avatar_url":"https://avatars.githubusercontent.com/u/9013492?v=3","gravatar_id":"","url":"https://api.github.com/users/dockito","html_url":"https://github.com/dockito","followers_url":"https://api.github.com/users/dockito/followers","following_url":"https://api.github.com/users/dockito/following{/other_user}","gists_url":"https://api.github.com/users/dockito/gists{/gist_id}","starred_url":"https://api.github.com/users/dockito/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dockito/subscriptions","organizations_url":"https://api.github.com/users/dockito/orgs","repos_url":"https://api.github.com/users/dockito/repos","events_url":"https://api.github.com/users/dockito/events{/privacy}","received_events_url":"https://api.github.com/users/dockito/received_events","type":"Organization","site_admin":false},"repo":{"id":34409649,"name":"vault","full_name":"dockito/vault","owner":{"login":"dockito","id":9013492,"avatar_url":"https://avatars.githubusercontent.com/u/9013492?v=3","gravatar_id":"","url":"https://api.github.com/users/dockito","html_url":"https://github.com/dockito","followers_url":"https://api.github.com/users/dockito/followers","following_url":"https://api.github.com/users/dockito/following{/other_user}","gists_url":"https://api.github.com/users/dockito/gists{/gist_id}","starred_url":"https://api.github.com/users/dockito/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dockito/subscriptions","organizations_url":"https://api.github.com/users/dockito/orgs","repos_url":"https://api.github.com/users/dockito/repos","events_url":"https://api.github.com/users/dockito/events{/privacy}","received_events_url":"https://api.github.com/users/dockito/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/dockito/vault","description":"Secret store to be used on Docker image building","fork":false,"url":"https://api.github.com/repos/dockito/vault","forks_url":"https://api.github.com/repos/dockito/vault/forks","keys_url":"https://api.github.com/repos/dockito/vault/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dockito/vault/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dockito/vault/teams","hooks_url":"https://api.github.com/repos/dockito/vault/hooks","issue_events_url":"https://api.github.com/repos/dockito/vault/issues/events{/number}","events_url":"https://api.github.com/repos/dockito/vault/events","assignees_url":"https://api.github.com/repos/dockito/vault/assignees{/user}","branches_url":"https://api.github.com/repos/dockito/vault/branches{/branch}","tags_url":"https://api.github.com/repos/dockito/vault/tags","blobs_url":"https://api.github.com/repos/dockito/vault/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dockito/vault/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dockito/vault/git/refs{/sha}","trees_url":"https://api.github.com/repos/dockito/vault/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dockito/vault/statuses/{sha}","languages_url":"https://api.github.com/repos/dockito/vault/languages","stargazers_url":"https://api.github.com/repos/dockito/vault/stargazers","contributors_url":"https://api.github.com/repos/dockito/vault/contributors","subscribers_url":"https://api.github.com/repos/dockito/vault/subscribers","subscription_url":"https://api.github.com/repos/dockito/vault/subscription","commits_url":"https://api.github.com/repos/dockito/vault/commits{/sha}","git_commits_url":"https://api.github.com/repos/dockito/vault/git/commits{/sha}","comments_url":"https://api.github.com/repos/dockito/vault/comments{/number}","issue_comment_url":"https://api.github.com/repos/dockito/vault/issues/comments{/number}","contents_url":"https://api.github.com/repos/dockito/vault/contents/{+path}","compare_url":"https://api.github.com/repos/dockito/vault/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dockito/vault/merges","archive_url":"https://api.github.com/repos/dockito/vault/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dockito/vault/downloads","issues_url":"https://api.github.com/repos/dockito/vault/issues{/number}","pulls_url":"https://api.github.com/repos/dockito/vault/pulls{/number}","milestones_url":"https://api.github.com/repos/dockito/vault/milestones{/number}","notifications_url":"https://api.github.com/repos/dockito/vault/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dockito/vault/labels{/name}","releases_url":"https://api.github.com/repos/dockito/vault/releases{/id}","deployments_url":"https://api.github.com/repos/dockito/vault/deployments","created_at":"2015-04-22T18:57:31Z","updated_at":"2016-08-04T20:42:22Z","pushed_at":"2016-08-05T22:07:52Z","git_url":"git://github.com/dockito/vault.git","ssh_url":"git@github.com:dockito/vault.git","clone_url":"https://github.com/dockito/vault.git","svn_url":"https://github.com/dockito/vault","homepage":"","size":28,"stargazers_count":61,"watchers_count":61,"language":"Shell","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":10,"mirror_url":null,"open_issues_count":4,"forks":10,"open_issues":4,"watchers":61,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/dockito/vault/pulls/23"},"html":{"href":"https://github.com/dockito/vault/pull/23"},"issue":{"href":"https://api.github.com/repos/dockito/vault/issues/23"},"comments":{"href":"https://api.github.com/repos/dockito/vault/issues/23/comments"},"review_comments":{"href":"https://api.github.com/repos/dockito/vault/pulls/23/comments"},"review_comment":{"href":"https://api.github.com/repos/dockito/vault/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/dockito/vault/pulls/23/commits"},"statuses":{"href":"https://api.github.com/repos/dockito/vault/statuses/8b7587afdb88e2ca5c7af842a4a2b3deef163742"}},"merged":false,"mergeable":true,"mergeable_state":"clean","merged_by":null,"comments":0,"review_comments":0,"commits":6,"additions":200,"deletions":8,"changed_files":6}}
{"actor":{"display_login":"NikolausDemmel"}}