I need some guidance regarding interprocess communication with Deno

What are good cross-platform (Windows, Linux) options for interprocess communication / data sharing between a Deno runtime running untrusted code, and another process that is trusted (both are running on the same host)? I recognize there are always risks associated with this, and I don't expect to achieve perfect security; I just don't want to take an approach that is absurdly insecure. Besides security, performance and ease of use are concerns; it would be preferable to not have to create my own protocol, for instance.
Deno.listen w/ unix transport on Windows · Issue #18236 · denoland/...
Not sure if this is supposed to work or not, but I'll give it a shot: const listener = Deno.listen({ path: "c:\temp\my.sock", transport: "unix" }); listener.close() error:...
Hey, thank you. That's interesting; so whenever tokio adds support for UnixStream and UnixListener on Windows, this should allow using Unix transport with Deno to achieve what I'm asking for? Am I understanding correctly that this hasn't happened yet, though, given the issues are still open?
Correct. When that's done, you'll be able to use Unix sockets for IPC on Windows and secure it by making use of file permissions so that only allowed processes can access the socket. That's already possible on Linux, but not on Windows If file permissions are not enough for you to secure your IPC, then I think you will have to come up with your own solution on top of that
Hey Leokuma, thank you again. That might be a nice solution when it's available, I'll have to think about it when it is. Hey guest271314, I'll take another look at it, I looked at it before and I think it seemed like there were some issues with it. IIRC, it seemed like I would need to launch a process for every single read or write I wanted to do? Also, would the piped file be an actual file on the disk? Maybe that would work out ok, I'm not sure what ramifications there are with handling things this way.
IIRC, it seemed like I would need to launch a process for every single read or write I wanted to do?
Not necessarily. You can use libdatachannel to create a peer-to-peer connection, and other approaches.
Also, would the piped file be an actual file on the disk?
No. You can do that, too.
Hey, thank you for the further information. Assuming you're referring to https://libdatachannel.org/, I'm not sure I'm following you; that seems to be meant for socket connections, rather than pipes? Is that meant to be an alternative, or am I missing a way to use it without sockets? Your suggestion here is pretty interesting to me, (I'll post questions relqted to it in that thread): https://discord.com/channels/684898665143206084/1140442376062640159/1144145370461503579

Looking for more? Join the community!

Recommended Posts
What is the Deno class?What is Deno in Deno.cwd() ? Can someone link me to documentation? Why doesn't the Deno class need tGetIP + Ctx from middleware to a route not passedHi, I have test to retrieve IP visitor Code taken from Discord is always returning "localhost" (wheerror: No config file found in VS CodeI'm new in Deno and in coding, and need help with the following issue. I have installed Deno throughDeclaration merging for external packagesHi! I'm using unoCSS with Deno Fresh and have been attempting to use the attributify preset (https:Deno.serve AbortController onError. How?When I run my new Deno.serve() updated implementation I get a type error. Perhaps I'm doing it wrongLocalStorage OverrideI'm using a library (@supabase/supabase-js), and I'm compiling my Deno app into an executable, howevBad implementation of X25519?I can't generate a shared secret with the current implementation of X25519 ```ts const alice = awaiResize image/convert on uploadHi there, I want to store images uploaded in webp format at 200x200px. Has anyone done something likI cant import the Zustand module from deno.I leave a photo of what it shows when I put the url to the import map. And try to cache the module.Sub hosting SAAS appWhat technologies are behind the Deno Deploy feature, where you can set up your own domain name? I What should my entry point be on Deno Deploy?Only ever used firebase before. I'm getting a 502 bad gateway error when deploying my website.tsParticles & DenoHi, I’m working on a personal project with Deno & Lume. I’m trying to use tsParticles with preact. Looking for a library to pretty print </br>, <a>, etc tagsAs that title says, I'm looking for a library that can pretty print a string containing the mentioneImporting `puppeteer-cluster` from esm.sh causes `does not provide an export named 'default'` errorWhen importing `https://esm.sh/puppeteer-cluster@0.23.0` I get the following error: ``` error: UncauDeno linting not workingHello everyone, I enabled deno for a subpath in my project (`./supabase`) but unfortunately I'm not deno_pythonI'm trying to use Python with Deno with https://deno.land/x/python@0.2.7 What should I do to enable Deno VS Code plugin too aggressive in auto-completionI'm new to Deno and learning through some tutorials. I'm using VS Code and have the Deno plugin enabhow to exit all async command in deno task?consider this code ```json { "tasks": { "dev-server": "deno run --watch --allow-read --allow-n