Commit Graph

182 Commits

Author SHA1 Message Date
Marcos Lilljedahl
d55bdc9664 Use secure cookies always 2020-10-20 02:24:15 -03:00
Marcos Lilljedahl
f898a14485 Refactor serveAsset to use ServeContent instead. 2020-10-20 01:21:40 -03:00
Paul Jolly
ef0ac9be48 Simplify the setup of bundled assets (#436)
1. Move the generated file to handlers - it better belongs there
2. Ensure that all file serves are also handled by the asset store

Co-authored-by: Marcos Lilljedahl <marcosnils@gmail.com>
2020-10-20 00:45:42 -03:00
Paul Jolly
1e0eb1f329 main: embed assets from www to allows PWD to run standalone (#425)
Generate these assets in config because this package is imported by
most.

Add internal/addgenheader as a simple helper because go-bindata doesn't
output the write header.

Also update test CI workflow to regenerate and check commit is clean.
2020-10-06 14:33:11 +01:00
Marcos Lilljedahl
78e9689249 Make path work for both url and data file upload 2020-07-27 00:05:31 -03:00
Marcos Lilljedahl
c8416efb16 Repalce facebook oauth with google 2020-06-12 01:44:24 -03:00
Marcos Lilljedahl
859648d771 Add SameSite cookie option 2020-03-30 18:31:36 -03:00
Marcos Lilljedahl
79a7e6317b Change close to POST as sendBeacon uses that method
Signed-off-by: Marcos Lilljedahl <marcosnils@gmail.com>
2020-02-25 23:37:46 -03:00
Marcos Lilljedahl
db8f4e6519 Add close GET endpoint for sendBeacon 2020-02-25 23:23:45 -03:00
Marcos Lilljedahl
92299bdcbf Add provider_id to cookie data 2019-06-22 16:08:04 -03:00
Marcos Lilljedahl
cf25f7592a Set cookie to parent domain to allow subdomains to access 2019-05-26 19:54:50 -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
91912732aa Add docker.com CORS support 2019-03-28 23:18:59 -03:00
Marcos Lilljedahl
5afc852d2b Add support to ban users from creating sessions 2019-03-05 16:58:20 -03:00
Marcos Lilljedahl
b363a35a61 Fix typo 2018-04-30 10:23:22 -03:00
Marcos Lilljedahl
cf13558615 Add PWK 2018-04-25 13:23:48 -03:00
Marcos Lilljedahl
8353f5a42c Fix localhost 2018-04-20 16:45:40 -03:00
Marcos Lilljedahl
2aa327a86f Add localhost as a CORS handler for local SDK testing 2018-04-15 18:07:02 -03:00
Marcos Lilljedahl
ed5ca6bc4e Add support for http-01 handler 2018-03-04 11:54:01 -03:00
Marcos Lilljedahl
b8918c6510 Remove unused code 2018-02-26 21:39:57 -03:00
Marcos Lilljedahl
79c778a2bf Fix Max instance validation 2018-02-26 21:35:01 -03:00
Marcos Lilljedahl
6e925c9a85 Fix print formatting errors 2018-02-24 12:45:41 -03:00
Marcos Lilljedahl
da24d3ad6b Fix InstanceMax typo 2018-02-24 12:39:32 -03:00
Marcos Lilljedahl
b390cfa4e5 Move max instnace check to playground config 2018-02-24 12:31:30 -03:00
Marcos Lilljedahl
0414f4933c Fix CORS origin 2018-02-19 01:04:23 -03:00
Marcos Lilljedahl
04b25875ac Added play with moby to CORS allowed headers 2018-02-19 00:49:35 -03:00
Marcos Lilljedahl
d7b2dc69ff Fix Origins set in CORS headers 2018-02-19 00:42:29 -03:00
Marcos Lilljedahl
54b961a950 Update Gorilla handlers and add CORS option 2018-02-19 00:21:19 -03:00
Marcos Lilljedahl
9b4a781f71 Change CORS allowed headers to PWD 2018-02-18 23:06:24 -03:00
Marcos Lilljedahl
6bfa8b0d21 Add ee-beta site 2018-01-24 00:58:11 -03:00
Marcos Lilljedahl
e8583f7e3e Add wildcard to cors 2018-01-24 00:49:14 -03:00
Marcos Lilljedahl
e66ed55a9b Add trainngs and pwm origin headers 2018-01-23 11:51:57 -03:00
marcos
386bd87385 Add support for file editor 2018-01-05 13:13:07 -03:00
marcos
533440dac5 Fix issue when validating providers for playground when creating a new
session
2017-12-18 14:11:13 -03:00
marcos
5332f954dd Move Oauth configs to the database 2017-12-18 12:14:21 -03:00
marcos
6a1e91b1e9 Make validateToken public 2017-12-15 17:16:37 -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
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