Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KeyVault integration for Gallery #3174

Closed
wants to merge 8 commits into from
Closed

KeyVault integration for Gallery #3174

wants to merge 8 commits into from

Conversation

skofman1
Copy link
Contributor

Changed the ConfigurationService to use ISecretReader to extract secrets from gallery.
Introduced CachingSecretReader to prevent excessive calls to KeyVault to get the same values, which is expensive, and also might cause a deadlock if not done correctly (http://stackoverflow.com/questions/32594642/azure-keyvault-active-directory-acquiretokenasync-timeout-when-called-asynchrono)

@skofman1
Copy link
Contributor Author

@@ -1,89 +1,92 @@
# Find IIS
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure what the change is in this mega red block :-) (could be GitHub going crazy)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should use CodeFlow :) I just added a line at the bottom that copies Microsoft internal corporate root cert to root (same as search service)


In reply to: 72744338 [](ancestors = 72744338)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can add ?w=1 to ignore whitespacing at the end of the URL in browser. This will show only relevant changes.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ha?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

https://github.com/NuGet/NuGetGallery/pull/3174/files?w=1 does not show these changes that seem to not have any effect on the actual code being executed.

@maartenba
Copy link
Contributor

Added some comments. The .Result is something that scares me a bit (deadlocks).

Other than that LGTM - Make sure to squash during the merge :-)

netsh http add sslcert hostnameport=$hostname`:$port certhash=$thumbprint appid='{4dc3e181-e14b-4a21-b022-59fc669b0914}' certstorename=MY
}

# Install Microsoft internal corporate root required for KeyVault access to LocalMachine\AuthRoot (it's not supported by azure, hence we install to cert to CA store, and then need to move it)
Copy link
Contributor

@scottbommarito scottbommarito Jul 29, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit - # Install the Microsoft Internal Corporate root cert required for KeyVault access to LocalMachine\AuthRoot (it's not supported by Azure, hence we install the cert... #Resolved

@scottbommarito
Copy link
Contributor

LGTM, just a couple nits

@maartenba maartenba mentioned this pull request Aug 2, 2016
5 tasks
@skofman1 skofman1 deleted the feature-KeyVault branch August 5, 2016 22:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants