top | item 43868923

(no title)

csiegert | 10 months ago

It’s definitely nice to know that nothing gets executed, read, written or sent without permission from the user when running a program/script with Deno.

You complain the flags always have to be set to get anything working so they are supposedly useless. No, you don’t have to set them in a grant-all fashion. All flags allow fine-grained permissions, e.g. --allow-env=API_KEY,PORT only allows access to the env vars API_KEY and PORT instead of all env vars. The same principle applies to --allow-net, --allow-run, --allow-read, --allow-write, etc. See `deno run --help` or https://docs.deno.com/runtime/fundamentals/security/ for more.

discuss

order

No comments yet.