Commit Graph

118 Commits

Author SHA1 Message Date
Marcos Lilljedahl
a07bc20f06 make sure instance client is ready before provisioning stack
Signed-off-by: Marcos Lilljedahl <marcosnils@gmail.com>
2024-01-12 11:15:53 -03:00
Stavros Panakakis
3ee2975d76 Upgrade docker sdk to moby (#491)
* Replace deprecated method

* Upgrade docker sdk to moby
2021-09-07 08:03:13 -03:00
Marcos Lilljedahl
cd6815aed5 Fix shadowing error 2021-02-18 11:07:59 -03:00
Marcos Lilljedahl
7d6e8478eb Send privileged flag to stack creation and session setup 2021-01-02 10:21:36 -03:00
Marcos Lilljedahl
e11087356e Rename auth redirect variable 2020-11-11 23:30:28 -03:00
Marcos Lilljedahl
4b4b767e46 Add ability to configure auth redirect url per playground 2020-11-11 23:20:10 -03:00
Marcos Lilljedahl
e8486b8100 Provide support to configure privileged containers per playground 2020-10-25 19:21:31 -03:00
Marcos Lilljedahl
406a3d3be4 Fix typo 2020-10-20 00:51:50 -03:00
Marcos Lilljedahl
958feeb51d Fix typo in google client secret json field tag 2020-10-18 23:47:46 -03:00
Marcos Lilljedahl
7fadf5bad7 Remove UserGet call in tests since it's note required for anon sessions
Signed-off-by: Marcos Lilljedahl <marcosnils@gmail.com>
2020-10-03 10:01:44 -03:00
Marcos Lilljedahl
58a3432a4e Fix user banned test
Signed-off-by: Marcos Lilljedahl <marcosnils@gmail.com>
2020-10-03 09:53:58 -03:00
Marcos Lilljedahl
f13aca9092 Allow annonymous users to create sessions 2020-10-03 09:43:38 -03:00
Marcos Lilljedahl
02804c4b58 Refactor user authentication 2020-10-02 00:22:52 -03:00
Paul Jolly
681de41e0a provisioner: augment Networks config from caller when -unsafe (#411)
Currently container instances are hard-coded to join a single network,
the network associated with the session.

This change allows the caller of CreateInstance to specify which
additional networks should be joined. This is useful, for example, when
a container instance requires access to additional "backend" services
that may be running.

There are security implications associated with this change, hence the
additional networks are only joined when a new -unsafe flag is
specified. It is hoped the name is a sufficient indicator that thought
needs to go into using it.
2020-09-04 13:46:31 +01:00
Marcos Lilljedahl
833e71330f Allow to set env variables through the API 2020-06-19 08:26:38 -03:00
Marcos Lilljedahl
c8416efb16 Repalce facebook oauth with google 2020-06-12 01:44:24 -03:00
Marcos Lilljedahl
618a2c0fc5 Fix user authentication persistence 2019-10-07 00:41:52 +01:00
Marcos Lilljedahl
e5e97a87d4 Add default storage for stacks
Fixes #341
Fixes #335
2019-06-22 20:21:57 -03:00
Marcos Lilljedahl
b758b005e9 Fix session setup 2019-04-23 11:24:00 -03:00
Marcos Lilljedahl
4b1dc52c59 Move DindVolumeSize to playground opts 2019-04-23 01:47:06 -03:00
Marcos Lilljedahl
40197c4cdf Make docker Oauth endpoint configurable 2019-03-31 14:14:05 -03:00
Marcos Lilljedahl
f7350b02c3 Prevent panic when checking banned user if no auth is enabled 2019-03-10 14:17:54 -03:00
Marcos Lilljedahl
5afc852d2b Add support to ban users from creating sessions 2019-03-05 16:58:20 -03:00
Marcos Lilljedahl
b8918c6510 Remove unused code 2018-02-26 21:39:57 -03:00
Marcos Lilljedahl
6e925c9a85 Fix print formatting errors 2018-02-24 12:45:41 -03:00
Marcos Lilljedahl
b390cfa4e5 Move max instnace check to playground config 2018-02-24 12:31:30 -03:00
marcos
a9d36c580e Fix channel initialization 2018-01-14 19:08:59 -03:00
marcos
56379065ae Add debug msg after running command in instance 2018-01-14 17:32:44 -03:00
marcos
f330b35057 Return immediately if any task in the errgroup fails 2018-01-14 14:28:35 -03:00
marcos
386bd87385 Add support for file editor 2018-01-05 13:13:07 -03:00
marcos
8096701e6d Fix test 2017-12-18 12:18:10 -03:00
marcos
5332f954dd Move Oauth configs to the database 2017-12-18 12:14:21 -03:00
marcos
dd6a332889 Add error to GetSession return values
- Add button to copy instance SSH access
2017-12-14 17:37:38 -03:00
Jonathan Leibiusky
da6a55fb5c New session now expects a struct with everything it needs and a context (#228)
to pass along
2017-11-28 12:14:50 -03:00
Jonathan Leibiusky
d758c1a303 When playground is created or modified it emits an event. (#225)
The scheduler listens to playground events and updates it's
configuration immediately.
2017-11-23 13:40:06 -03:00
Jonathan Leibiusky
65b8364ef2 Now both index.html and landing.html can be changes for specific (#224)
playgrounds. By default they will be served from `www/default` if no
override has been specified
2017-11-22 17:32:41 -03:00
Jonathan Leibiusky
f277e3776c Make it so the playground can decide which index file to serve. (#223)
* Make it so the playground can decide which index file to serve.
Also remove special index-nw.html and use the current playground config to
decide if to show the windows instances option or not.

* Give a better name to the struct
2017-11-22 16:47:01 -03:00
Jonathan Leibiusky
95e4aaa5f7 Allow to decide which tasks are going to be executed per playground (#218) 2017-11-21 11:58:31 -03:00
Jonathan Leibiusky @xetorthio
dcb2bc7500 Pass playground struct to session provisioner 2017-11-16 12:00:59 -03:00
Jonathan Leibiusky @xetorthio
adb64091c4 Remove property not being used 2017-11-16 11:51:02 -03:00
Jonathan Leibiusky @xetorthio
4e09a76d64 Use a better uuid library 2017-11-14 16:42:02 -03:00
Jonathan Leibiusky
3f5b3882dd Multiple playgrounds support (#215)
* Add Playground struct and basic support for creating it and retrieving
it

* Add missing functions in pwd mock

* Get playground from request domain and validate it exists. If valid set
it on the newly created session.

* Move playground specific configurations to the playground struct and use
it everytime we need that conf.

* Don't allow to specify a duration bigger that the allowed in the
playground
2017-11-14 15:50:04 -03:00
Marcos Nils
2cbde6d067 Remove session lock as it's worthless now that PWD is deployed in (#204)
multiple servers
2017-11-02 14:20:14 -03:00
Marcos Lilljedahl
7ce693fab5 Vendor dependencies and use docker/go-docker for API types 2017-10-20 18:42:16 -03:00
Jonathan Leibiusky @xetorthio
e9dd97e4e4 Add Docker ID integration 2017-10-10 15:27:53 -03:00
Jonathan Leibiusky @xetorthio
4c034812d2 Add support for openid with github and facebook 2017-10-04 11:41:17 -03:00
Jonathan Leibiusky @xetorthio
2a261094ff GetForSession now expects a *types.Session instead of a string 2017-09-20 17:29:58 -03:00
Jonathan Leibiusky @xetorthio
23d0d8e8d0 Add flag to force TLS 2017-09-15 17:49:36 -03:00
Jonathan Leibiusky @xetorthio
e9e20a5e79 Allow to connect to docker daemons without certificates but using tls 2017-09-15 17:19:34 -03:00
Jonathan Leibiusky @xetorthio
6ac9784bef Make sure that we don't use weird geometries 2017-09-14 16:03:27 -03:00