You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@guacamole.apache.org by Praveen Tk <pr...@gmail.com> on 2023/07/25 13:53:51 UTC
Unable to access Guacamole when OIDC behind Reverse Proxy
Hi Team,
*Issue:*
Unable to access Guacamole when OIDC behind Reverse Proxy
Below is my configuration details,
guacamole version = 1.5.1
OIDC = Keycloak
Before bringing up we have set environment variables of reverse proxy in
the setup.
export http_proxy="http://[IPV6_ADDRESS]:<port>"
export https_proxy="http://[ IPV6_ADDRESS ]:<port>"
we are able to resolve the OIDC address via proxy, but while accessing the
web application below errors are seen,
08:41:27.745 [https-openssl-nio-8443-exec-1] INFO
o.a.g.a.o.t.TokenValidationService - Rejected invalid OpenID token: JWT
processing failed. Additional details: [[17] Unable to process JOSE object
(cause: org.jose4j.lang.UnresolvableKeyException: Unable to find a suitable
verification key for JWS w/ header {"alg":"RS256","typ" : "JWT","kid" :
"b_miyK9tDisD"} due to an unexpected exception
(*java.net.UnknownHostException:
<FQDN>*) while obtaining or using keys from JWKS endpoint at
Please let us know how to set JAVA or ENV parameters to resolve this issue.
Thanks and Regards,
Praveen T.K
Cell : +91-8971762539
*Nothing Changes, if nothing changes.*
Re: Unable to access Guacamole when OIDC behind Reverse Proxy
Posted by Nick Couchman <vn...@apache.org>.
On Thu, Aug 3, 2023 at 2:05 AM Praveen Tk <pr...@gmail.com> wrote:
>
> Hi Nick,
>
> Thanks for sharing the above details.
>
> After setting proxy parameters in tomcat configuration, OIDC issue is resolved.
> JAVA_OPTS="$JAVA_OPTS -Dhttps.proxyHost=<XXX> -Dhttps.proxyPort=<port>"
> JAVA_OPTS="$JAVA_OPTS -Dhttps.nonProxyHosts='localhost|127.0.0.1|<guacamole domain>|guacamole|guacd|mysql'"
>
> But now it looks like guacamole is also running behind reverse proxy as tomcat parameters are set globally due to which, we are seeing delays in guacamole operations.
>
> Any suggestions to ignore proxy parameters for guacamole.
I don't think these parameters would make Guacamole run behind a
reverse proxy, nor should they cause delays in Guacamole. A reverse
proxy would only be enabled if you specifically set up some system
(Nginx, Apache httpd, etc.) in front of Tomcat that users connect to
instead of directly to Tomcat. Just setting Tomcat proxyHost and
proxyPort parameters would not result in Tomcat or Guacamole suddenly
appearing behind a reverse proxy.
>
> Error prints:
> 13:47:47.961 [https-openssl-nio-8443-exec-10] INFO o.a.g.tunnel.TunnelRequestService - User "User1" connected to connection "1".
> 13:47:47.963 [https-openssl-nio-8443-exec-10] INFO o.a.g.t.h.RestrictedGuacamoleHTTPTunnelServlet - Using HTTP tunnel (not WebSocket). Performance may be sub-optimal.
> 13:48:07.901 [https-openssl-nio-8443-exec-8] INFO o.a.g.tunnel.TunnelRequestService - User "User 1" disconnected from connection "1". Duration: 19938 milliseconds
This is due to either firewall or reverse proxy configuration that
would block websockets. You need to make sure that Websocket
connections are allowed and properly passed through.
-Nick
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@guacamole.apache.org
For additional commands, e-mail: user-help@guacamole.apache.org
Re: Unable to access Guacamole when OIDC behind Reverse Proxy
Posted by Praveen Tk <pr...@gmail.com>.
Hi Nick,
Thanks for sharing the above details.
After setting proxy parameters in tomcat configuration, OIDC issue is
resolved.
JAVA_OPTS="$JAVA_OPTS -Dhttps.proxyHost=<XXX> -Dhttps.proxyPort=<port>"
JAVA_OPTS="$JAVA_OPTS -Dhttps.nonProxyHosts='localhost|127.0.0.1|<guacamole
domain>|guacamole|guacd|mysql'"
But now it looks like guacamole is also running behind reverse proxy as
tomcat parameters are set globally due to which, *we are seeing delays in
guacamole operations*.
Any suggestions to ignore proxy parameters for guacamole.
*Error prints:*
13:47:47.961 [https-openssl-nio-8443-exec-10] INFO
o.a.g.tunnel.TunnelRequestService - User "User1" connected to connection
"1".
13:47:47.963 [https-openssl-nio-8443-exec-10] INFO
*o.a.g.t.h.RestrictedGuacamoleHTTPTunnelServlet
- Using HTTP tunnel (not WebSocket). Performance may be sub-optimal.*
13:48:07.901 [https-openssl-nio-8443-exec-8] INFO
o.a.g.tunnel.TunnelRequestService - User "User 1" disconnected from
connection "1". Duration: 19938 milliseconds
Thanks and Regards,
Praveen T.K
Cell : +91-8971762539
*Nothing Changes, if nothing changes.*
On Wed, Jul 26, 2023 at 12:34 AM Nick Couchman <vn...@apache.org> wrote:
> On Tue, Jul 25, 2023 at 9:54 AM Praveen Tk <pr...@gmail.com> wrote:
> >
> > Hi Team,
> >
> > Issue:
> > Unable to access Guacamole when OIDC behind Reverse Proxy
> > Below is my configuration details,
> > guacamole version = 1.5.1
> > OIDC = Keycloak
> >
> > Before bringing up we have set environment variables of reverse proxy in
> the setup.
> > export http_proxy="http://[IPV6_ADDRESS]:<port>"
> > export https_proxy="http://[ IPV6_ADDRESS ]:<port>"
> >
> > we are able to resolve the OIDC address via proxy, but while accessing
> the web application below errors are seen,
> > 08:41:27.745 [https-openssl-nio-8443-exec-1] INFO
> o.a.g.a.o.t.TokenValidationService - Rejected invalid OpenID token: JWT
> processing failed. Additional details: [[17] Unable to process JOSE object
> (cause: org.jose4j.lang.UnresolvableKeyException: Unable to find a suitable
> verification key for JWS w/ header {"alg":"RS256","typ" : "JWT","kid" :
> "b_miyK9tDisD"} due to an unexpected exception (java.net.UnknownHostException:
> <FQDN>) while obtaining or using keys from JWKS endpoint at
>
> You might check out this page:
>
>
> https://help.talend.com/r/en-US/8.0/installation-guide-linux/configuring-tomcat-to-use-proxy-server
>
> Looks like you need to set some options in the Tomcat startup files,
> particularly the setenv.sh file.
>
> -Nick
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@guacamole.apache.org
> For additional commands, e-mail: user-help@guacamole.apache.org
>
>
Re: Unable to access Guacamole when OIDC behind Reverse Proxy
Posted by Nick Couchman <vn...@apache.org>.
On Tue, Jul 25, 2023 at 9:54 AM Praveen Tk <pr...@gmail.com> wrote:
>
> Hi Team,
>
> Issue:
> Unable to access Guacamole when OIDC behind Reverse Proxy
> Below is my configuration details,
> guacamole version = 1.5.1
> OIDC = Keycloak
>
> Before bringing up we have set environment variables of reverse proxy in the setup.
> export http_proxy="http://[IPV6_ADDRESS]:<port>"
> export https_proxy="http://[ IPV6_ADDRESS ]:<port>"
>
> we are able to resolve the OIDC address via proxy, but while accessing the web application below errors are seen,
> 08:41:27.745 [https-openssl-nio-8443-exec-1] INFO o.a.g.a.o.t.TokenValidationService - Rejected invalid OpenID token: JWT processing failed. Additional details: [[17] Unable to process JOSE object (cause: org.jose4j.lang.UnresolvableKeyException: Unable to find a suitable verification key for JWS w/ header {"alg":"RS256","typ" : "JWT","kid" : "b_miyK9tDisD"} due to an unexpected exception (java.net.UnknownHostException: <FQDN>) while obtaining or using keys from JWKS endpoint at
You might check out this page:
https://help.talend.com/r/en-US/8.0/installation-guide-linux/configuring-tomcat-to-use-proxy-server
Looks like you need to set some options in the Tomcat startup files,
particularly the setenv.sh file.
-Nick
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@guacamole.apache.org
For additional commands, e-mail: user-help@guacamole.apache.org