microsoft / win32-app-isolation

Tools and documentation for Win32 app isolation
MIT License
1.26k stars 33 forks source link

[Feature]: Ability to declare the ComServer extension without the runFullTrust rescap #42

Open ahmed605 opened 1 year ago

ahmed605 commented 1 year ago

Summary

Add the ability to declare the ComServer extension without runFullTrust rescap

Pitch

Currently it's required to declare the runFullTrust rescap in order to use the ComServer extension, it would be great if MSIX allowed creating global containerized (AC and/or AppSilo) COM servers that do not require the runFullTrust rescap, this will unlock many things like the ability to create 3rd party Windows Widgets without having that rescap

There are multiple reasons why an app dev wouldn't want to declare the runFullTrust rescap, examples include:

AndromedaMelody commented 1 year ago

https://github.com/microsoft/win32-app-isolation/pull/24#discussion_r1206077284

AndromedaMelody commented 1 year ago

After declaring runFullTrust, any prompt about privileges won't show, and it's permitted by default, although the app is UWP, PartialTrustApplication or running in AppSilo. Especially, I only want to add a COMServer for UWP, but the cost is that users can't manage privileges. It's not safe. AppSilo is also a good way to extend UWP (such as write a IExploreCommand extension). Xbox/WCOS/… block runFullTrust without declaring Microsoft.deployFullTrustOnHost_8wekyb3d8bbwe. This feature also will help UWP developers. By the way, will AppSilo support Xbox/Hololens/SurfaceHub/WindowsCoreOS? If AppSilo support Xbox/WCOS/…, not only UWP developers but also WASDK(WinUI 3) developers will benefit from it.

ahmed605 commented 1 year ago

add a reason: after declaring runFullTrust, any prompt about privileges won‘t show, and it‘s permitted by default, although the app is uwp, partial trust app or running in appsilo. especially, i only want to add a com server for uwp, but the cost is that user can‘t manage privileges. it‘s not safe. app silo is also a good way to extend uwp(such as write a IExploreCommand extension for uwp). xbox/wcos/… will block runFullTrust without declaring Microsoft.deployFullTrustOnHost_8wekyb3d8bbwe. this feature also will help uwp developers. and will app silo support Xbox/Hololens/SurfaceHub/WindowsCoreOS? if app silo support xbox/wcos/…,not only uwp developers but also wasdk(winui3) developers will benefit from it

Added, thanks!

cchavez-msft commented 1 year ago

Hi, @ahmed605. Thank you for your feedback. I appreciate your concerns regarding the runFullTrust capability, and I'd like to provide further clarification on the points you raised:

We do understand your concerns and the confusion caused by this capability so we are looking into it to determine its feasibility. We will keep you posted.

Thanks again for the constructive feedback, we strongly appreciate it.