1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-21 23:04:45 -05:00
denoland-deno/tests/integration
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_tests.rs chore: migrate bench, publish, and more itests to spec tests (#23584) 2024-04-29 10:08:27 -04:00
cache_tests.rs feat: add --allow-import flag (#25469) 2024-09-26 01:50:54 +00:00
check_tests.rs feat: add --allow-import flag (#25469) 2024-09-26 01:50:54 +00:00
compile_tests.rs feat: add --allow-import flag (#25469) 2024-09-26 01:50:54 +00:00
coverage_tests.rs feat: add --allow-import flag (#25469) 2024-09-26 01:50:54 +00:00
eval_tests.rs chore: deprecate eval itests (#25382) 2024-09-03 15:14:19 +00:00
flags_tests.rs feat: better help output (#24958) 2024-08-12 08:55:33 -07:00
fmt_tests.rs BREAKING: remove deprecated files config (#25535) 2024-09-09 16:33:09 +00:00
init_tests.rs fix(cli/tools): correct deno init --serve template behavior (#25318) 2024-09-02 23:01:36 +00:00
inspector_tests.rs Reland "refactor(fetch): reimplement fetch with hyper instead of reqwest" (#24593) 2024-07-18 01:37:31 +02:00
install_tests.rs feat: add --allow-import flag (#25469) 2024-09-26 01:50:54 +00:00
js_unit_tests.rs feat: stabilize Deno.createHttpClient() (#25569) 2024-09-12 10:46:48 +10:00
jsr_tests.rs feat: improve lockfile v4 to store normalized version constraints and be more terse (#25247) 2024-08-28 14:17:47 -04:00
jupyter_tests.rs fix: adapt to new jupyter runtime API and include session IDs (#24762) 2024-07-27 10:39:08 +02:00
lsp_tests.rs feat: add --allow-import flag (#25469) 2024-09-26 01:50:54 +00:00
mod.rs chore: deprecate lint itests (#25655) 2024-09-16 17:45:25 +00:00
node_unit_tests.rs feat: stabilize Deno.createHttpClient() (#25569) 2024-09-12 10:46:48 +10:00
npm_tests.rs chore: deprecate npm itests (#25804) 2024-09-25 18:46:18 +00:00
pm_tests.rs feat: require jsr prefix for deno install and deno add (#25698) 2024-09-18 20:38:22 +02:00
publish_tests.rs feat(publish): error on missing license file (#25011) 2024-08-12 19:51:58 -04:00
repl_tests.rs BREAKING: DENO_FUTURE=1 by default, or welcome to Deno 2.0 (#25213) 2024-08-30 13:58:58 -04:00
run_tests.rs feat: add --allow-import flag (#25469) 2024-09-26 01:50:54 +00:00
serve_tests.rs chore: maybe fix flaky serve_parallel test (#25668) 2024-09-16 18:55:49 +00:00
shared_library_tests.rs chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
task_tests.rs refactor: reenable more tests after DENO_FUTURE migration (#25752) 2024-09-24 03:33:03 +02:00
test_tests.rs chore: deprecate test itests (#25512) 2024-09-16 19:38:40 +00:00
upgrade_tests.rs tests: re-enable upgrade tests (#25680) 2024-09-18 14:08:21 +02:00
watcher_tests.rs feat: add --allow-import flag (#25469) 2024-09-26 01:50:54 +00:00