1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-27 01:29:14 -05:00
denoland-deno/tests/testdata
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
..
assets chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
bench feat(cli): use NotCapable error for permission errors (#25431) 2024-09-10 11:12:24 -07:00
benches chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
cache chore: migrate bench, publish, and more itests to spec tests (#23584) 2024-04-29 10:08:27 -04:00
cert chore: update to std@2024.07.19 (#24715) 2024-07-25 15:30:28 +10:00
check fix(check): ignore noImplicitOverrides in remote modules (#25854) 2024-09-24 20:49:44 -04:00
commonjs chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
compile chore: update to std@2024.07.19 (#24715) 2024-07-25 15:30:28 +10:00
coverage BREAKING(types): soft-remove Deno.run() (#25403) 2024-09-05 08:45:55 +10:00
dynamic_import feat: add --allow-import flag (#25469) 2024-09-26 01:50:54 +00:00
encoding chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
file_extensions chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
fmt BREAKING: remove deprecated files config (#25535) 2024-09-09 16:33:09 +00:00
image fix(ext/web): properly handle Blob case for createImageBitmap (#23518) 2024-05-07 04:47:42 -07:00
import_attributes feat: deprecate import assertions (#25281) 2024-08-29 01:06:09 +00:00
import_maps chore: rough first pass on spec tests (#22877) 2024-03-13 16:21:13 +00:00
info chore: move info itests (#25659) 2024-09-16 17:08:00 +00:00
inspector chore: enable clippy::print_stdout and clippy::print_stderr (#23732) 2024-05-08 22:45:06 -04:00
install chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
jsx feat: add jsx precompile skip element option (#23457) 2024-04-22 17:07:36 +02:00
jupyter chore: move more tests away from itest (#22909) 2024-03-15 15:46:51 -04:00
lint/watch chore: deprecate lint itests (#25655) 2024-09-16 17:45:25 +00:00
lockfile feat: lockfile v4 by default (#25165) 2024-08-26 23:01:50 +00:00
lsp chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
malformed_config chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
module_graph chore: update references to deno_std to use JSR (#23239) 2024-04-10 17:26:35 -04:00
node chore: deprecate node compat itests (#25573) 2024-09-16 09:53:20 +01:00
npm chore: deprecate npm itests (#25804) 2024-09-25 18:46:18 +00:00
publish fix(publish): workspace included license file had incorrect path (#24747) 2024-07-26 15:35:29 +00:00
repl Revert "feat(fmt): sort type-only named import/exports last" (#25705) 2024-09-18 13:54:52 +00:00
run feat: add --allow-import flag (#25469) 2024-09-26 01:50:54 +00:00
runtime chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
serve feat: print Listening on messages on stderr instead of stdout (#25491) 2024-09-14 23:30:06 +02:00
subdir FUTURE: remove import assertions support for JavaScript (#23541) 2024-04-29 22:43:05 +02:00
task refactor: reenable more tests after DENO_FUTURE migration (#25752) 2024-09-24 03:33:03 +02:00
test chore: deprecate test itests (#25512) 2024-09-16 19:38:40 +00:00
tls fix(ext/tls): add support EC private key (#23261) 2024-04-08 11:36:34 -06:00
tsc chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
tsc2 chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
type_definitions chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
unfurl feat(publish): support sloppy imports and bare node built-ins (#22588) 2024-02-27 15:13:16 +00:00
webcrypto chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
webgpu fix(ext/webgpu): assign missing constants property of shader about GPUDevice.createRenderPipeline[Async] (#24803) 2024-08-01 11:19:25 -07:00
workers feat: add --allow-import flag (#25469) 2024-09-26 01:50:54 +00:00
add.ts feat: add --allow-import flag (#25469) 2024-09-26 01:50:54 +00:00
cat.ts feat(lint): deno lint --fix and lsp quick fixes (#22615) 2024-03-21 14:18:59 -07:00
echo.ts chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
echo_server.ts chore: update to std@2024.07.19 (#24715) 2024-07-25 15:30:28 +10:00
env chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
env_unparsable fix: --env flag confusing message on syntax error (#23915) 2024-05-27 15:06:18 +02:00
error_cause_recursive_aggregate.ts chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
error_cause_recursive_aggregate.ts.out chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
error_cause_recursive_tail.ts chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
error_cause_recursive_tail.ts.out chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
navigator_language.ts chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
navigator_languages.ts chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
spawn_kill_permissions.ts chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
symlink_to_subdir chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
welcome.ts chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00