Commit Graph

194 Commits

Author SHA1 Message Date
marcos
dd6a332889 Add error to GetSession return values
- Add button to copy instance SSH access
2017-12-14 17:37:38 -03:00
marcos
efaa37e0ad Add segment integration 2017-12-01 17:37:20 -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
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
0ad73acbb9 Add list playgrounds and create/update playground endpoints. (#221)
User is expected to send a predefined token as basic auth password.
2017-11-21 12:55:34 -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 Lilljedahl
3dee0d3f0b Revert "Remove sensitive information from LoggedUser endpoint"
This reverts commit e91a1f3e6f.
2017-11-12 21:28:38 -03:00
Marcos Lilljedahl
0541165b70 Remove incorrect host replacement 2017-11-12 21:22:14 -03:00
Marcos Lilljedahl
e91a1f3e6f Remove sensitive information from LoggedUser endpoint 2017-11-09 19:21:31 -03:00
Marcos Lilljedahl
3db75cd297 Make ping not use docker/docker and update Dockerfiles 2017-11-09 15:28:31 -03:00
Jonathan Leibiusky @xetorthio
0c1320da00 Add ping and metrics endpoint to redirect server 2017-11-09 10:28:48 -03:00
Marcos Nils
c5f0f5fab9 Make me endpoint accessible through CORS. (#207)
Because the standard router was triggering before the cors one,
a regex not to match `/me` is needed
2017-11-06 13:43:41 -03:00
Jonathan Leibiusky @xetorthio
41f036416c Error message if client was not created 2017-11-01 15:00:04 -03:00
Marcos Lilljedahl
d8bc3c597d Add check to avoid panic when receiving msg 2017-11-01 14:09:58 -03:00
Jonathan Leibiusky @xetorthio
eeed9ed71a Remove old disconnect 2017-10-31 17:05:48 -03:00
Jonathan Leibiusky @xetorthio
380e15527b Merge branch 'websocket_rewrite' 2017-10-31 16:58:36 -03:00
Marcos Lilljedahl
5f8edd12cb Add CheckOrigin function to allow any connections 2017-10-31 16:57:36 -03:00
Jonathan Leibiusky @xetorthio
62e948acb4 Merge branch 'master' into next 2017-10-31 16:28:31 -03:00
Jonathan Leibiusky (@xetorthio)
2fd1b628a8 Remove unused import 2017-10-20 15:30:58 +02:00
Jonathan Leibiusky (@xetorthio)
fbce7ce63a Retry client connection when websocket is disconnected.
Close websocket server reference when client has disconnected.
2017-10-20 15:26:34 +02:00
Jonathan Leibiusky (@xetorthio)
b1406f4ea8 First try on using standard websocket and removing socket.io from the
middle
2017-10-19 13:49:14 +02:00
Jonathan Leibiusky (@xetorthio)
82b95ee112 Return an avatar for docker id integrations 2017-10-17 14:04:14 +02:00
Jonathan Leibiusky (@xetorthio)
71464cffee Handle user not found error and only return user's public info 2017-10-17 12:02:35 +02:00
Jonathan Leibiusky (@xetorthio)
b99c047a0c Revert "Add session keep alive. If client doesn't send a keep alive, after a"
This reverts commit 1b0d363ffe.
2017-10-17 01:42:59 +02:00
Marcos Lilljedahl
4850a7b496 Add endpoint to retrieve user by userId 2017-10-16 19:43:56 -03:00
Jonathan Leibiusky (@xetorthio)
1b0d363ffe Add session keep alive. If client doesn't send a keep alive, after a
specified amount of time the scheduler closes the session
2017-10-16 18:11:15 +02:00
Marcos Lilljedahl
8769aa344a Add methods in CORS requests 2017-10-14 12:50:11 -03:00
Marcos Lilljedahl
426acf1db3 Postmessage to parent window to notify callback login 2017-10-12 13:28:02 -03:00
Jonathan Leibiusky @xetorthio
e9dd97e4e4 Add Docker ID integration 2017-10-10 15:27:53 -03:00
Jonathan Leibiusky @xetorthio
97958f2e30 Get request info differently 2017-10-04 16:57:46 -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
f9809028da Allow to disable windows instances 2017-10-02 17:19:24 -03:00
Marcos Lilljedahl
1a7a776a27 Add close session endpoint 2017-09-26 09:38:08 -03:00
Jonathan Leibiusky @xetorthio
98735a5a93 Add a way to extend the handlers and add custom stuff 2017-09-22 10:00:44 -03:00
Marcos Lilljedahl
a9474cf75e Rename Host to PlaygroundFQDN 2017-09-12 17:58:56 -03:00
Marcos Lilljedahl
4d643d04c0 Add SESSION_ID to instance and remove unnecessary stuff 2017-09-12 17:02:27 -03:00
Jonathan Leibiusky @xetorthio
86044788b9 Don't change session host! 2017-09-08 18:22:31 -03:00
Marcos Lilljedahl
19283a3c86 Add rediretion when using https 2017-09-08 16:14:01 -03:00
Jonathan Leibiusky @xetorthio
3db24bf6a6 Show a message when connection to terminal has been lost 2017-09-08 15:32:20 -03:00
Jonathan Leibiusky @xetorthio
f5c337e03d Few fixes to terms 2017-09-08 12:20:29 -03:00
Jonathan Leibiusky @xetorthio
45137438db Make sure instance does not exist before reconnecting 2017-09-08 11:22:23 -03:00
Jonathan Leibiusky @xetorthio
560a3ae05a Add OOC check and error on new session creation 2017-09-07 17:30:04 -03:00
Jonathan Leibiusky @xetorthio
ef9be2a5ac Add support for out of capacity error message 2017-09-07 17:05:05 -03:00
Jonathan Leibiusky @xetorthio
d29a02bb22 Make sure channel and connection exists before closing 2017-09-07 16:41:37 -03:00
Jonathan Leibiusky @xetorthio
150b089602 Reimplement terminal connections 2017-09-07 15:27:25 -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
4b00a9c0eb If session doesn't exist, don't panic! 2017-08-30 18:55:13 -03:00
Jonathan Leibiusky @xetorthio
fc3dfa6844 Add let's encrypt support 2017-08-30 10:31:26 -03:00