1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-22 07:14:47 -05:00
denoland-deno/runtime/ops
Nayeem Rahman 22e0ee92a6
BREAKING(unstable): Use hosts for net allowlists (#8845)
Allowlist checking already uses hosts but for some reason 
requests, revokes and the runtime permissions API use URLs.

- BREAKING(lib.deno.unstable.d.ts): Change 
NetPermissionDescriptor::url to NetPermissionDescriptor::host

- fix(runtime/permissions): Don't add whole URLs to the 
allowlist on request

- fix(runtime/permissions): Harden strength semantics:
({ name: "net", host: "127.0.0.1" } is stronger than 
{ name: "net", host: "127.0.0.1:8000" }) for blocklisting

- refactor(runtime/permissions): Use tuples for hosts, make 
the host optional in Permissions::{query_net, request_net, revoke_net}()
2020-12-30 23:35:28 +01:00
..
crypto.rs refactor: deno_runtime crate (#8640) 2020-12-13 19:45:53 +01:00
dispatch_minimal.rs refactor: deno_runtime crate (#8640) 2020-12-13 19:45:53 +01:00
fetch.rs refactor: deno_runtime crate (#8640) 2020-12-13 19:45:53 +01:00
fs.rs refactor: rewrite ops to use ResourceTable2 (#8512) 2020-12-16 17:14:12 +01:00
fs_events.rs refactor: rewrite ops to use ResourceTable2 (#8512) 2020-12-16 17:14:12 +01:00
io.rs refactor: rewrite ops to use ResourceTable2 (#8512) 2020-12-16 17:14:12 +01:00
mod.rs refactor: deno_runtime crate (#8640) 2020-12-13 19:45:53 +01:00
net.rs BREAKING(unstable): Use hosts for net allowlists (#8845) 2020-12-30 23:35:28 +01:00
net_unix.rs refactor: rewrite ops to use ResourceTable2 (#8512) 2020-12-16 17:14:12 +01:00
os.rs refactor: deno_runtime crate (#8640) 2020-12-13 19:45:53 +01:00
permissions.rs BREAKING(unstable): Use hosts for net allowlists (#8845) 2020-12-30 23:35:28 +01:00
plugin.rs refactor: rewrite ops to use ResourceTable2 (#8512) 2020-12-16 17:14:12 +01:00
process.rs refactor: rewrite ops to use ResourceTable2 (#8512) 2020-12-16 17:14:12 +01:00
runtime.rs refactor: deno_runtime crate (#8640) 2020-12-13 19:45:53 +01:00
signal.rs refactor: rewrite ops to use ResourceTable2 (#8512) 2020-12-16 17:14:12 +01:00
timers.rs refactor: deno_runtime crate (#8640) 2020-12-13 19:45:53 +01:00
tls.rs BREAKING(unstable): Use hosts for net allowlists (#8845) 2020-12-30 23:35:28 +01:00
tty.rs refactor: rewrite ops to use ResourceTable2 (#8512) 2020-12-16 17:14:12 +01:00
web_worker.rs refactor: deno_runtime crate (#8640) 2020-12-13 19:45:53 +01:00
websocket.rs fix(runtime/websocket): remove eprintln (#8817) 2020-12-18 11:27:53 +01:00
worker_host.rs refactor: deno_runtime crate (#8640) 2020-12-13 19:45:53 +01:00