-
Notifications
You must be signed in to change notification settings - Fork 29
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
Sign almost all the things #870
Conversation
latest official build run https://dev.azure.com/dnceng/internal/_build/results?buildId=2515475&view=results |
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.
LGTM. For the 0-byte files, should we add something in Arcade to always ignore 0 byte files or allow repos to set a flag that says don't sign 0 byte files because otherwise we'll need to continue adding exclusions like the RemoveDir logic in the emsdk.proj
@@ -362,6 +362,6 @@ extends: | |||
- template: /eng/common/templates-official/post-build/post-build.yml@self | |||
parameters: | |||
enableSourceLinkValidation: false | |||
enableSigningValidation: false | |||
enableSigningValidation: true |
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.
What kind of time does this add to the build?
|
Can you describe a pattern that you would write in your Sign.props that we could implement to handle these cases? Generally the sign infra has always focused on file name and file extensions to calculate target sig. In some cases it takes into account public key tokens. |
<FileExtensionSignInfo Update=".ps1" CertificateName="None" /> | ||
<FileExtensionSignInfo Update=".js" CertificateName="None" /> | ||
<FileExtensionSignInfo Include=".vbs" CertificateName="None" /> | ||
<FileExtensionSignInfo Update=".py" CertificateName="3PartyScriptsSHA2" /> |
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.
What happened to the .vbs entry?
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.
There are no vbs files anymore
Co-authored-by: Alexander Köplinger <[email protected]>
Co-authored-by: Alexander Köplinger <[email protected]>
Interestingly this slowdown appears to only happen on the official build. |
The goal here is to sign everything we can. After much testing the main insight is that 3PartyScriptsSHA2 works for the script files and some of the previously complicated files no longer exist. There are still a couple of problems:
__init__.py
files to exist and there is no way to deal with them at the moment.