-
Notifications
You must be signed in to change notification settings - Fork 132
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
Remove binary cloaks from the VMR's main branch #4087
Comments
I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label. |
I'm thinking that we should keep the binary scanner. It will be necessary in preventing any new and unwanted binaries in the VMR. However, I'd like to modify the scanner to use the source-mapping file rather than the allowed-binaries.txt. The reasoning for this is that a developer would only have to touch a single file if they decide to include or cloak a file. Using source-mapping file, the binary scanner will search for any binaries not explicitly listed as "includes". This work will involve a few steps:
@premun It is my understanding that you originally implemented the binary scan functionality. Do you think that these changes would be possible? I've taken a look through the binary scanner source code, but I'd like your thoughts on these proposed changes since you're more well-versed with the tool than I am. |
Yeah, this sounds like a good plan to me. It should be fairly straightforward to extend the file model and transition onto it. The scan itself was implement by @dkurepa but we're both able to assist with the changes. There are even E2E tests in the |
I wonder if there is value in pulling this outside of arcade-services so that is can be run by distro-maintainers in their source-build environment? e.g. treat is more as a smoke-test. |
There is a shared desire to build both the Microsoft flavor of .NET as well as all of the source-build distro versions from the same source (one repo/commit/tag). To support this binaries will be allowed within the VMR going forward but require an explicit action. The current set of OSS-license binaries will be allowed wholesale as to not hinder the Unified Build project.
When doing this work, it is important to preserve cloaks that remove non-oss licensed components e.g. https://github.com/dotnet/installer/blob/main/src/VirtualMonoRepo/source-mappings.json#L193.
As part of this work, it will have to be decided what to do with the binary scan detector. That tool may still be needed by #4089
The text was updated successfully, but these errors were encountered: