-
Notifications
You must be signed in to change notification settings - Fork 114
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ref(wash): Change plugins to support arbitrary path access
This allows plugins to mark arguments as paths so that they can be preopened and allowed in the component. This tries to walk a path between security and flexibility. If an argument is marked as a path, wash will allow full access to it if it is a directory and then limited access to a directory and full access to the file if it is a path. It isn't perfect due to the limited nature of preopens, but it does mean that the plugin will not get access to anything outside of its scratch dir without the user explicitly passing the path. Once this is merged there will be two follow ups: one is a PR to this repo updating the example code and the other will be to the docs repo to update documentation on the security around paths Signed-off-by: Taylor Thomas <taylor@cosmonic.com>
- Loading branch information
1 parent
b43bec8
commit c074106
Showing
8 changed files
with
372 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.