mirror of
https://github.com/denoland/deno.git
synced 2025-03-03 17:34:47 -05:00
Adjust roadmap security text. (#320)
This commit is contained in:
parent
6f7ca760b8
commit
6c9598d358
1 changed files with 15 additions and 13 deletions
28
Roadmap.md
28
Roadmap.md
|
@ -44,17 +44,16 @@ https://github.com/ry/deno/master/testing.js
|
||||||
* Threat model:
|
* Threat model:
|
||||||
* Modifiying/deleting local files
|
* Modifiying/deleting local files
|
||||||
* Leaking private information
|
* Leaking private information
|
||||||
* By default:
|
* Disallowed default:
|
||||||
* No network access
|
* Network access
|
||||||
* No local write access
|
* Local write access
|
||||||
* No non-js extensions
|
* Non-JS extensions
|
||||||
* No subprocesses
|
* Subprocesses
|
||||||
* No env access
|
* Env access
|
||||||
|
* Allowed default:
|
||||||
* Local read access.
|
* Local read access.
|
||||||
* argv, stdout, stderr, stdin access always allowed.
|
* argv, stdout, stderr, stdin access always allowed.
|
||||||
* Optional: temp dir by default. But what if they create symlinks there?
|
* Maybe: temp dir write access. (But what if they create symlinks there?)
|
||||||
* (We could relax by saying, you can get network access first and read access
|
|
||||||
after that.)
|
|
||||||
* The user gets prompted when the software tries to do something it doesn't have
|
* The user gets prompted when the software tries to do something it doesn't have
|
||||||
the privilege for.
|
the privilege for.
|
||||||
* Have an option to get a stack trace when access is requested.
|
* Have an option to get a stack trace when access is requested.
|
||||||
|
@ -62,10 +61,13 @@ https://github.com/ry/deno/master/testing.js
|
||||||
to monkey patching techniques. Access should be granted per program (js
|
to monkey patching techniques. Access should be granted per program (js
|
||||||
context).
|
context).
|
||||||
|
|
||||||
Program requests write access to "~/.ssh/id_rsa". Grant? [yNs]?
|
Example security prompts. Options are: YES, NO, PRINT STACK
|
||||||
http://gist.github.com/asdfasd.js requests network access to "www.facebook.com". Grant? [yNs]?
|
```
|
||||||
Program requests access to environment variables. Grant? [yNs]?
|
Program requests write access to "~/.ssh/id_rsa". Grant? [yNs]
|
||||||
Program requests to spawn `rm -rf /`. Cool?
|
http://gist.github.com/asdfasd.js requests network access to "www.facebook.com". Grant? [yNs]
|
||||||
|
Program requests access to environment variables. Grant? [yNs]
|
||||||
|
Program requests to spawn `rm -rf /`. Grant? [yNs]
|
||||||
|
```
|
||||||
|
|
||||||
* cli flags to grant access ahead of time --allow-all --allow-write --allow-net
|
* cli flags to grant access ahead of time --allow-all --allow-write --allow-net
|
||||||
--allow-env --allow-exec
|
--allow-env --allow-exec
|
||||||
|
|
Loading…
Add table
Reference in a new issue