-
Notifications
You must be signed in to change notification settings - Fork 107
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
Why requires env access? #262
Comments
Hmm, I'm not sure why NDK would need env access. there's nothing I'm aware of in the codebase that is asking for env access. |
yeah, I don't think this is related to NDK, please reopen if you pinpoint something where this is happening. |
Why not? Code (ndk.ts):
Execution (--allow-read is required too, but I don't know it is related to this issue.):
|
Deno says
PermissionDenied: Requires env access, run again with the --allow-env flag
.Other libraries does not requre it.
I don't think it is good to allow env access to libraries because it could be a security issue.
Permission control is the responsibility of apps, not libraries.
It would be better to accept parameters from constructor or method arguments.
The text was updated successfully, but these errors were encountered: