question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

"write" permission not allowed in list of values for "allow"

See original GitHub issue

While trying to configure my module scripts, I stumbled upon a squiqqly orange warning underline in Visual Studio Code (using https://github.com/jurassiscripts/vscode-velociraptor) after adding "write" to the list of permissions under the key "allow" in my scripts.json:

Bildschirmfoto 2021-03-27 um 10 42 43

Examining this further, it seems like the value "write" is not in the list of allowed values, even though it should be:

Bildschirmfoto 2021-03-27 um 10 43 14

According to the readme of velociraptor, the section Permissions states that Deno permissions can be specified using the allow key, of which all but "write" can be specified without a warning.

I created this issue here because the vscode extension (at least at the moment) is only a “wrapper” around code in this repository and any fix there would actually be a fix here.

My suggestion would be to add write?: string | boolean; here to the AllowFlags interface in scripts_config.ts, for which I will add a PR shortly.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
jakehlcommented, Jun 21, 2022

No worries, yours is a better solution. Thanks for updating, love the project.

1reaction
umbopepatocommented, Jun 20, 2022

You’re right! Actually some time ago I added a data provider that fetches the last vr version automatically at build time but I forgot to use it in this section. I fixed this while I was working on the dark theme, you should see the right version now! Thank you so much for the PR anyway 🙂

Read more comments on GitHub >

github_iconTop Results From Across the Web

File Permissions in Linux / Unix: How to Read, Write & Change?
The permissions on a file can be changed by 'chmod' command which can be further divided into Absolute and Symbolic mode. The 'chown'...
Read more >
WRITE_EXTERNAL_STORAGE when targeting Android 10
The warning says that the permission will no longer provide write access when targeting Android 10 and above.
Read more >
Establishing Windows File and Folder Level Permissions
When you set permissions, you are specifying what level of access a user(s) has to the folder and the files within it. Be...
Read more >
Unix/Linux Permissions - An Introduction and Tutorial
Write permission means you can add a new file to the directory. It also means you can rename or move files in the...
Read more >
Changing File Permissions (System Administration Guide
The chmod command enables you to change the permissions on a file. You must be superuser or the owner of a file or...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found