{"action":"created","comment":{"url":"https://api.github.com/repos/NuGet/NuGet.Services.Dashboard/pulls/comments/71943255","id":71943255,"diff_hunk":"@@ -0,0 +1,73 @@\n+﻿using System;\n+using System.Configuration;\n+using NuGet.Services.KeyVault;\n+using System.Collections;\n+using System.Collections.Generic;\n+\n+namespace NuGet\n+{\n+    public static class SecretConfigurationManager\n+    {\n+        private static ISecretInjector _secretInjector;\n+        private static ISecretReader _keyVaultReader;\n+\n+        public static void Init()\n+        {\n+            var vaultName = ConfigurationManager.AppSettings[\"VaultName\"];\n+            var clientId = ConfigurationManager.AppSettings[\"ClientId\"];\n+            var certificateThumbprint = ConfigurationManager.AppSettings[\"CertificateThumbprint\"];\n+            var validateCertificate = ConfigurationManager.AppSettings[\"ValidateCertificate\"].Equals(\"true\", StringComparison.InvariantCultureIgnoreCase) ? true : false;","path":"NuGet.Services.Dashboard.Operations/Infrastructure/SecretConfigurationManager.cs","position":19,"original_position":19,"commit_id":"c6e846861810465c8abbe66fc9c038047c72c1fe","original_commit_id":"c6e846861810465c8abbe66fc9c038047c72c1fe","user":{"login":"ryuyu","id":11051729,"avatar_url":"https://avatars.githubusercontent.com/u/11051729?v=3","gravatar_id":"","url":"https://api.github.com/users/ryuyu","html_url":"https://github.com/ryuyu","followers_url":"https://api.github.com/users/ryuyu/followers","following_url":"https://api.github.com/users/ryuyu/following{/other_user}","gists_url":"https://api.github.com/users/ryuyu/gists{/gist_id}","starred_url":"https://api.github.com/users/ryuyu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ryuyu/subscriptions","organizations_url":"https://api.github.com/users/ryuyu/orgs","repos_url":"https://api.github.com/users/ryuyu/repos","events_url":"https://api.github.com/users/ryuyu/events{/privacy}","received_events_url":"https://api.github.com/users/ryuyu/received_events","type":"User","site_admin":false},"body":"Good point.\r\n\r\n---\r\nIn reply to: [71935434](https://github.com/NuGet/NuGet.Services.Dashboard/pull/187#discussion_r71935434) [](ancestors = 71935434)","created_at":"2016-07-22T20:46:09Z","updated_at":"2016-07-22T20:46:09Z","html_url":"https://github.com/NuGet/NuGet.Services.Dashboard/pull/187#discussion_r71943255","pull_request_url":"https://api.github.com/repos/NuGet/NuGet.Services.Dashboard/pulls/187","_links":{"self":{"href":"https://api.github.com/repos/NuGet/NuGet.Services.Dashboard/pulls/comments/71943255"},"html":{"href":"https://github.com/NuGet/NuGet.Services.Dashboard/pull/187#discussion_r71943255"},"pull_request":{"href":"https://api.github.com/repos/NuGet/NuGet.Services.Dashboard/pulls/187"}}},"pull_request":{"url":"https://api.github.com/repos/NuGet/NuGet.Services.Dashboard/pulls/187","id":78525154,"html_url":"https://github.com/NuGet/NuGet.Services.Dashboard/pull/187","diff_url":"https://github.com/NuGet/NuGet.Services.Dashboard/pull/187.diff","patch_url":"https://github.com/NuGet/NuGet.Services.Dashboard/pull/187.patch","issue_url":"https://api.github.com/repos/NuGet/NuGet.Services.Dashboard/issues/187","number":187,"state":"open","locked":false,"title":"KeyVault Integration for Dashboard","user":{"login":"ryuyu","id":11051729,"avatar_url":"https://avatars.githubusercontent.com/u/11051729?v=3","gravatar_id":"","url":"https://api.github.com/users/ryuyu","html_url":"https://github.com/ryuyu","followers_url":"https://api.github.com/users/ryuyu/followers","following_url":"https://api.github.com/users/ryuyu/following{/other_user}","gists_url":"https://api.github.com/users/ryuyu/gists{/gist_id}","starred_url":"https://api.github.com/users/ryuyu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ryuyu/subscriptions","organizations_url":"https://api.github.com/users/ryuyu/orgs","repos_url":"https://api.github.com/users/ryuyu/repos","events_url":"https://api.github.com/users/ryuyu/events{/privacy}","received_events_url":"https://api.github.com/users/ryuyu/received_events","type":"User","site_admin":false},"body":"This changeset makes the following changes:\r\n * Adding Keyvault preprocessing to ConfigurationManager.AppSettings values.\r\n * Add Keyvault value injection to command line parsing\r\n\r\n@skofman1 @maartenba @shishirx34 @scottbommarito @xavierdecoster ","created_at":"2016-07-22T19:06:25Z","updated_at":"2016-07-22T20:46:09Z","closed_at":null,"merged_at":null,"merge_commit_sha":"10bbee0fb506f40189c529caeeb4c5895841fdf6","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/NuGet/NuGet.Services.Dashboard/pulls/187/commits","review_comments_url":"https://api.github.com/repos/NuGet/NuGet.Services.Dashboard/pulls/187/comments","review_comment_url":"https://api.github.com/repos/NuGet/NuGet.Services.Dashboard/pulls/comments{/number}","comments_url":"https://api.github.com/repos/NuGet/NuGet.Services.Dashboard/issues/187/comments","statuses_url":"https://api.github.com/repos/NuGet/NuGet.Services.Dashboard/statuses/c6e846861810465c8abbe66fc9c038047c72c1fe","head":{"label":"NuGet:ryuyu-add-keyvault-tasks","ref":"ryuyu-add-keyvault-tasks","sha":"c6e846861810465c8abbe66fc9c038047c72c1fe","user":{"login":"NuGet","id":968310,"avatar_url":"https://avatars.githubusercontent.com/u/968310?v=3","gravatar_id":"","url":"https://api.github.com/users/NuGet","html_url":"https://github.com/NuGet","followers_url":"https://api.github.com/users/NuGet/followers","following_url":"https://api.github.com/users/NuGet/following{/other_user}","gists_url":"https://api.github.com/users/NuGet/gists{/gist_id}","starred_url":"https://api.github.com/users/NuGet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NuGet/subscriptions","organizations_url":"https://api.github.com/users/NuGet/orgs","repos_url":"https://api.github.com/users/NuGet/repos","events_url":"https://api.github.com/users/NuGet/events{/privacy}","received_events_url":"https://api.github.com/users/NuGet/received_events","type":"Organization","site_admin":false},"repo":{"id":18126717,"name":"NuGet.Services.Dashboard","full_name":"NuGet/NuGet.Services.Dashboard","owner":{"login":"NuGet","id":968310,"avatar_url":"https://avatars.githubusercontent.com/u/968310?v=3","gravatar_id":"","url":"https://api.github.com/users/NuGet","html_url":"https://github.com/NuGet","followers_url":"https://api.github.com/users/NuGet/followers","following_url":"https://api.github.com/users/NuGet/following{/other_user}","gists_url":"https://api.github.com/users/NuGet/gists{/gist_id}","starred_url":"https://api.github.com/users/NuGet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NuGet/subscriptions","organizations_url":"https://api.github.com/users/NuGet/orgs","repos_url":"https://api.github.com/users/NuGet/repos","events_url":"https://api.github.com/users/NuGet/events{/privacy}","received_events_url":"https://api.github.com/users/NuGet/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/NuGet/NuGet.Services.Dashboard","description":"NuGet Services Monitoring Dashboard","fork":false,"url":"https://api.github.com/repos/NuGet/NuGet.Services.Dashboard","forks_url":"https://api.github.com/repos/NuGet/NuGet.Services.Dashboard/forks","keys_url":"https://api.github.com/repos/NuGet/NuGet.Services.Dashboard/keys{/key_id}","collaborators_url":"https://api.github.com/repos/NuGet/NuGet.Services.Dashboard/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/NuGet/NuGet.Services.Dashboard/teams","hooks_url":"https://api.github.com/repos/NuGet/NuGet.Services.Dashboard/hooks","issue_events_url":"https://api.github.com/repos/NuGet/NuGet.Services.Dashboard/issues/events{/number}","events_url":"https://api.github.com/repos/NuGet/NuGet.Services.Dashboard/events","assignees_url":"https://api.github.com/repos/NuGet/NuGet.Services.Dashboard/assignees{/user}","branches_url":"https://api.github.com/repos/NuGet/NuGet.Services.Dashboard/branches{/branch}","tags_url":"https://api.github.com/repos/NuGet/NuGet.Services.Dashboard/tags","blobs_url":"https://api.github.com/repos/NuGet/NuGet.Services.Dashboard/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/NuGet/NuGet.Services.Dashboard/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/NuGet/NuGet.Services.Dashboard/git/refs{/sha}","trees_url":"https://api.github.com/repos/NuGet/NuGet.Services.Dashboard/git/trees{/sha}","statuses_url":"https://api.github.com/repos/NuGet/NuGet.Services.Dashboard/statuses/{sha}","languages_url":"https://api.github.com/repos/NuGet/NuGet.Services.Dashboard/languages","stargazers_url":"https://api.github.com/repos/NuGet/NuGet.Services.Dashboard/stargazers","contributors_url":"https://api.github.com/repos/NuGet/NuGet.Services.Dashboard/contributors","subscribers_url":"https://api.github.com/repos/NuGet/NuGet.Services.Dashboard/subscribers","subscription_url":"https://api.github.com/repos/NuGet/NuGet.Services.Dashboard/subscription","commits_url":"https://api.github.com/repos/NuGet/NuGet.Services.Dashboard/commits{/sha}","git_commits_url":"https://api.github.com/repos/NuGet/NuGet.Services.Dashboard/git/commits{/sha}","comments_url":"https://api.github.com/repos/NuGet/NuGet.Services.Dashboard/comments{/number}","issue_comment_url":"https://api.github.com/repos/NuGet/NuGet.Services.Dashboard/issues/comments{/number}","contents_url":"https://api.github.com/repos/NuGet/NuGet.Services.Dashboard/contents/{+path}","compare_url":"https://api.github.com/repos/NuGet/NuGet.Services.Dashboard/compare/{base}...{head}","merges_url":"https://api.github.com/repos/NuGet/NuGet.Services.Dashboard/merges","archive_url":"https://api.github.com/repos/NuGet/NuGet.Services.Dashboard/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/NuGet/NuGet.Services.Dashboard/downloads","issues_url":"https://api.github.com/repos/NuGet/NuGet.Services.Dashboard/issues{/number}","pulls_url":"https://api.github.com/repos/NuGet/NuGet.Services.Dashboard/pulls{/number}","milestones_url":"https://api.github.com/repos/NuGet/NuGet.Services.Dashboard/milestones{/number}","notifications_url":"https://api.github.com/repos/NuGet/NuGet.Services.Dashboard/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/NuGet/NuGet.Services.Dashboard/labels{/name}","releases_url":"https://api.github.com/repos/NuGet/NuGet.Services.Dashboard/releases{/id}","deployments_url":"https://api.github.com/repos/NuGet/NuGet.Services.Dashboard/deployments","created_at":"2014-03-26T04:21:25Z","updated_at":"2016-01-13T05:02:09Z","pushed_at":"2016-07-22T20:05:46Z","git_url":"git://github.com/NuGet/NuGet.Services.Dashboard.git","ssh_url":"git@github.com:NuGet/NuGet.Services.Dashboard.git","clone_url":"https://github.com/NuGet/NuGet.Services.Dashboard.git","svn_url":"https://github.com/NuGet/NuGet.Services.Dashboard","homepage":null,"size":28311,"stargazers_count":5,"watchers_count":5,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":32,"forks":5,"open_issues":32,"watchers":5,"default_branch":"master"}},"base":{"label":"NuGet:master","ref":"master","sha":"882b3630bb1508b55d824a4cf523b652ad7bc9ae","user":{"login":"NuGet","id":968310,"avatar_url":"https://avatars.githubusercontent.com/u/968310?v=3","gravatar_id":"","url":"https://api.github.com/users/NuGet","html_url":"https://github.com/NuGet","followers_url":"https://api.github.com/users/NuGet/followers","following_url":"https://api.github.com/users/NuGet/following{/other_user}","gists_url":"https://api.github.com/users/NuGet/gists{/gist_id}","starred_url":"https://api.github.com/users/NuGet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NuGet/subscriptions","organizations_url":"https://api.github.com/users/NuGet/orgs","repos_url":"https://api.github.com/users/NuGet/repos","events_url":"https://api.github.com/users/NuGet/events{/privacy}","received_events_url":"https://api.github.com/users/NuGet/received_events","type":"Organization","site_admin":false},"repo":{"id":18126717,"name":"NuGet.Services.Dashboard","full_name":"NuGet/NuGet.Services.Dashboard","owner":{"login":"NuGet","id":968310,"avatar_url":"https://avatars.githubusercontent.com/u/968310?v=3","gravatar_id":"","url":"https://api.github.com/users/NuGet","html_url":"https://github.com/NuGet","followers_url":"https://api.github.com/users/NuGet/followers","following_url":"https://api.github.com/users/NuGet/following{/other_user}","gists_url":"https://api.github.com/users/NuGet/gists{/gist_id}","starred_url":"https://api.github.com/users/NuGet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NuGet/subscriptions","organizations_url":"https://api.github.com/users/NuGet/orgs","repos_url":"https://api.github.com/users/NuGet/repos","events_url":"https://api.github.com/users/NuGet/events{/privacy}","received_events_url":"https://api.github.com/users/NuGet/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/NuGet/NuGet.Services.Dashboard","description":"NuGet Services Monitoring Dashboard","fork":false,"url":"https://api.github.com/repos/NuGet/NuGet.Services.Dashboard","forks_url":"https://api.github.com/repos/NuGet/NuGet.Services.Dashboard/forks","keys_url":"https://api.github.com/repos/NuGet/NuGet.Services.Dashboard/keys{/key_id}","collaborators_url":"https://api.github.com/repos/NuGet/NuGet.Services.Dashboard/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/NuGet/NuGet.Services.Dashboard/teams","hooks_url":"https://api.github.com/repos/NuGet/NuGet.Services.Dashboard/hooks","issue_events_url":"https://api.github.com/repos/NuGet/NuGet.Services.Dashboard/issues/events{/number}","events_url":"https://api.github.com/repos/NuGet/NuGet.Services.Dashboard/events","assignees_url":"https://api.github.com/repos/NuGet/NuGet.Services.Dashboard/assignees{/user}","branches_url":"https://api.github.com/repos/NuGet/NuGet.Services.Dashboard/branches{/branch}","tags_url":"https://api.github.com/repos/NuGet/NuGet.Services.Dashboard/tags","blobs_url":"https://api.github.com/repos/NuGet/NuGet.Services.Dashboard/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/NuGet/NuGet.Services.Dashboard/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/NuGet/NuGet.Services.Dashboard/git/refs{/sha}","trees_url":"https://api.github.com/repos/NuGet/NuGet.Services.Dashboard/git/trees{/sha}","statuses_url":"https://api.github.com/repos/NuGet/NuGet.Services.Dashboard/statuses/{sha}","languages_url":"https://api.github.com/repos/NuGet/NuGet.Services.Dashboard/languages","stargazers_url":"https://api.github.com/repos/NuGet/NuGet.Services.Dashboard/stargazers","contributors_url":"https://api.github.com/repos/NuGet/NuGet.Services.Dashboard/contributors","subscribers_url":"https://api.github.com/repos/NuGet/NuGet.Services.Dashboard/subscribers","subscription_url":"https://api.github.com/repos/NuGet/NuGet.Services.Dashboard/subscription","commits_url":"https://api.github.com/repos/NuGet/NuGet.Services.Dashboard/commits{/sha}","git_commits_url":"https://api.github.com/repos/NuGet/NuGet.Services.Dashboard/git/commits{/sha}","comments_url":"https://api.github.com/repos/NuGet/NuGet.Services.Dashboard/comments{/number}","issue_comment_url":"https://api.github.com/repos/NuGet/NuGet.Services.Dashboard/issues/comments{/number}","contents_url":"https://api.github.com/repos/NuGet/NuGet.Services.Dashboard/contents/{+path}","compare_url":"https://api.github.com/repos/NuGet/NuGet.Services.Dashboard/compare/{base}...{head}","merges_url":"https://api.github.com/repos/NuGet/NuGet.Services.Dashboard/merges","archive_url":"https://api.github.com/repos/NuGet/NuGet.Services.Dashboard/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/NuGet/NuGet.Services.Dashboard/downloads","issues_url":"https://api.github.com/repos/NuGet/NuGet.Services.Dashboard/issues{/number}","pulls_url":"https://api.github.com/repos/NuGet/NuGet.Services.Dashboard/pulls{/number}","milestones_url":"https://api.github.com/repos/NuGet/NuGet.Services.Dashboard/milestones{/number}","notifications_url":"https://api.github.com/repos/NuGet/NuGet.Services.Dashboard/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/NuGet/NuGet.Services.Dashboard/labels{/name}","releases_url":"https://api.github.com/repos/NuGet/NuGet.Services.Dashboard/releases{/id}","deployments_url":"https://api.github.com/repos/NuGet/NuGet.Services.Dashboard/deployments","created_at":"2014-03-26T04:21:25Z","updated_at":"2016-01-13T05:02:09Z","pushed_at":"2016-07-22T20:05:46Z","git_url":"git://github.com/NuGet/NuGet.Services.Dashboard.git","ssh_url":"git@github.com:NuGet/NuGet.Services.Dashboard.git","clone_url":"https://github.com/NuGet/NuGet.Services.Dashboard.git","svn_url":"https://github.com/NuGet/NuGet.Services.Dashboard","homepage":null,"size":28311,"stargazers_count":5,"watchers_count":5,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":32,"forks":5,"open_issues":32,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/NuGet/NuGet.Services.Dashboard/pulls/187"},"html":{"href":"https://github.com/NuGet/NuGet.Services.Dashboard/pull/187"},"issue":{"href":"https://api.github.com/repos/NuGet/NuGet.Services.Dashboard/issues/187"},"comments":{"href":"https://api.github.com/repos/NuGet/NuGet.Services.Dashboard/issues/187/comments"},"review_comments":{"href":"https://api.github.com/repos/NuGet/NuGet.Services.Dashboard/pulls/187/comments"},"review_comment":{"href":"https://api.github.com/repos/NuGet/NuGet.Services.Dashboard/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/NuGet/NuGet.Services.Dashboard/pulls/187/commits"},"statuses":{"href":"https://api.github.com/repos/NuGet/NuGet.Services.Dashboard/statuses/c6e846861810465c8abbe66fc9c038047c72c1fe"}}}}
{"actor":{"display_login":"ryuyu"}}