-
Notifications
You must be signed in to change notification settings - Fork 361
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
SignValidationExclusionList does not work #2888
Comments
Would it be possible to specify the exclusion list directly, instead of generating it? I'm working on converting aspnet/AspNetCore to use Arcade. We already have a sign exclusion file in the right format (see https://github.com/aspnet/AspNetCore/blob/master/eng/signcheck.exclusions.txt). It seems unnecessary to invent an MSBuild API to generate this file when we can just create the file manually. Also, I couldn't find anyone else using the SignValidationExclusionList item group, so it might be safe to remove this altogether. |
Did you try adding the separators that SignCheck expect? |
Sorry, missed the reply. I didn't try adding the separators yet. I haven't figured out a good way to test signcheck exclusions without pushing to master and hoping for the best. |
I found this in the code, but is there a more accessible doc on the separators that SignCheck expects? arcade/src/SignCheck/Microsoft.SignCheck/Verification/Exclusion.cs Lines 23 to 35 in 397316e
(Haven't seen whether it works yet. I expect it will given this recent fix: #3572.) /cc @joeloff |
Oh, weird, I guess but the SDK has a copy that doesn't implement it: I guess stage-based publish only supports the raw txt file, and the PR I pointed to is only about that. 😕 |
Looks like Arcade might be generating a file based on an item group. |
It does in the eng/common one, but not the SDK duplicate. Stages-based publishing/validation seems to use the SDK duplicate. |
For the record, this is the exclusion file that stages-based signing validation uses: |
Yeah, I figured out how to get exclusions to work like that without It seems to work fine, I am not blocked on |
I don't believe this problem remains. For example, I was able to exclude some sign checks in dotnet/aspnetcore#13899. But, I'm leaving this open in case I'm missing some aspect of the problem. |
Based on Doug's last comment I am assuming this is fixed. |
I had to disable the async pipelines publishing for aspnet/Blazor because I cannot get SignValidationExclusionList to work.
I have specified, by file name, the files in Microsoft.AspNetCore.Blazor.Mono which are not supposed to be code-signed. (See https://github.com/aspnet/Blazor/blob/ff7b7c94be74f39d99043a3f5374960d78b76813/eng/Signing.props#L196-L197). Despite this, the signing validation step still fails the build . See https://dev.azure.com/dnceng/internal/_releaseProgress?_a=release-environment-logs&releaseId=8007&environmentId=22188
I suspect the problem is the generation of the signcheck exclusion file:
arcade/eng/common/SigningValidation.proj
Lines 54 to 59 in cb9317c
I think this maybe producing a file that is not in the format signcheck expects.
@JohnTortugo @dougbu @JunTaoLuo
The text was updated successfully, but these errors were encountered: