Commit Graph

697 Commits

Author SHA1 Message Date
Stavros Panakakis
789669a018 Update copyright year range (#469) 2021-06-04 09:44:21 -03:00
Marcos Lilljedahl
102c998028 Fix incorrect OOC handler
Fixes #462
2021-04-18 17:39:13 -03:00
Marcos Lilljedahl
c0aaf0a3a4 Fix Users handler. This never worked :D
Signed-off-by: Marcos Lilljedahl <marcosnils@gmail.com>
2021-03-04 00:16:42 -03:00
Marcos Nils
3a762ba15c Replace go-bindata with go 1.16 embed (#452) 2021-02-21 13:58:29 -03:00
Marcos Lilljedahl
cd6815aed5 Fix shadowing error 2021-02-18 11:07:59 -03:00
Marcos Lilljedahl
7decf117c6 Update bindata 2021-01-04 11:28:12 -03:00
Marcos Lilljedahl
8c06d6b7c1 Fix 1 manager 1 worker template
Fixes #450
2021-01-04 11:14:39 -03:00
Marcos Lilljedahl
7d6e8478eb Send privileged flag to stack creation and session setup 2021-01-02 10:21:36 -03:00
Marcos Lilljedahl
9b82e0bb7a Add accesibility options 2020-12-27 17:03:18 -03:00
Marcos Lilljedahl
a1deea0d37 Add privileged flag by default 2020-12-27 16:41:29 -03:00
Marcos Lilljedahl
8b1c2b1c31 Update dind image 2020-12-27 14:04:13 -03:00
Marcos Lilljedahl
7f304a3415 Don't crash if landing can't be fetched 2020-11-13 11:10:48 -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
f9800927fe Add PWG.dev to allowed hosts 2020-10-25 19:03:16 -03:00
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
Marcos Lilljedahl
406a3d3be4 Fix typo 2020-10-20 00:51:50 -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
Marcos Lilljedahl
958feeb51d Fix typo in google client secret json field tag 2020-10-18 23:47:46 -03:00
Dirane TAFEN
27d6a43813 upgrade k8s to 1.19.0 (#421) 2020-10-09 17:42:03 -03:00
Anjia Wang
9563ff1f3f Update the GitHub actions to the latest version (#431)
The current version caused a warning that `set-env` command is deprecated and will be disabled soon.
2020-10-08 19:09:01 -03:00
Paul Jolly
3dccd0b0c0 ci: run CI on latest two versions of Go (#429) 2020-10-06 14:39:46 +01:00
Paul Jolly
ed72c5a0b8 main: set CopyUIDGID: true for copy to container (#428)
This ensures that uploaded files "inherit" the owner that is the USER
listed in the image definition.
2020-10-06 14:37:55 +01: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
Paul Jolly
db603ec953 deps: upgrade github.com/prometheus/client_golang to latest (#424)
Earlier versions transitively depend on a version of
github.com/matttproud/golang_protobuf_extensions which depends on the
now non-existent github.com/golang/protobuf/proto/testdata (breaking
change).
2020-10-06 14:29:27 +01: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
2d1515d12f Allow the caller of docker-compose to provide binaries via volumes (#417)
This is a small step towards making the running of PWD more efficient.
Building the parts of PWD outside of a container is always going to be
far more efficient than inside (and saves mapping of caches etc).

As a later step we could move entirely to this approach and use a
smaller image for running PWD.
2020-09-04 14:03:29 +01:00
Paul Jolly
1a1eb34a29 Simplify the code that creates a tar passed to CopyToContainer (#416) 2020-09-04 13:50:19 +01: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
78e9689249 Make path work for both url and data file upload 2020-07-27 00:05:31 -03:00
diranetafen
1aff5d7d5a add kubectl auto-completion (#406) 2020-06-28 22:47:58 -03:00
Marcos Lilljedahl
cf50d344b2 Append instance variables 2020-06-21 22:26:09 -03:00
Marcos Lilljedahl
ff8a2a0c3d Move from weave to kube-router to keep things simple 2020-06-21 15:31:50 -03:00
Marcos Lilljedahl
833e71330f Allow to set env variables through the API 2020-06-19 08:26:38 -03:00
Paul Jolly
0810809166 ci: add basic go tests to GitHub actions (#389)
We can add more extensive tests at a later date, but this is a good
start.
2020-06-18 11:31:49 -03:00
Marcos Lilljedahl
3263cfa968 Use 1.18.4 2020-06-17 23:47:21 -03:00
diranetafen
0b70ea7d63 update kubernetes version from 1.14 to 1.18 2020-06-17 21:54:09 +00:00
Marcos Lilljedahl
c8416efb16 Repalce facebook oauth with google 2020-06-12 01:44:24 -03:00
Marcos Lilljedahl
3673f3a539 Update dockerfile
Fixes #401
2020-06-08 14:28:05 -03:00
Michael Grigoryan
37a04e4fec Update the year of the copyright (#400) 2020-06-07 15:54:04 -03:00
j143
852c075cca Update to xt_ipvs instead of xt_ipv (#396) 2020-04-06 01:48:33 -03:00
Paul Jolly
f1183076e5 deps: migrate to modules (#386)
Move away from using dep to use Go modules which is production ready as
of 1.14.

Also tidy up README to make instructions for local development clearer

Fixes #385
2020-04-01 08:47:27 -03:00
Marcos Nils
26a21c080c Don't run all tasks by default on local mode (#392)
Fixes #388
2020-04-01 08:25:18 -03:00
Paul Jolly
652047fdc5 ci: create an initial GitHub actions workflow (#390)
This workflow does nothing, but we need an initial workflow in place in
order to be able to iterate and test with changes to that workflow in
later PRs. Hence we commit a simple "Hello, World!" workflow for now
that will be refined in later PRs.
2020-04-01 00:11:32 -03:00
Marcos Lilljedahl
859648d771 Add SameSite cookie option 2020-03-30 18:31:36 -03:00