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

maui has an dependecy to SponsorLink #16647

Closed
3 tasks
FlorianGrimm opened this issue Aug 9, 2023 · 6 comments
Closed
3 tasks

maui has an dependecy to SponsorLink #16647

FlorianGrimm opened this issue Aug 9, 2023 · 6 comments
Labels
platform/android 🤖 platform/iOS 🍎 platform/macOS 🍏 macOS / Mac Catalyst platform/windows 🪟 s/not-a-bug This isn't actually a bug, or is working as expected t/bug Something isn't working

Comments

@FlorianGrimm
Copy link

Description

maui has an dependecy to ThisAssembly.Constants which has an dependency to SponsorLink

https://github.com/devlooped/ThisAssembly/blob/main/src/ThisAssembly.Constants/SponsorLink.cs

I think this is the other side of good.

Steps to Reproduce

use maui

Link to public reproduction project repository

No response

Version with bug

7.0.49

Is this a regression from previous behavior? In other words, did this work before an update and now does not?

  • Yes, this used to work
  • No, this is something new
  • Not sure, did not test other versions

Last version that worked well

6.0

Affected platforms

iOS, Android, Windows, macOS, Other (Tizen, Linux, etc. not supported by Microsoft directly), I was not able test on other platforms

Affected platform versions

No response

Did you find any workaround?

No response

Relevant log output

No response

@FlorianGrimm FlorianGrimm added the t/bug Something isn't working label Aug 9, 2023
@drasticactions
Copy link
Contributor

MAUI does not have a dependency on SponsorLink. #16638

MAUI does not reference "ThisAssembly.Constants" in its codebase. The nearest one would be GitInfo and the version used is 2.2.0, which does not have that dependency. https://github.com/dotnet/maui/blob/main/eng/Git.Build.targets#L3

Moreover, even if it was bumped to a newer version that did include it, that would potentially be an issue for those building MAUI locally but it's not included as part of the framework (As in, it's not in the workloads nor something you would have installed on your machine)

If you can find an actual use of SponsorLink or other dependencies which are pulled in as part of the build that you don't expect to be there (As in, are the DLLs being invoked as part of a build? Are they in the workloads?) feel free to reopen this issue or make a new one.

@drasticactions drasticactions closed this as not planned Won't fix, can't repro, duplicate, stale Aug 9, 2023
@aL3891
Copy link

aL3891 commented Aug 9, 2023

that would potentially be an issue for those building MAUI locally

Isnt that significant? You're potentially exposing your contributors to a GDPR violation at worst and at best a case of "trust me, this closed source, obfuscated code that runs every build, abuses the analyser contract and downloads and sends data to some external server wont do anything bad or have any vulnerability"

it does this regardless if you sponsor the project in question or not btw.

@hartez
Copy link
Contributor

hartez commented Aug 9, 2023

that would potentially be an issue for those building MAUI locally

Isnt that significant? You're potentially exposing your contributors to a GDPR violation at worst and at best a case of "trust me, this closed source, obfuscated code that runs every build, abuses the analyser contract and downloads and sends data to some external server wont do anything bad"

Well first, to be clear: the version MAUI is using in its build process does not have the offending code.

And we're not saying that it would be insignificant if it did; just that the set of folks affected would be limited to contributors, rather than everyone using the SDK. Which is serious, and why we took the time to make sure it wasn't the case.

@drasticactions
Copy link
Contributor

Well first, to be clear: the version MAUI is using in its build process does not have the offending code.

And we're not saying that it would be insignificant if it did; just that the set of folks affected would be limited to contributors, rather than everyone using the SDK. Which is serious, and why we took the time to make sure it wasn't the case.

Yes, my point was that even if it was included (which, to be clear, would be bad!) it wouldn't be part of the MAUI builds (I.E that code wouldn't be in the compiled or shipped with MAUI, it wouldn't end up in the workloads, nor part of code deployed to end users, etc). But the version we currently use is from 2021 and doesn't have that included.

In retrospect, I should have been a bit less blunt about it, and I apologize. Seeing the conversation around it, and especially how it devolves, I was trying to avoid it by making it very clear that MAUI does not have dependencies that use it.

I think Rich Landers comment regarding it in dotnet/runtime says it best, dotnet/runtime#90222 (comment).

If you see weird dependencies or artifacts you don't expect as part of your build appearing, then by all means let us know.

@samhouts samhouts added the s/not-a-bug This isn't actually a bug, or is working as expected label Aug 10, 2023
@FlorianGrimm
Copy link
Author

I'm happy that you are not using a version later than 2023-01-24.
I looked in to SponsorLink. The obfuscation impose a bad feeling to me.
I found
in the version 1.0 http calls to https://cdn.devlooped.com/sponsorlink/.
in the version 0.8 http calls to https://devlooped.blob.core.windows.net/sponsorlink/
...may be for a good reason, but why hide it?
I added ThisAssembly in my projects, because other nuget used it.
So I looked around which repo also used it, and your repo was the first hit - so I reported it.
Updating any nuget version is hard work - to check what changed indirectly - I think I missed it.

Happy coding

@jfversluis
Copy link
Member

Just to close the loop on this one, the .NET MAUI repository is in line with what is written here for the .NET runtime repository.

Additionally we have written some details in a discussion that was also already opened earlier.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
platform/android 🤖 platform/iOS 🍎 platform/macOS 🍏 macOS / Mac Catalyst platform/windows 🪟 s/not-a-bug This isn't actually a bug, or is working as expected t/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

6 participants