Replies: 6 comments 20 replies
-
The proposal has been updated:
The changes can be known using the “edited” button. |
Beta Was this translation helpful? Give feedback.
-
I'm not familiar with the process for proposals here, is this something that is being worked on? What needs to happen so it gets worked on? Beyond that I have some questions, I'm from the perspective of a freecad user/dev trying to understand if links can eventually work with the desktop portal. Currently our flatpak app just has host permissions to wrokaround this.
what if a linked file also links to other files? This is common in freecad projects. The app would need to read the linked file before knowing it links to other files so it will need to make more than one request to get all the linked files it needs, I don't think secondary requests should be automatically refused, in any case the user could be prompted (and given the option to accept all requests)
If a time limit will be imposed I hope it's a relatively long one or that there is still the possibility of requesting access with a prompt for the user if the time has passed. CAD files can get pretty big and therefore slow to open in big projects, although I'm not sure if links are read and requested early. Considering the case of linked files linking others I mentioned before I think the timer should be reset after the first level of linked files is accessed. Would this also allow access to files in sub-directories in the same location? This is also common in FreeCAD projects and if I'm being honest any arbitrary relative path from the file is a common thing, can we think about allowing arbitrary relative paths? We can think about prompting the user whenever the app request files in a different directory.
we could be smart about this, an app requesting a bunch of files of the same extension as the opened file is not so suspicious, the files could be grouped by extensions and the interface could have more highlight to specially suspicious requests like scripts, dot files and directories or anything deemed sensitive |
Beta Was this translation helpful? Give feedback.
-
Yes. An Inform XYZ.materials folder may have a .gitignore file inside it, which is autogenerated by the Inform compiler. |
Beta Was this translation helpful? Give feedback.
-
Thanks @Mikenux for putting this together. Just a small hint: The required files doesn't have to necessarily neighboring to the file, they can come from a different path. Usecase app.freelens.Freelens on flathub needs access to the .kube/config file, which can include (link) certificates / keys from the FS. Example:
|
Beta Was this translation helpful? Give feedback.
-
But what if the app can't know what it will ask for before it opens the
"main" file which contains the references. My idea was:
0. Use filepicker to open the "project file" in case of projects and
retrieve a "token"
1. App Parses the file and uses the token to make an async request through
the portal for extra files
2. User reviews the request and if approved the files will get mounted to
the app.
Although I have to admit that my understanding of this complex topic is
rather low.
…On Tue, Aug 19, 2025 at 9:09 PM Michaël ***@***.***> wrote:
I don't know how people talk about this proposal, but don’t forget that a
request can only be made after opening a file via the file chooser or via a
file that the app already has access to. In addition, the opening of this
file will be indicated in the user interface, while reflecting that the
list of requested files follows the opening of a file that contains links
to these files. This is not a proposal to request a file at any time.
Note that if an app has the ability to acquire arbitrary permissions,
especially file permissions, the permission request here might not be
presented to the user.
—
Reply to this email directly, view it on GitHub
<#1256 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AASERIZ635MZ37IGTL5NGZL3ONY5RAVCNFSM6AAAAACEFMC6E6VHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTIMJVGYYDQNQ>
.
You are receiving this because you were mentioned.Message ID:
***@***.***
.com>
|
Beta Was this translation helpful? Give feedback.
-
In this example it's not a credential. It's just a public certificate that
you're sure, who do you talk to.
Token enables doing the request only once, that was my initial idea + it's
clear what is it related to.
Thanks for the clarification. 👌
…On Tue, Aug 19, 2025, 22:37 Michaël ***@***.***> wrote:
This is generally what is proposed. I don't know if a token is needed,
because the app parses the file and then makes the request (the rest is
handled by the portal itself).
It's just that you need to open the file from the file chooser. If the app
opens a file from '/.kube/config' without using the file chooser, it should
not work. However, I'm not sure it is ok to allow requests in hidden
folders and presenting a permission dialog to users for apps that can
acquire file permissions as I said above. Otherwise, opening the CRT (KEY)
file and using related files (#1290
<#1290>) to open
the KEY (CRT) file seems acceptable (although it is preferable to use a
credential portal to acquire credentials, it may be acceptable to use the
related files if both files conceptually represent a credential).
—
Reply to this email directly, view it on GitHub
<#1256 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AASERI2QTNS6MYW5LJJHTQD3OODHXAVCNFSM6AAAAACEFMC6E6VHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTIMJVGY3TKNA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***
.com>
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Canceled
Beta Was this translation helpful? Give feedback.
All reactions