Repository navigation
Funky Fox is a security-hardening release. Several defaults are now stricter, so a 2.x configuration may need changes before 3.0 starts. Read UPGRADING.md before you upgrade.
Breaking changes
- Placeholder secrets are refused. rdpgw does not start when a session or token key is one of the example values from the README or the dev compose files. (#191)
- Header authentication requires
Header.TrustedProxies. Without it rdpgw does not start, and requests from outside those CIDRs get401. (#184) X-Forwarded-Foris ignored by default. It is only used when the request comes from aServer.TrustedProxiesCIDR. (#189)hostselection: anyrefuses private destinations and ports other than 3389. Opt back in withServer.AllowPrivateDestinationsandServer.AllowedDestinationPorts. (#188)- The
rdpgw-authsocket only accepts its own UID. Use--allow-uidor--allow-gidwhen rdpgw runs as another user. (#190) - RDP files downloaded before the upgrade stop working. The gateway access token has a new format. (#187)
- OIDC logins without a username claim are rejected instead of continuing with an empty username. (#197)
- The container image runs as UID 1001 and no longer contains a TLS key. Mount your own certificate, or the entrypoint generates a self-signed one at first start. (#191)
- Building from source requires Go 1.26. (#212)
Security
- Cached tunnels can only be reused by the session that opened them. (#185)
- Control characters are removed from strings written to RDP files, so a username cannot add RDP settings. (#183)
- The connection to the RDP host is closed when the channel ends. Before, each connection left a host connection open. (#214)
- Malformed packets, concurrent connection tracking and short
Authorizationheaders no longer crash the gateway. (#186) - The gateway access token is smaller, does not contain the IdP access token, and is bound to its own audience. (#187)
New
- Web interface for choosing a server and downloading its RDP file, with customizable templates (
cmd/rdpgw/templates). OpenId.UsernameClaimselects the ID token claim for the username. Set it toemailfor Google; the email must be verified. (#197)Client.RdpOverridableKeyslets/connectaccept selected RDP settings from the URL, such as?usemultimon=1. (#182)Server.BindAddresssets the address to listen on. (#196)- When a WebSocket upgrade fails,
RDG_OUTfalls back to the legacy transport. This helps some Android clients and reverse proxies. (#172)
Fixes
rdpgw --helpexits cleanly instead of panicking, and invalid flags exit with code 1.- The web interface redirects to login when the session has expired.
Build and packaging
- Container images build with Go 1.27, and from the commit being released. (#212)
go.sumis committed, and CI fails whengo.modorgo.sumis out of date.- Dependency updates, including
golang.org/x/crypto,golang.org/x/net,google.golang.org/grpc,go-joseandgorilla/websocket.
Contributors
Thanks to @Darkar25, @SoundGoof, @vampywiz17, @gorynychzmey and @Fldicoahkiin.
Full changelog: v2.2.0...v3.0.0