Marcos Lilljedahl
7d6e8478eb
Send privileged flag to stack creation and session setup
2021-01-02 10:21:36 -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
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
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
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
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
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 @xetorthio
dcb2bc7500
Pass playground struct to session provisioner
2017-11-16 12:00:59 -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
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
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
Jonathan Leibiusky @xetorthio
d566e5ee05
Reimplement the scheduler to be a lot more reliable
2017-09-13 19:21:06 -03:00
Marcos Lilljedahl
a9474cf75e
Rename Host to PlaygroundFQDN
2017-09-12 17:58:56 -03:00
Jonathan Leibiusky @xetorthio
712772eff4
Make UI nicer with instance IP addresses and hostname
2017-09-12 11:53:26 -03:00
Jonathan Leibiusky @xetorthio
fe299fed90
Make SessionSetup faster and support for command execution
2017-09-11 18:09:27 -03:00
Jonathan Leibiusky @xetorthio
954c52471b
Refactor storage to support shallow types.
...
Add Client to storage.
Fix client resizing issues.
2017-09-01 20:12:19 -03:00
Jonathan Leibiusky @xetorthio
3c6d87cb14
Add SessionClose to SessionProvisioner
2017-08-25 11:14:49 -03:00
Jonathan Leibiusky @xetorthio
438fe9f6e7
Add SessionProvisioner and InstanceProvisionerFactory
...
Remove AllowedImages and IsDockerHost as it is not really being used for
anything useful
2017-08-24 15:36:59 -03:00
Marcos Lilljedahl
fb1e50deaf
Refactor GetForInstance so it doesn't depends on storage
2017-08-11 18:16:14 -03:00
Jonathan Leibiusky @xetorthio
7f17a7e21d
Don't panic when docker client cannot be obtained.
...
Make close session faster by deleting instances in parallel.
2017-08-11 09:49:19 -03:00
Jonathan Leibiusky @xetorthio
79181b2a17
Fix close session bug
2017-08-10 16:48:07 -03:00
Jonathan Leibiusky @xetorthio
0e9716d5b0
Set session host
...
Add ping to L2 router
2017-08-08 10:10:52 -03:00
Jonathan Leibiusky @xetorthio
c2b156d02a
Add provisioners
2017-08-02 11:58:56 -03:00
Jonathan Leibiusky @xetorthio
0e08107738
Tests are working again
2017-07-28 20:42:05 -03:00
Jonathan Leibiusky @xetorthio
53e6078cc5
WIP
2017-07-25 16:36:10 -03:00
Jonathan Leibiusky @xetorthio
8424479e76
Update event names
2017-07-24 14:55:17 -03:00
Marcos Lilljedahl
4eda861329
Merge branch 'routing_refactor' into next
2017-07-18 15:15:11 -03:00
Marcos Lilljedahl
8eae9c1e06
Merge branch 'next' into mongo_storage
2017-07-18 14:43:27 -03:00
Jonathan Leibiusky @xetorthio
08b64dadde
Add storage API abstraction
2017-07-18 14:32:17 -03:00
Jonathan Leibiusky @xetorthio
4731d8ec98
Event refactor
2017-07-18 10:45:05 -03:00
Marcos Lilljedahl
3e38804393
Fix path for stack files
2017-07-10 18:59:38 -03:00
Marcos Lilljedahl
b9f154c07c
Unify file upload strategies
2017-07-10 18:53:33 -03:00
Jonathan Leibiusky @xetorthio
3a13358739
Merge branch 'master' into storage_refactor
2017-06-16 10:02:20 -03:00
Jonathan Leibiusky @xetorthio
de281eb58b
Fix missing host setting and fix tests
2017-06-15 18:17:02 -03:00
Jonathan Leibiusky @xetorthio
e9911abf94
Storage has now it's own package.
...
Remove global `sessions` map and use configured storage.
Add a `types` package so both `pwd` and `storage` can access without
circular dependencies.
Now the session is prepared when requested and not on load.
2017-06-15 16:09:41 -03:00
Jonathan Leibiusky @xetorthio
2224e6e540
Add image_name parameter to SessionDeploy
2017-06-14 21:09:20 -03:00
Jonathan Leibiusky @xetorthio
6c8c21618b
More prometheus metrics
2017-06-14 20:59:50 -03:00
Jonathan Leibiusky @xetorthio
d87810b788
Missed the session ID
2017-06-14 09:55:25 -03:00
Jonathan Leibiusky @xetorthio
1fc0bf8dc8
Avoid stopping the world
2017-06-14 09:48:40 -03:00
Jonathan Leibiusky @xetorthio
37c16d0d98
Lock when creating new sessions as access to session map cannot happen
...
concurrently
2017-06-12 12:59:34 -03:00
Jonathan Leibiusky @xetorthio
e09ac22579
Fix small bug
2017-06-10 18:29:43 -03:00
Jonathan Leibiusky @xetorthio
33febafb43
Load sessions in parallel
2017-06-10 18:18:30 -03:00