Closed josephrocca closed 8 months ago
Here's the issue: https://github.com/denoland/deno/issues/19864#issuecomment-1639804027
Is there a less hacky way to do that, or could one be added? I don't want to give my server read access to my whole machine, even if that means having to add some extra configuration options or something.
I don't think that we have a cleaner solution to that at this time. That said I am opening an internal issue to evaluate our support for deno (and other new JS runtimes like Bun) to evaluate improving our support for them.
Thank you!
Currently Rollbar works in Deno. Just install, then run the script below with
deno run --allow-read --allow-net main.js
That works fine.
But the problem is that it needs to read a file outside of the current directory. I'm not sure yet what file this is but I'm wondering whether it's possible to ensure that Rollbar only every reads files within the current directory (and subdirectories)?
If this were possible, then that would mean I could give my servers the
--allow-read=.
permission, which is much safer than allowing the server to read any file on the machine (which is what's currently required to get Rollbar working in Deno).Currently I use
--allow-read=.
on my servers, and none of my other imports have any trouble with this. It's only Rollbar that seems to want to look outside of the current directory.