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

[feat] An fs:scope that wraps all permisions at once #2869

Open
Eduard20CR opened this issue Oct 8, 2024 · 1 comment
Open

[feat] An fs:scope that wraps all permisions at once #2869

Eduard20CR opened this issue Oct 8, 2024 · 1 comment

Comments

@Eduard20CR
Copy link

Describe the problem

I had to make a like 50 permisions like this:

{
"identifier": "fs:allow-appdata-write",
"allow": [
{
"path": ""
},
{
"path": "
/"
},
{
"path": "/**/
"
}
]
},

Just to be able to remove files.

Describe the solution you'd like

Something like:
{
"identifier": ["fs:scope-1", "fs:scope-2"],
"allow": [
{
"path": ""
},
{
"path": "
/"
},
{
"path": "/**/
"
}
]
},

or

{
"identifier": "fs:all",
"allow": [
{
"path": ""
},
{
"path": "
/"
},
{
"path": "/**/
"
}
]
},

Alternatives considered

No response

Additional context

PD: I love tauri

@Eduard20CR
Copy link
Author

Update:
Actually, there are some scopes that do that, skill issue :). But it would be great if we can make it move clear on the documentation. Thanks!

 {
      "identifier": "fs:allow-remove",
      "allow": [
        {
          "path": "**"
        },
        {
          "path": "**/*"
        },
        {
          "path": "/**/*"
        }
      ]
    },
    {
      "identifier": "fs:write-all",
      "allow": [
        {
          "path": "**"
        },
        {
          "path": "**/*"
        },
        {
          "path": "/**/*"
        }
      ]
    },
    {
      "identifier": "fs:read-all",
      "allow": [
        {
          "path": "**"
        },
        {
          "path": "**/*"
        },
        {
          "path": "/**/*"
        }
      ]
    }

@FabianLars FabianLars transferred this issue from tauri-apps/tauri Oct 15, 2024
@github-project-automation github-project-automation bot moved this to 🪵 Backlog in Documentation Oct 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 🪵 Backlog
Development

No branches or pull requests

1 participant