Skip to content

Funky Fox

Latest

Choose a tag to compare

@bolkedebruin bolkedebruin released this 06 Nov 14:08

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 get 401. (#184)
  • X-Forwarded-For is ignored by default. It is only used when the request comes from a Server.TrustedProxies CIDR. (#189)
  • hostselection: any refuses private destinations and ports other than 3389. Opt back in with Server.AllowPrivateDestinations and Server.AllowedDestinationPorts. (#188)
  • The rdpgw-auth socket only accepts its own UID. Use --allow-uid or --allow-gid when 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 Authorization headers 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.UsernameClaim selects the ID token claim for the username. Set it to email for Google; the email must be verified. (#197)
  • Client.RdpOverridableKeys lets /connect accept selected RDP settings from the URL, such as ?usemultimon=1. (#182)
  • Server.BindAddress sets the address to listen on. (#196)
  • When a WebSocket upgrade fails, RDG_OUT falls back to the legacy transport. This helps some Android clients and reverse proxies. (#172)

Fixes

  • rdpgw --help exits 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.sum is committed, and CI fails when go.mod or go.sum is out of date.
  • Dependency updates, including golang.org/x/crypto, golang.org/x/net, google.golang.org/grpc, go-jose and gorilla/websocket.

Contributors

Thanks to @Darkar25, @SoundGoof, @vampywiz17, @gorynychzmey and @Fldicoahkiin.

Full changelog: v2.2.0...v3.0.0