Top
Best
New

Posted by mariuz 1 day ago

A web-based RDP client built with Go WebAssembly and grdp(github.com)
138 points | 48 comments
rcarmo 3 hours ago|
Neat - I built https://github.com/rcarmo/go-rdp a few months back and use it daily, but it’s nice seeing a different take (I went all out on deep protocol suppose because I’m a network nerd)
notepad0x90 1 day ago||
This is cool. If it adds session recording and SSO auth support, it can be used as an RDP jumphost.

I've used Azure bastion to do just this, you auth to the azure portal using whatever authentication regime is configured for your tenant, then you rdp into virtual machines from your browser using the local vm login. it handles things like files and clipboards great. But it also supports console sessions in the browser.

I haven't used it with windows/rdp (if it even is supported), but in GCP, their in-browser SSH is the best I've seen so far.

Even for Linux, I've found xrdp to be better than alternatives at times.

The main problem I see this solving (one of many) is the decoupling of the management interface for virtual machines and servers from their service interfaces. not having your web server's management services on the same IP/domain/interface as the http server is a big improvement. Lots of security screw-ups happen because of this entanglement.

hdgvhicv 1 day ago|
I use apache guacamole for this with our OIDC proxy for this purpose
notepad0x90 1 day ago||
I've used it before, setting it up wasn't pleasant with the whole java/tomcat thing, and it kept having severe vulnerabilities.
MaKey 1 day ago||
FYI, Azure Bastion is based on Apache Guacamole. You're paying them for not having to manage your own instance.
notepad0x90 1 day ago||
That tracks, that's all Azure is there to do in the end. If it was easy to manage it myself, I'd do it, and I'd still need to pay them for a VM to host it on, along with traffic costs. But bastion isn't cheap, so something to consider for sure.
tombuildsstuff 20 hours ago||
This is neat!

A few months back I ended up building a RDC Server in Golang (i.e. no Windows required!) entirely with Claude, which was a fun experiment.

I ended up fronting that with GitHub Auth (purely for rate limiting purposes, since it's bandwidth intensive), but I've built it in such a way that it surfaces/renders any arbitrary binary on the RDC side. In my case, I ended up just fronting it with a Snake binary, but it's been fun to experiment and push the bounds somewhat.

I should really think about open sourcing it - in my case it was an experiment to see how far I could push Claude that turned out pretty great tbh

solarkraft 1 day ago||
Looks very interesting, but i’m a bit surprised the most important feature isn’t mentioned: How well does clipboard sharing work?
wcrossbow 1 day ago||
Im not a big fan of Windows but copy pasting a file across 3 nested RDP sessions feels magical every time
hypercube33 1 day ago|||
It actually doesn't it feels horrible. you can't paste files from a samba share or large ones take so long to copy that they ultimately fail.
ktpsns 1 day ago||||
To be honest, three nested RDPs sound like a terrible hack. In an ideal world, this would be two port forwardings and one RDP (thinking about ssh, which is still underrepresented in windows world). In an even more ideal world, this would be an IPv6 direct access ;-)
everforward 1 day ago|||
There are legit reasons, at least for two nested sessions. A production network that’s airgapped except for a bastion host that acts as a gateway. It’s better than port forwarding because you have to auth to the bastion host before the RDP chaining, and it often takes separate credentials for the second RDP session.

It’s a semi-common setup for higher security environments, and when you have a network of stuff that has known vulnerabilities you can’t patch for whatever reason. Traffic in and out is super carefully firewalled. It’s not great, but it’s better than a 25 year old MySQL with a direct public IP.

embedding-shape 1 day ago||
> airgapped except for a bastion host that acts as a gateway

First time I've heard of an airgapped system you could access remotely. Doesn't that kind of defeat the label "airgapped"? I think I'd just call that "isolated" at that point instead.

debarshri 1 day ago|||
This concept is related to PAM. You often have to do ops on infra and need some DMZ to do the ops. In regulated industry you have to record every operations done by the person and have to follow principle of least privilege. This what should happen in an ideal world.
embedding-shape 1 day ago||
> You often have to do ops on infra and need some DMZ to do the ops.

This makes sense, "bastion" hosts and similar things is fairly common too. What's not common is calling those "airgapped", because they're clearly not.

hnlmorg 1 day ago|||
I agree. They’re network enclaves. Which isn’t the same thing as an air gapped network.
zcw100 1 day ago||
You can have a network enclave in an air gapped network.
hnlmorg 1 day ago||
Of course you can. But you cannot connect to an air gapped network from outside of it via a bastion.

Which is what we are specifically discussing.

debarshri 1 day ago|||
Airgapped is a different concept altogether.
embedding-shape 21 hours ago||
I'm glad we agree :)
SigmundA 1 day ago||||
Logically air gapped :)

https://docs.aws.amazon.com/aws-backup/latest/devguide/logic...

dijit 1 day ago||
AWS likes to redefine things.

Air gapped means... there is nothing except air in the gap between systems.

A physical tether would defeat it.

Now, I pedant could start talking about wifi, but air-gapping is a concept older than the internet. (It stems from plumbing where there's air that prevents back leakage of contamination).

https://en.wikipedia.org/wiki/Air_gap_(networking)

rzzzt 1 day ago|||
The moat!
orisho 1 day ago|||
It's probably there not as a way to connect networks, but as a way to keep them separate, only allowing RDP between specific computers on different networks.
debarshri 1 day ago|||
I am not sure if you have tried broadcasting feature in terminals, thats magical too.
debarshri 1 day ago|||
We have a custom RDP client [1]. So i have some experience building something like this. We do some an implementation similar to this.

Clipboard sharing, uploading and downloading via shared drive is a freerdp feature that should be readily available.

We also have sessions recording which is non-negotiable in PAM.

[1] https://adaptive.live

d3Xt3r 1 day ago||
And desktop scaling. And multi-monitor support. And file transfers. And drive redirection. And peripheral redirection. And...
rvz 1 day ago||
...A test suite, And security audits, And most importantly benchmarks.

What it does have is a license which it is GPLv3. So if anyone adds all those changes, they have to make the source code available with the same software license.

pixel_popping 1 day ago||
In this era tho, licenses (I don't agree with this, but this is what it is) are a matter of "tokens", I speak for a fact knowing multiple relatively-big companies just gobbling GPLv3 projects and rewriting them entirely, some do publish them as well.
mcoliver 1 day ago||
With hp shutting down anyware / teradici / pcoip there are quite a few people looking for alternatives that support high resolution multi monitor with 60fps high bit depth playback and things like wacom tablet support and all three OS. Parsec and DCV are out there on the spend money side. I'm excited about the open source efforts. Things like rustdesk,kyber, and teraguchi. The community needs an open source high performance option.

https://github.com/rustdesk/rustdesk

https://github.com/thedepartmentofexternalservices/teraguchi

https://kyber.tech/

miniman1337 1 day ago|
FWIW DCV is free on EC2, and anywhere else it has a very minimal nag without a license.
yamapikarya 1 day ago||
is it work for opening rdp file from cyberark pam?
igtztorrero 1 day ago||
Does Alt-Tab inside the Browser Tab can be hooked to the rdp client ???

That was the main problem in guacamole rdp in browser.

jqpabc123 1 day ago||
Interesting from a technical perspective but with native RDP clients readily available on just about every platform, I don't see the need for it.
le-mark 1 day ago||
When it’s in a browser you don’t need to install anything on the local machine. I used to use Apache guacamole to access my machine at home from work when I was stuck in a cube all day.

https://guacamole.apache.org/

stephbook 1 day ago|||
1 contributor, 1 commit, new project... gives me vibe-coding feels.
zcw100 1 day ago||
If you have factual observations to make that's fine but can we stop with the "smells like vibe coding" attacks? It's like an AI version of an ad-hominem attack.
pixel_popping 1 day ago|||
Browsers are sandboxes, your native client often isn't, there is definitely a huge advantage, portability and embeddability as well, it's also simpler to sniff traffic (and MITM it).
jqpabc123 1 day ago||
Doesn't this limit your ability to share resources and transfer data?
pixel_popping 1 day ago||
Why would it? You have access to your entire filesystem via the browser.
boredishBoi 1 day ago|||
Not many good MFA options for native RDP/RDG. Putting it in the browser lets you wrap the whole thing with OAUTH/passkeys etc
hnlmorg 1 day ago||
Having just implemented OAUTH into a Go app this week, I can assure you that it’s surprising easy to do so without making your entire application a website.
boredishBoi 1 day ago||
I don’t disagree but none of the native RDP clients support oauth for non azure computers.
tom_alexander 1 day ago||
Perhaps as a web client for the remote desktop on the BMC chips?
the_data_nerd 1 day ago||
[flagged]
maxloh 1 day ago|
> ...on the read side most browsers prompt the user every single time.

I don't think that is the case. Google Docs, Office 365, and Notion all function without requiring repeated user permissions.

jerrythegerbil 1 day ago|||
I can assure you they’ve correctly described the problem and are correct regarding buffering and user gesture requirements.

The platforms you listed are all primarily text-based and the interaction lives in the DOM with happy paths defined. Still, you will find that clipboard media with a MIME type will prompt you with a Google provided modal to paste a very specific way to get around the permissions model in Google Docs etc…

An RDP interface is not a text box with features on top, the standing expectations for those existing behaviors do not apply. Namely clipboard, and any I/O for that matter. For example, the linked repo uses a protocol bridge (I/O) to support the RDP protocol from a browser, because “the browser speaks protocols” is a true general statement, but absolutely doesn’t apply when you actually need to get something non-trivial done.

At its core, when someone points to the Google Chrome desktop icon and says “that’s the internet” there’s really no point in discussing the nuance in most cases, because anything non-trivial immediately invalidates that understanding of the world and reaching that point organically is far more important than it being explained to them preemptively.

They are correct, because the nuance applies. Welcome to the un-happy path!

socalgal2 1 day ago||||
Google Docs has the same issue. They ask you to install of Google Docs Offline chrome extension to fix it.

https://chromewebstore.google.com/detail/google-docs-offline...

> Note: This extension is also used to make advanced copy & paste functionality available in Google Docs, Sheets and Slides.

hawk_ 1 day ago|||
There's something about keyboard shortcuts - they work. But somehow right-click and copy requires add-ons.
sebakubisz 1 day ago|
[dead]
More comments...