-
Notifications
You must be signed in to change notification settings - Fork 21
[Repository Signing] Add option to suppress repository signature extraction #495
Conversation
@@ -227,6 +231,12 @@ private static ExtractedCertificates ExtractPrimarySignatureCertificates(Context | |||
return; | |||
} | |||
|
|||
if (type == PackageSignatureType.Repository && !_configuration.Value.ExtractRepositorySignatures) | |||
{ | |||
_logger.LogWarning("Skipping initialization of repository signature due to configuration!"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we really want a bajillion of these warnings?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can lower it to a regular informational log.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lowered to LogInformation
@@ -22,7 +22,8 @@ | |||
"AllowedRepositorySigningCertificates": [ | |||
"cf7ac17ad047ecd5fdc36822031b12d4ef078b6f2b4c5e6ba41f8ff2cf4bad67" | |||
], | |||
"V3ServiceIndexUrl": "https://api.nuget.org/v3/index.json" | |||
"V3ServiceIndexUrl": "https://api.nuget.org/v3/index.json", | |||
"ExtractRepositorySignatures": false |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Commit
instead of Extract
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated
await _target.ExtractAsync(_packageKey, signature, _token); | ||
|
||
// Assert | ||
Assert.Equal(0, _entitiesContext.Object.PackageSignatures.Count()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe assert blobs are persisted, so we have expected behavior covered.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Address comments then
Added HSTS header, removed the 'X-Powered-By'
Added HSTS header, removed the 'X-Powered-By'
No description provided.