Skip to content

GUACAMOLE-1891: Update guacd image to Alpine 3.24 and OpenSSL 3 - #740

Open
WestonThayer wants to merge 2 commits into
apache:patchfrom
WestonThayer:guacamole-1891-alpine-openssl3
Open

WestonThayer wants to merge 2 commits into
apache:patchfrom
WestonThayer:guacamole-1891-alpine-openssl3

Conversation

@WestonThayer

@WestonThayer WestonThayer commented Nov 13, 2026 •

Copy link
Copy Markdown

The guacd image is pinned to end-of-life Alpine 3.18 because newer Alpine releases removed openssl1.1-compat-dev. This updates the image to Alpine 3.24 and OpenSSL 3.

JIRA: https://issues.apache.org/jira/browse/GUACAMOLE-1891

Changes:

  • Alpine 3.24
  • OpenSSL 3
  • Supply CMake's 3.5 minimum policy override for the older FreeRDP 2 and LibVNCServer build scripts, citing LibVNCServer's upstream baseline fix in the Dockerfile
  • Backport FreeRDP's upstream GCC pointer-type fix only when building 2.11.8
  • Install cjson-static, required by the cJSON CMake exports used by FreeRDP 3. Runtime cJSON linkage remains shared
  • Use webkit2gtk-4.1-dev as a replacement for the previous version, which is unavailable in Alpine 3.24

FreeRDP 2 remains the default. Dependency patches are kept in the repository and applied only to the exact selected version.

Validation on linux/amd64:

  • FreeRDP 2.11.8 and 3.33.1: complete images built; all 132 existing Guacamole unit tests passed for each
  • Both images passed nine runtime checks: loading VNC/RDP/SSH/Telnet/Kubernetes plugins, plus authenticated framebuffer delivery and wrong-password rejection for VncAuth and VeNCrypt/TLSVnc against TigerVNC
  • Both images delivered desktop framebuffer data through live RDP connections to xrdp over TLS
  • A client verified the default image's test certificate, negotiated TLS 1.3 with guacd, and received Guacamole protocol data

Validation on ARM64 with the default Docker build (so FreeRDP 2):

  • RDP to Windows Server 2025 (auto selected NLA)
  • Audio redirection works
  • Clipboard works both ways

Not tested:

  • RemoteApp
  • Drive redirection

@WestonThayer
WestonThayer marked this pull request as ready for review November 13, 2026 22:29
@WestonThayer

Copy link
Copy Markdown
Author

I believe #694 tried this, roughly the same approach.

@necouchman

Copy link
Copy Markdown
Contributor

Thanks @WestonThayer - a couple of initial requests on this:

  • Could you re-base against the patch branch?
  • I'm a little on the fence about patching non-Guacamole components. What are the impacts of not applying these patches? Are they required for things to operate properly within the Alpine 3.24/OpenSSL 3 environment, or just a convenient time to apply patches that improve functionality/stability for FreeRDP2 and/or WebKit 4?

@WestonThayer
WestonThayer changed the base branch from main to patch November 14, 2026 18:16
Replace the OpenSSL 1.1 compatibility package with OpenSSL 3 and update the WebKitGTK development package. Set the CMake policy floor needed by older dependency build scripts.

Apply version-scoped compatibility patches for FreeRDP 2.11.8 and the pinned 3.5.1 SDL WebView, and supply the cJSON static archive required by FreeRDP 3 CMake exports.
@WestonThayer
WestonThayer force-pushed the guacamole-1891-alpine-openssl3 branch from 7cac171 to 3a6b050 Compare November 14, 2026 18:32
@WestonThayer

WestonThayer commented Nov 14, 2026 •

Copy link
Copy Markdown
Author

Rebased.

The patches address build failures exposed by the Alpine upgrade.

FreeRDP 2.11.8: Without the patch, Alpine 3.24’s GCC 15 rejects an incompatible pointer assignment in WinPR’s Queue.c, preventing the default Docker build from completing. This is a one-line backport of an upstream FreeRDP fix. Suppressing the compiler diagnostic is another possible workaround, but I usually look to upstream first. If the patch was in a release, I would've bumped FreeRDP to that instead.

FreeRDP 3.5.1’s WebView: webkit2gtk-4.0 isn't available in Alpine 3.24,webkit2gtk-4.1-dev I think is the closest replacement. But FreeRDP 3.5.1 pins 4.0, so the patch changes the pin to “use 4.1 if available, otherwise try 4.0” to get the Docker build working (Both for FreeRDP 2 and 3, even though 2 doesn't need webkit2gtk). I assume FreeRDP will fix it upstream at some point with dep upgrades. FYI FreeRDP 3.33.1 doesn't need this patch, but I'm assuming we wouldn't want to downgrade. Since guacd doesn’t use the standalone SDL client that webkit2gtk is used for, disabling that client is another approach we could investigate.

@WestonThayer

Copy link
Copy Markdown
Author

Woke up this morning a realized FreeRDP 3.5 < 3.33 🤦

Removed that patch, assuming folks are fine using latest FreeRDP 3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants