You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@guacamole.apache.org by Mike Sollanych <ms...@dwavesys.com> on 2019/08/19 23:13:56 UTC
OpenID and NoAuth / user-mapping.xml ?
Apologies if this was posted twice, didn't confirm email properly.
I'm trying to set up a highly dynamic Guacamole setup, using OpenID for
authentication (against IDAptive; this part works well). The actual
Guacamole connections need to be sourced from Consul service discovery; my
plan had been to use Consul Template to do this and spit out a file like the
user-mapping.xml, but it looks like there's no way to use the two of these
in concert.
The NoAuth extension that appears to have been deprecated looks like it
might have handled this for me. QuickConnect works fine but most of the
point of Guacamole was to provide my technical end-users a nice list of
running VNC sessions inside our environment in a secure fashion with 2FA and
so forth.
Is there any option for using OpenID without having a database backend to
list connection information?
If I have to maintain a database, that means a lot more work to get this
working (i.e. i'd have to write something that could blow away the Guacamole
database and repopulate it from whatever we source from Consul). A static
configuration maintained using tools outside of the app itself lends itself
far more to my process.
Should I just downgrade to the pre-1.0 release and use noauth? This seems to
give me no upgrade path, and I'm not sure if the openid extension actually
works alongside that anyhow.
Or, should I start working on an SQL syncing mechanism?
Re: OpenID and NoAuth / user-mapping.xml ?
Posted by Nick Couchman <vn...@apache.org>.
On Tue, Aug 27, 2019 at 12:54 PM Mike Sollanych <ms...@dwavesys.com>
wrote:
> >For what it's worth, I did a quick implementation of an authentication
> extension that talks to the Consul.IO HTTP API to get service information.
> Code repository is here:
>
> > https://github.com/necouchman/guacamole-auto-consulio
> <https://github.com/necouchman/guacamole-auto-consulio>
>
>
> Fantastic effort, Nick, this is incredibly appreciated. I will try it out
> within a day or so and give you some feedback.
>
> Particularly excellent is this:
>
> > The protocol must be specified in the ServiceMeta node as "protocol",
> and any additional connection parameters can be specified in the
> ServiceMeta node and will be added to the Guacamole connection.
>
> This will help make sure it's very configurable and seems idiomatic to the
> way people will use Consul, so great call there.
>
> The only thing that will be problematic here will be the actual
> authentication of a VNC session as we use passwords on those, which is
> something I'd probably not bake into Consul tags as it's far too easy to
> run Consul in a far-too-open sort of state. Any idea if we can simply have
> Guacamole prompt for a VNC password on connect? That's good enough for me
> for now, considering it's going to be a shared password anyhow.
>
>
Unfortunately, today, no, prompting is not implemented. It's in the works:
https://issues.apache.org/jira/browse/GUACAMOLE-221
Also, this version of the extension against the 1.0.0 code probably won't
work with connection parameters (e.g. ${GUAC_USERNAME} and
${GUAC_PASSWORD}), either, but I think once we get to 1.1.0 and beyond
it'll be able to handle those, as well.
-Nick
>
Re: OpenID and NoAuth / user-mapping.xml ?
Posted by Mike Sollanych <ms...@dwavesys.com>.
>For what it's worth, I did a quick implementation of an authentication extension that talks to the Consul.IO HTTP API to get service information. Code repository is here:
> https://github.com/necouchman/guacamole-auto-consulio<https://github.com/necouchman/guacamole-auto-consulio>
Fantastic effort, Nick, this is incredibly appreciated. I will try it out within a day or so and give you some feedback.
Particularly excellent is this:
> The protocol must be specified in the ServiceMeta node as "protocol", and any additional connection parameters can be specified in the ServiceMeta node and will be added to the Guacamole connection.
This will help make sure it's very configurable and seems idiomatic to the way people will use Consul, so great call there.
The only thing that will be problematic here will be the actual authentication of a VNC session as we use passwords on those, which is something I'd probably not bake into Consul tags as it's far too easy to run Consul in a far-too-open sort of state. Any idea if we can simply have Guacamole prompt for a VNC password on connect? That's good enough for me for now, considering it's going to be a shared password anyhow.
-Mike
________________________________
From: Nick Couchman <vn...@apache.org>
Sent: Saturday, August 24, 2019 12:20 PM
To: user@guacamole.apache.org <us...@guacamole.apache.org>
Subject: Re: OpenID and NoAuth / user-mapping.xml ?
On Tue, Aug 20, 2019 at 12:26 PM Nick Couchman <vn...@apache.org>> wrote:
On Tue, Aug 20, 2019 at 12:20 PM Mike Sollanych <ms...@dwavesys.com>> wrote:
Thanks for your response, Nick.
> However, I wonder does the Consul service discovery have any sort of API that could be leveraged to dynamically pull connection information?
Yes, it's intended for exactly this kind of thing. https://www.consul.io/api/index.html is the tip of the iceberg. Most likely it would make sense for the user to create a Prepared Query https://www.consul.io/api/query.html and then provide the ID of that to Guacamole or whatever piece of middleware in order to have it run the query and get back the right set of services. This should provide good abstraction and save the middleware from having to implement a lot of logic.
Yeah, I started poking at it a bit last night - I had never heard of Consul before, but it looks really cool, and the API looks reasonably easy to use.
For what it's worth, I did a quick implementation of an authentication extension that talks to the Consul.IO HTTP API to get service information. Code repository is here:
https://github.com/necouchman/guacamole-auto-consulio
It's currently written against the 1.0.0 code, and is pretty basic - just pulls in any service found in Consul.IO that is tagged with "guacamole" and lists it out on the home page. Does not attempt any permission checks or anything like that, and doesn't even support TLS/SSL connection to the Consul.IO service at this point. Definitely could be improved upon to leverage some of the additional features of Consul.IO, but it works (for me :-).
-Nick
Re: OpenID and NoAuth / user-mapping.xml ?
Posted by Nick Couchman <vn...@apache.org>.
On Tue, Aug 20, 2019 at 12:26 PM Nick Couchman <vn...@apache.org> wrote:
> On Tue, Aug 20, 2019 at 12:20 PM Mike Sollanych <ms...@dwavesys.com>
> wrote:
>
>> Thanks for your response, Nick.
>>
>> > However, I wonder does the Consul service discovery have any sort of
>> API that could be leveraged to dynamically pull connection information?
>>
>> Yes, it's intended for exactly this kind of thing.
>> https://www.consul.io/api/index.html is the tip of the iceberg. Most
>> likely it would make sense for the user to create a Prepared Query
>> https://www.consul.io/api/query.html and then provide the ID of that to
>> Guacamole or whatever piece of middleware in order to have it run the query
>> and get back the right set of services. This should provide good
>> abstraction and save the middleware from having to implement a lot of logic.
>>
>>
> Yeah, I started poking at it a bit last night - I had never heard of
> Consul before, but it looks really cool, and the API looks reasonably easy
> to use.
>
>
For what it's worth, I did a quick implementation of an authentication
extension that talks to the Consul.IO HTTP API to get service information.
Code repository is here:
https://github.com/necouchman/guacamole-auto-consulio
It's currently written against the 1.0.0 code, and is pretty basic - just
pulls in any service found in Consul.IO that is tagged with "guacamole" and
lists it out on the home page. Does not attempt any permission checks or
anything like that, and doesn't even support TLS/SSL connection to the
Consul.IO service at this point. Definitely could be improved upon to
leverage some of the additional features of Consul.IO, but it works (for me
:-).
-Nick
>
RE: OpenID and NoAuth / user-mapping.xml ?
Posted by Ryan Underwood <ry...@greymarketlabs.com>.
Yes, I think that's the intent of the authentication provider/extension-ing mechanism. I'm spit-balling here but I think if the username matches up, it won't matter where the information comes from; all the information related to that user will be accessible. I have tried it with openid + jdbc (and the connections from jdbc are available) and json + jdbc (similar) and they work together just fine. The openid extension out of the box precludes logging out (the logout link takes you to the main sign in screen that auto signs you back in). The json extension logs you out of an existing session if you try to open a new session alongside the current one (2 separate connections at the same time by the same user via separate tabs) because it kills the auth token of the first session when it creates the next one. I peeked around a bit but didn't see an obvious way around it without getting into the JS app itself. [I should probably tee up a separate question for that, but maybe the dev forum is the right place, but I bet there are a few on here who have ideas there.]
-Ryan
-----Original Message-----
From: Mike Sollanych <ms...@dwavesys.com>
Sent: Thursday, August 22, 2019 1:48 PM
To: user@guacamole.apache.org
Subject: Re: OpenID and NoAuth / user-mapping.xml ?
Do you know if it is possible to layer this with OpenID so that I don’t have to provide passwords or usernames and just supply connection information here that works for anyone who gets past the OpenID challenge?
> On Aug 21, 2019, at 6:55 PM, Ryan Underwood <ry...@greymarketlabs.com> wrote:
>
> auth-json lives here last I saw:
> https://github.com/glyptodon/guacamole-auth-json
> It works just fine.
> -Ryan
>
> -----Original Message-----
> From: Nick Couchman <vn...@apache.org>
> Sent: Tuesday, August 20, 2019 12:27 PM
> To: user@guacamole.apache.org
> Subject: Re: OpenID and NoAuth / user-mapping.xml ?
>
> On Tue, Aug 20, 2019 at 12:20 PM Mike Sollanych <msollanych@dwavesys.com <ma...@dwavesys.com> > wrote:
>
>
> Thanks for your response, Nick.
>
> > However, I wonder does the Consul service discovery have any sort of API that could be leveraged to dynamically pull connection information?
>
>
> Yes, it's intended for exactly this kind of thing. https://www.consul.io/api/index.html <https://www.consul.io/api/index.html> is the tip of the iceberg. Most likely it would make sense for the user to create a Prepared Query https://www.consul.io/api/query.html and then provide the ID of that to Guacamole or whatever piece of middleware in order to have it run the query and get back the right set of services. This should provide good abstraction and save the middleware from having to implement a lot of logic.
>
>
>
> Yeah, I started poking at it a bit last night - I had never heard of Consul before, but it looks really cool, and the API looks reasonably easy to use.
>
> In your implementation, would you be trying to leverage any sort of access control as provided by Consul, or do you just want any user who logs in with OpenID to see any of the services available from Consul?
>
>
> > Sounds like Consul can spit out formatted output - XML, maybe JSON. An extension could be written to leverage this - I'd lean toward JSON output, myself, but probably doesn't matter that much.
>
>
> This is often done via another complementary product, Consul Template - https://github.com/hashicorp/consul-template <https://github.com/hashicorp/consul-template> - which can read data from Consul and render it out using the Go Template syntax into literally any kind of format. JSON is supported with a built in serializer, so the template would be very succinct. We can source data from service registrations, which have tags that would make it easy to pass data along. Passwords for VNC etc. can be sourced from Hashicorp Vault for the security-conscious or via some other mechanism if that's overkill for the environment in question.
>
>
> > it it actually shouldn't be too bad to write scripts in one of several languages, or even some SQL procedures in your DB of choice that would ease this.
>
>
> I've thought about doing this and am confident it could be done - automation to pre-seed the database when I am reconstructing the entire environment from scratch is pretty straightforward with your SQL script generator, and then it's just a matter of using Consul-Template to spit out a database script that truncates a table and repopulates it. It just seems a little bit hackish / non-idiomatic and I don't want to build something here that I'm going to have to do a lot of maintenance on later.
>
>
>
>
> Oh, yes, I agree it is hackish, particularly since Consul provides an API.
>
>
> If there is in fact some JSON-based extension around that I could try for this, I would appreciate a link to it!
>
>
> Mike will have to provide this - he's referenced it, but I'm not entirely sure where it lives at the moment, what it's working state is, or even how to use it.
>
> -Nick
>
>
> B�KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKCB��[��X��ܚX�KK[XZ[
�\�\�][��X��ܚX�P�XX�[[�K�\X�K�ܙ�B��܈Y][ۘ[��[X[��K[XZ[
�\�\�Z[�XX�[[�K�\X�K�ܙ�B
B�KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKCB��[��X��ܚX�KK[XZ[
�\�\�][��X��ܚX�P�XX�[[�K�\X�K�ܙ�B��܈Y][ۘ[��[X[��K[XZ[
�\�\�Z[�XX�[[�K�\X�K�ܙ�B
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@guacamole.apache.org
For additional commands, e-mail: user-help@guacamole.apache.org
Re: OpenID and NoAuth / user-mapping.xml ?
Posted by Mike Sollanych <ms...@dwavesys.com>.
Do you know if it is possible to layer this with OpenID so that I don’t have to provide passwords or usernames and just supply connection information here that works for anyone who gets past the OpenID challenge?
> On Aug 21, 2019, at 6:55 PM, Ryan Underwood <ry...@greymarketlabs.com> wrote:
>
> auth-json lives here last I saw:
> https://github.com/glyptodon/guacamole-auth-json
> It works just fine.
> -Ryan
>
> -----Original Message-----
> From: Nick Couchman <vn...@apache.org>
> Sent: Tuesday, August 20, 2019 12:27 PM
> To: user@guacamole.apache.org
> Subject: Re: OpenID and NoAuth / user-mapping.xml ?
>
> On Tue, Aug 20, 2019 at 12:20 PM Mike Sollanych <msollanych@dwavesys.com <ma...@dwavesys.com> > wrote:
>
>
> Thanks for your response, Nick.
>
> > However, I wonder does the Consul service discovery have any sort of API that could be leveraged to dynamically pull connection information?
>
>
> Yes, it's intended for exactly this kind of thing. https://www.consul.io/api/index.html <https://www.consul.io/api/index.html> is the tip of the iceberg. Most likely it would make sense for the user to create a Prepared Query https://www.consul.io/api/query.html and then provide the ID of that to Guacamole or whatever piece of middleware in order to have it run the query and get back the right set of services. This should provide good abstraction and save the middleware from having to implement a lot of logic.
>
>
>
> Yeah, I started poking at it a bit last night - I had never heard of Consul before, but it looks really cool, and the API looks reasonably easy to use.
>
> In your implementation, would you be trying to leverage any sort of access control as provided by Consul, or do you just want any user who logs in with OpenID to see any of the services available from Consul?
>
>
> > Sounds like Consul can spit out formatted output - XML, maybe JSON. An extension could be written to leverage this - I'd lean toward JSON output, myself, but probably doesn't matter that much.
>
>
> This is often done via another complementary product, Consul Template - https://github.com/hashicorp/consul-template <https://github.com/hashicorp/consul-template> - which can read data from Consul and render it out using the Go Template syntax into literally any kind of format. JSON is supported with a built in serializer, so the template would be very succinct. We can source data from service registrations, which have tags that would make it easy to pass data along. Passwords for VNC etc. can be sourced from Hashicorp Vault for the security-conscious or via some other mechanism if that's overkill for the environment in question.
>
>
> > it it actually shouldn't be too bad to write scripts in one of several languages, or even some SQL procedures in your DB of choice that would ease this.
>
>
> I've thought about doing this and am confident it could be done - automation to pre-seed the database when I am reconstructing the entire environment from scratch is pretty straightforward with your SQL script generator, and then it's just a matter of using Consul-Template to spit out a database script that truncates a table and repopulates it. It just seems a little bit hackish / non-idiomatic and I don't want to build something here that I'm going to have to do a lot of maintenance on later.
>
>
>
>
> Oh, yes, I agree it is hackish, particularly since Consul provides an API.
>
>
> If there is in fact some JSON-based extension around that I could try for this, I would appreciate a link to it!
>
>
> Mike will have to provide this - he's referenced it, but I'm not entirely sure where it lives at the moment, what it's working state is, or even how to use it.
>
> -Nick
>
>
> B�KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKCB��[��X��ܚX�KK[XZ[�\�\�][��X��ܚX�P�XX�[[�K�\X�K�ܙ�B��܈Y][ۘ[��[X[��K[XZ[�\�\�Z[�XX�[[�K�\X�K�ܙ�B
RE: OpenID and NoAuth / user-mapping.xml ?
Posted by Ryan Underwood <ry...@greymarketlabs.com>.
auth-json lives here last I saw:
https://github.com/glyptodon/guacamole-auth-json
It works just fine.
-Ryan
-----Original Message-----
From: Nick Couchman <vn...@apache.org>
Sent: Tuesday, August 20, 2019 12:27 PM
To: user@guacamole.apache.org
Subject: Re: OpenID and NoAuth / user-mapping.xml ?
On Tue, Aug 20, 2019 at 12:20 PM Mike Sollanych <msollanych@dwavesys.com <ma...@dwavesys.com> > wrote:
Thanks for your response, Nick.
> However, I wonder does the Consul service discovery have any sort of API that could be leveraged to dynamically pull connection information?
Yes, it's intended for exactly this kind of thing. https://www.consul.io/api/index.html <https://www.consul.io/api/index.html> is the tip of the iceberg. Most likely it would make sense for the user to create a Prepared Query https://www.consul.io/api/query.html and then provide the ID of that to Guacamole or whatever piece of middleware in order to have it run the query and get back the right set of services. This should provide good abstraction and save the middleware from having to implement a lot of logic.
Yeah, I started poking at it a bit last night - I had never heard of Consul before, but it looks really cool, and the API looks reasonably easy to use.
In your implementation, would you be trying to leverage any sort of access control as provided by Consul, or do you just want any user who logs in with OpenID to see any of the services available from Consul?
> Sounds like Consul can spit out formatted output - XML, maybe JSON. An extension could be written to leverage this - I'd lean toward JSON output, myself, but probably doesn't matter that much.
This is often done via another complementary product, Consul Template - https://github.com/hashicorp/consul-template <https://github.com/hashicorp/consul-template> - which can read data from Consul and render it out using the Go Template syntax into literally any kind of format. JSON is supported with a built in serializer, so the template would be very succinct. We can source data from service registrations, which have tags that would make it easy to pass data along. Passwords for VNC etc. can be sourced from Hashicorp Vault for the security-conscious or via some other mechanism if that's overkill for the environment in question.
> it it actually shouldn't be too bad to write scripts in one of several languages, or even some SQL procedures in your DB of choice that would ease this.
I've thought about doing this and am confident it could be done - automation to pre-seed the database when I am reconstructing the entire environment from scratch is pretty straightforward with your SQL script generator, and then it's just a matter of using Consul-Template to spit out a database script that truncates a table and repopulates it. It just seems a little bit hackish / non-idiomatic and I don't want to build something here that I'm going to have to do a lot of maintenance on later.
Oh, yes, I agree it is hackish, particularly since Consul provides an API.
If there is in fact some JSON-based extension around that I could try for this, I would appreciate a link to it!
Mike will have to provide this - he's referenced it, but I'm not entirely sure where it lives at the moment, what it's working state is, or even how to use it.
-Nick
Re: OpenID and NoAuth / user-mapping.xml ?
Posted by Nick Couchman <vn...@apache.org>.
On Tue, Aug 20, 2019 at 12:20 PM Mike Sollanych <ms...@dwavesys.com>
wrote:
> Thanks for your response, Nick.
>
> > However, I wonder does the Consul service discovery have any sort of API
> that could be leveraged to dynamically pull connection information?
>
> Yes, it's intended for exactly this kind of thing.
> https://www.consul.io/api/index.html is the tip of the iceberg. Most
> likely it would make sense for the user to create a Prepared Query
> https://www.consul.io/api/query.html and then provide the ID of that to
> Guacamole or whatever piece of middleware in order to have it run the query
> and get back the right set of services. This should provide good
> abstraction and save the middleware from having to implement a lot of logic.
>
>
Yeah, I started poking at it a bit last night - I had never heard of Consul
before, but it looks really cool, and the API looks reasonably easy to use.
In your implementation, would you be trying to leverage any sort of access
control as provided by Consul, or do you just want any user who logs in
with OpenID to see any of the services available from Consul?
> > Sounds like Consul can spit out formatted output - XML, maybe JSON. An
> extension could be written to leverage this - I'd lean toward JSON output,
> myself, but probably doesn't matter that much.
>
> This is often done via another complementary product, Consul Template -
> https://github.com/hashicorp/consul-template - which can read data from
> Consul and render it out using the Go Template syntax into literally any
> kind of format. JSON is supported with a built in serializer, so the
> template would be very succinct. We can source data from service
> registrations, which have tags that would make it easy to pass data along.
> Passwords for VNC etc. can be sourced from Hashicorp Vault for the
> security-conscious or via some other mechanism if that's overkill for the
> environment in question.
>
> > it it actually shouldn't be too bad to write scripts in one of several
> languages, or even some SQL procedures in your DB of choice that would ease
> this.
>
> I've thought about doing this and am confident it could be done -
> automation to pre-seed the database when I am reconstructing the entire
> environment from scratch is pretty straightforward with your SQL script
> generator, and then it's just a matter of using Consul-Template to spit out
> a database script that truncates a table and repopulates it. It just seems
> a little bit hackish / non-idiomatic and I don't want to build something
> here that I'm going to have to do a lot of maintenance on later.
>
>
Oh, yes, I agree it is hackish, particularly since Consul provides an API.
> If there is in fact some JSON-based extension around that I could try for
> this, I would appreciate a link to it!
>
Mike will have to provide this - he's referenced it, but I'm not entirely
sure where it lives at the moment, what it's working state is, or even how
to use it.
-Nick
>
Re: OpenID and NoAuth / user-mapping.xml ?
Posted by Mike Sollanych <ms...@dwavesys.com>.
Thanks for your response, Nick.
> However, I wonder does the Consul service discovery have any sort of API that could be leveraged to dynamically pull connection information?
Yes, it's intended for exactly this kind of thing. https://www.consul.io/api/index.html is the tip of the iceberg. Most likely it would make sense for the user to create a Prepared Query https://www.consul.io/api/query.html and then provide the ID of that to Guacamole or whatever piece of middleware in order to have it run the query and get back the right set of services. This should provide good abstraction and save the middleware from having to implement a lot of logic.
> Sounds like Consul can spit out formatted output - XML, maybe JSON. An extension could be written to leverage this - I'd lean toward JSON output, myself, but probably doesn't matter that much.
This is often done via another complementary product, Consul Template - https://github.com/hashicorp/consul-template - which can read data from Consul and render it out using the Go Template syntax into literally any kind of format. JSON is supported with a built in serializer, so the template would be very succinct. We can source data from service registrations, which have tags that would make it easy to pass data along. Passwords for VNC etc. can be sourced from Hashicorp Vault for the security-conscious or via some other mechanism if that's overkill for the environment in question.
> it it actually shouldn't be too bad to write scripts in one of several languages, or even some SQL procedures in your DB of choice that would ease this.
I've thought about doing this and am confident it could be done - automation to pre-seed the database when I am reconstructing the entire environment from scratch is pretty straightforward with your SQL script generator, and then it's just a matter of using Consul-Template to spit out a database script that truncates a table and repopulates it. It just seems a little bit hackish / non-idiomatic and I don't want to build something here that I'm going to have to do a lot of maintenance on later.
If there is in fact some JSON-based extension around that I could try for this, I would appreciate a link to it!
Mike Sollanych
________________________________
From: Nick Couchman <vn...@apache.org>
Sent: Monday, August 19, 2019 5:35 PM
To: user@guacamole.apache.org <us...@guacamole.apache.org>
Subject: Re: OpenID and NoAuth / user-mapping.xml ?
On Mon, Aug 19, 2019 at 7:14 PM Mike Sollanych <ms...@dwavesys.com>> wrote:
Apologies if this was posted twice, didn't confirm email properly.
I only see it once :-).
I'm trying to set up a highly dynamic Guacamole setup, using OpenID for
authentication (against IDAptive; this part works well). The actual
Guacamole connections need to be sourced from Consul service discovery; my
plan had been to use Consul Template to do this and spit out a file like the
user-mapping.xml, but it looks like there's no way to use the two of these
in concert.
Unfortunately the built-in user-mapping.xml doesn't really "stack" with the other modules the same way, so you likely won't have much success getting this to work. However, I wonder does the Consul service discovery have any sort of API that could be leveraged to dynamically pull connection information?
The NoAuth extension that appears to have been deprecated looks like it
might have handled this for me. QuickConnect works fine but most of the
point of Guacamole was to provide my technical end-users a nice list of
running VNC sessions inside our environment in a secure fashion with 2FA and
so forth.
You don't want NoAuth. Really, you don't :-). We deprecated it for a reason.
Is there any option for using OpenID without having a database backend to
list connection information?
I'm sure there is - I can think of three ways:
1) Consul has an API, and an extension could be written to pull from that API. I'd be happy to work through implementation of such an extension, if you can provide insight on how the API works.
2) Sounds like Consul can spit out formatted output - XML, maybe JSON. An extension could be written to leverage this - I'd lean toward JSON output, myself, but probably doesn't matter that much.
3) Mike has mentioned in the past, I think, that he has a JSON extension that might work for this, eh Mike?
If I have to maintain a database, that means a lot more work to get this
working (i.e. i'd have to write something that could blow away the Guacamole
database and repopulate it from whatever we source from Consul). A static
configuration maintained using tools outside of the app itself lends itself
far more to my process.
I wouldn't say you'd have to blow away the database each time and repopulate it - at most you'd blow away the data in one or two of the tables (Connection, maybe Permissions) and repopulate that, but it actually shouldn't be too bad to write scripts in one of several languages, or even some SQL procedures in your DB of choice that would ease this. Not saying this is really the best way to go for you, just that it is a possibility and may not be quite as bad as it seems.
Should I just downgrade to the pre-1.0 release and use noauth? This seems to
give me no upgrade path, and I'm not sure if the openid extension actually
works alongside that anyhow.
No, don't use NoAuth. Let's figure something else out that works for you.
-Nick
Re: OpenID and NoAuth / user-mapping.xml ?
Posted by Nick Couchman <vn...@apache.org>.
On Mon, Aug 19, 2019 at 7:14 PM Mike Sollanych <ms...@dwavesys.com>
wrote:
> Apologies if this was posted twice, didn't confirm email properly.
>
>
I only see it once :-).
> I'm trying to set up a highly dynamic Guacamole setup, using OpenID for
> authentication (against IDAptive; this part works well). The actual
> Guacamole connections need to be sourced from Consul service discovery; my
> plan had been to use Consul Template to do this and spit out a file like
> the
> user-mapping.xml, but it looks like there's no way to use the two of these
> in concert.
>
>
Unfortunately the built-in user-mapping.xml doesn't really "stack" with the
other modules the same way, so you likely won't have much success getting
this to work. However, I wonder does the Consul service discovery have any
sort of API that could be leveraged to dynamically pull connection
information?
> The NoAuth extension that appears to have been deprecated looks like it
> might have handled this for me. QuickConnect works fine but most of the
> point of Guacamole was to provide my technical end-users a nice list of
> running VNC sessions inside our environment in a secure fashion with 2FA
> and
> so forth.
>
>
You don't want NoAuth. Really, you don't :-). We deprecated it for a
reason.
> Is there any option for using OpenID without having a database backend to
> list connection information?
>
>
I'm sure there is - I can think of three ways:
1) Consul has an API, and an extension could be written to pull from that
API. I'd be happy to work through implementation of such an extension, if
you can provide insight on how the API works.
2) Sounds like Consul can spit out formatted output - XML, maybe JSON. An
extension could be written to leverage this - I'd lean toward JSON output,
myself, but probably doesn't matter that much.
3) Mike has mentioned in the past, I think, that he has a JSON extension
that might work for this, eh Mike?
> If I have to maintain a database, that means a lot more work to get this
> working (i.e. i'd have to write something that could blow away the
> Guacamole
> database and repopulate it from whatever we source from Consul). A static
> configuration maintained using tools outside of the app itself lends itself
> far more to my process.
>
I wouldn't say you'd have to blow away the database each time and
repopulate it - at most you'd blow away the data in one or two of the
tables (Connection, maybe Permissions) and repopulate that, but it actually
shouldn't be too bad to write scripts in one of several languages, or even
some SQL procedures in your DB of choice that would ease this. Not saying
this is really the best way to go for you, just that it is a possibility
and may not be quite as bad as it seems.
>
> Should I just downgrade to the pre-1.0 release and use noauth? This seems
> to
> give me no upgrade path, and I'm not sure if the openid extension actually
> works alongside that anyhow.
>
>
No, don't use NoAuth. Let's figure something else out that works for you.
-Nick
>