1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-25 00:29:09 -05:00
denoland-deno/tests/testdata/workers
Bartek Iwańczuk 5504acea67
feat: add --allow-import flag (#25469)
This replaces `--allow-net` for import permissions and makes the
security sandbox stricter by also checking permissions for statically
analyzable imports.

By default, this has a value of
`--allow-import=deno.land:443,jsr.io:443,esm.sh:443,raw.githubusercontent.com:443,gist.githubusercontent.com:443`,
but that can be overridden by providing a different set of hosts.

Additionally, when no value is provided, import permissions are inferred
from the CLI arguments so the following works because
`fresh.deno.dev:443` will be added to the list of allowed imports:

```ts
deno run -A -r https://fresh.deno.dev
```

---------

Co-authored-by: David Sherret <dsherret@gmail.com>
2024-09-26 01:50:54 +00:00
..
bench_large_message.ts chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
bench_round_robin.ts chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
bench_startup.ts chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
bench_worker.ts chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
broadcast_channel.ts chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
busy_worker.js chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
close_in_wasm_reactions.js chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
close_nested_child.js chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
close_nested_parent.js chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
close_race_worker.js chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
deno_worker.ts chore: update to std@2024.07.19 (#24715) 2024-07-25 15:30:28 +10:00
drop_handle_race.js chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
dynamic_remote.ts chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
env_read_check_worker.js chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
event_worker.js chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
event_worker_scope.js chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
fetching_worker.js chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
http_worker.js chore(net): soft-remove Deno.serveHttp() (#25451) 2024-09-06 08:15:00 +10:00
image_data_worker.ts chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
immediately_close_worker.js chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
message_before_close.js chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
message_port.ts chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
nested_worker.js chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
no_permissions_worker.js BREAKING(permissions): remove --allow-hrtime (#25367) 2024-09-03 11:24:25 +02:00
non_deno_worker.js chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
parent_read_check_worker.js chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
permission_echo.js BREAKING(permissions): remove --allow-hrtime (#25367) 2024-09-03 11:24:25 +02:00
post_undefined.ts chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
racy_worker.js chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
read_check_granular_worker.js refactor(permissions): split up Descriptor into Allow, Deny, and Query (#25508) 2024-09-16 21:39:37 +01:00
read_check_worker.js chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
shared_array_buffer.ts chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
sibling_worker.js chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
static_remote.ts feat: add --allow-import flag (#25469) 2024-09-26 01:50:54 +00:00
test_worker.js chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
test_worker.ts chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
throwing_worker.js chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
worker_crypto.js chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
worker_event_handlers.js chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
worker_globals.ts chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
worker_large_message.js chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
worker_location.ts chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
worker_navigator.ts chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
worker_structured_cloning.ts chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
worker_unstable.ts chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
worker_with_top_level_await.ts chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00