Commit Graph

683 Commits

Author SHA1 Message Date
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
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
73223a6b1b Update k8s frontend 2020-01-17 12:44:03 +00:00
Marcos Lilljedahl
8a01477901 Add docker ln so docker cli SSH remote works 2019-11-28 14:27:52 +00:00
Marcos Lilljedahl
ce777a39a4 Update DTR / UCP 2019-11-24 23:11:30 +00:00
Michael Irwin
00e5a8f9b4 Add docker-app as a cli plugin (#364) 2019-10-22 18:05:37 +01:00
Marcos Lilljedahl
cc7842525c Fix DOCKER_HOST variable 2019-10-22 17:50:06 +01:00
Michael Irwin
3c1b4e602b Enable CLI experimental option to support docker app usage (#363) 2019-10-22 16:26:49 +01:00
Michael Irwin
bacf00e658 Add "Open Port" button (#362) 2019-10-22 16:21:19 +01:00
Michael Irwin
d0ff81cc98 Add SRI to editor scripts and removed unused scripts (#361) 2019-10-18 22:01:38 +01:00
Marcos Lilljedahl
4b38d25f17 Update golang crypto 2019-10-18 00:21:32 +01:00
Marcos Lilljedahl
618a2c0fc5 Fix user authentication persistence 2019-10-07 00:41:52 +01:00
Marcos Nils
85cf19599c Update readme (#358) 2019-10-01 12:41:51 +01:00
Marcos Lilljedahl
8236c3df79 Add bizible to landing 2019-09-18 15:47:55 -03:00