1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-22 07:14:47 -05:00
denoland-deno/cli/tools
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 feat: default to TS for file extension and support ext flag in more scenarios (#25472) 2024-09-18 21:15:13 +02:00
coverage fix(coverage): ignore urls from doc testing (#25736) 2024-09-20 15:04:22 +09:00
init fix(cli/tools): correct deno init --serve template behavior (#25318) 2024-09-02 23:01:36 +00:00
jupyter refactor(permissions): split up Descriptor into Allow, Deny, and Query (#25508) 2024-09-16 21:39:37 +01:00
lint fix: don't include extensionless files in file collection for lint & fmt by default (#25721) 2024-09-19 11:25:48 +02:00
registry feat: add --allow-import flag (#25469) 2024-09-26 01:50:54 +00:00
repl feat: add --allow-import flag (#25469) 2024-09-26 01:50:54 +00:00
run feat: add --allow-import flag (#25469) 2024-09-26 01:50:54 +00:00
test feat: default to TS for file extension and support ext flag in more scenarios (#25472) 2024-09-18 21:15:13 +02:00
check.rs feat: add --allow-import flag (#25469) 2024-09-26 01:50:54 +00:00
clean.rs feat(clean): add progress bar (#25026) 2024-08-14 13:04:07 +02:00
compile.rs feat: add --allow-import flag (#25469) 2024-09-26 01:50:54 +00:00
doc.rs feat: include version number in all --json based outputs (#25335) 2024-09-05 08:51:40 +00:00
fmt.rs feat(fmt): better error on malfored HTML files (#25853) 2024-09-25 01:00:16 +00:00
info.rs feat: add --allow-import flag (#25469) 2024-09-26 01:50:54 +00:00
installer.rs BREAKING: Remove --unstable flag (#25522) 2024-09-09 23:44:29 +02:00
mod.rs BREAKING: remove deno vendor (#25343) 2024-09-03 17:00:57 +10:00
serve.rs feat: add --allow-import flag (#25469) 2024-09-26 01:50:54 +00:00
task.rs fix(flags): don't treat empty run command as task subcommand (#25708) 2024-09-18 20:36:37 +02:00
upgrade.rs feat(upgrade): support LTS release channel (#25123) 2024-09-12 23:52:39 +02:00