Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

--allow-sys permission flags not documented #1328

Open
dandv opened this issue Jan 13, 2025 · 1 comment
Open

--allow-sys permission flags not documented #1328

dandv opened this issue Jan 13, 2025 · 1 comment

Comments

@dandv
Copy link
Contributor

dandv commented Jan 13, 2025

cleanStack.ts:

import cleanStack from 'npm:clean-stack';

const e = new Error('message');

console.log(cleanStack(e.stack, { pretty: true }));
$ deno cleanStack.ts 
┏ ⚠️  Deno requests sys access to "homedir".
┠─ Requested by `node:os.homedir()` API.
┠─ To see a stack trace for this prompt, set the DENO_TRACE_PERMISSIONS environmental variable.
┠─ Learn more at: https://docs.deno.com/go/--allow-sys
┠─ Run again with --allow-sys to bypass this prompt.

https://docs.deno.com/runtime/fundamentals/security/#system-information doesn't list homedir among

This flag can be specified with a list of allowed interfaces from the following list: hostname, osRelease, osUptime, loadavg, networkInterfaces, systemMemoryInfo, uid, and gid.

I'd rather not make naive a PR adding "homedir" without knowing how this works under the hood (is "homedir" part of a "node:os" family of flags that should be documented? what other flags should be listed?).

@dandv dandv changed the title Document the 'homedir' --allow-sys permission --allow-sys permission flags not documented Jan 13, 2025
@dandv
Copy link
Contributor Author

dandv commented Jan 14, 2025

Another flag: cpus.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant