Commit Graph

149 Commits

Author SHA1 Message Date
Moss d995af98d2 An image integrated user space Wireguard (#86)
This commit adds a solution for those who cant/dont have WireGuard kernel module loaded on their host but still wants/have to run it in docker. 

It uses wireguard-go which in this case runs in userspace.
2020-07-23 10:07:53 +02:00
Markus Viitamäki 8839df65cb Adding support for PersistentKeepalive in user configs (#85) 2020-07-22 17:14:43 +02:00
Markus Viitamäki 709fb144f1 CI Overhaul (#83)
Multiple changes made to the CI workflow.

Docker images are now built for AMD64, ARM64 and ARMv7
Docker images are now built for each release and published on docker hub
Release workflow now successfully create release and upload assets
Added ARM64 to list of binaries compiled during release
2020-07-22 16:33:37 +02:00
dependabot[bot] 670cb87ffd Bump lodash from 4.17.15 to 4.17.19 in /ui (#81)
Bumps [lodash](https://github.com/lodash/lodash) from 4.17.15 to 4.17.19.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](https://github.com/lodash/lodash/compare/4.17.15...4.17.19)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-07-19 15:57:30 +02:00
Johan Wassberg 97b2fef125 Shibboleth SP documentation (#80)
Documentation on a solution for Shibboleth SP.
This solution is in production for Stockholm University, and therefor validated working.
2020-07-15 15:11:27 +02:00
Markus Viitamäki 79d245f9c7 Google SSO documentation (#79)
Documentation on a solution for Google SSO.
This solution is in production for Embark Studios, and therefor validated working.
2020-07-14 14:48:45 +02:00
Will Ho 98d7196128 Use Debian variant of node in Dockerfile (#76) 2020-06-13 16:21:24 +02:00
Markus Viitamäki 557e41283e figuring out ci issues (no space left) (#77)
Fixing space issue and at the same time move github actions runner to ubuntu-20.04 from ubuntu-latest (currently 18.04).
2020-06-13 16:05:04 +02:00
Markus Viitamäki 558616a87c update makefile and documentation (#74) 2020-06-09 13:13:53 +02:00
dependabot[bot] bdf5423ad3 Bump websocket-extensions from 0.1.3 to 0.1.4 in /ui (#73)
Bumps [websocket-extensions](https://github.com/faye/websocket-extensions-node) from 0.1.3 to 0.1.4.
- [Release notes](https://github.com/faye/websocket-extensions-node/releases)
- [Changelog](https://github.com/faye/websocket-extensions-node/blob/master/CHANGELOG.md)
- [Commits](https://github.com/faye/websocket-extensions-node/compare/0.1.3...0.1.4)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-06-07 23:20:43 +02:00
Dmitry 4a9529a0e7 disable cgo (#70)
removes dependency on glibc from built binaries
2020-06-01 09:28:38 +02:00
Markus Viitamäki ae07adaa13 Release v1.1.0 v1.1.0 2020-05-06 11:03:32 +02:00
Markus Viitamäki 1b03a98d9f rename jobs and bump version on golang-action 2020-05-06 09:31:22 +02:00
Markus Viitamäki b7a45cfd76 move build step after variables 2020-05-05 20:12:25 +02:00
Markus Viitamäki 08fba1e6ac adding changelog to keep track of changes between releases 2020-05-05 18:12:05 +02:00
Markus Viitamäki 03f67a54fe actions workflow for releases (#68)
* actions workflow for releases

Adding actions workflow for building releases

* change BOT_TOKEN to GITHUB_TOKEN
2020-05-05 16:46:44 +02:00
Markus Viitamäki c60f65d038 update golang dependencies to latest version (#66)
Update golang dependencies to latest version.
2020-05-05 10:59:59 +02:00
Markus Viitamäki 27dd9f29be documentation update (#67)
Adding information about the need of WireGuard installed on machine for wg-ui to work.
2020-05-05 09:35:30 +02:00
Markus Viitamäki 45c786a946 npm audit fix to get rid of the current security alerts (#63) 2020-05-04 20:22:03 +02:00
Markus Viitamäki e9edd16fab Documentation update (#65)
Adding documentation for installation without Docker
Also including build information for ARM thanks to @cottley
2020-05-04 15:48:05 +02:00
Markus Viitamäki 9d93f4092c Include building ui into dockerfile (#62)
* Include building ui into docker file

* Specify docker.io for image

* removing old dist files

* update gitignore to skip dist folders

* adding build to arguments as the files are no longer in repo

* remove bindfs to figure out the problem later

* running all instead of just specified

* removed bindfs action

* disabling error check for now until we move building ui assets to action

* added npm install & run to pull_request yaml

* build ui folder

* --prefix on install deps

* --prefix on install deps

* re-added not checking generated files

Co-authored-by: Fredrik Grönqvist <fredrik.gronqvist@embark-studios.com>
2020-04-20 03:51:29 +02:00
Markus Viitamäki 758100558a Fix GitHub Action (no space left on device) (#53)
* Removing swap and cleaning up apt cache.

* List all docker images on machine, in order to do cleanup

* Cleanup old docker images

* Adding disk cleanup for master push
2020-04-14 21:28:08 +02:00
Markus Viitamäki cc7d130dfa replace wireguard-ui with wg-ui (#56) 2020-04-14 21:25:01 +02:00
Sohalt e49634f9d2 Fix gosec issues (#57)
* Stricter file permissions when writing /proc/sys/ipv4/ip_forward

* Fix gosec issues
2020-04-14 21:04:43 +02:00
Sohalt f203beeab0 Fix name for Github Actions (#55) 2020-04-14 20:24:43 +02:00
Sohalt 4523efdaa1 Document configuration (#50)
* Document configuration

* change wireguard-ui to wg-ui

Co-Authored-By: Sohalt <sohalt@sohalt.net>

Co-authored-by: Markus Viitamäki <markus@viitamaki.net>
2020-04-14 19:38:57 +02:00
Björn Bohman ffeb822a21 Set name and label at creation of client. Fixes #48 (#49)
* Set name and label at creation of client. Fixes #48

Changes behaviour of the add button from directly creating an
configuration to directing the user to an "create configuration" view.

If no name is given the default name is used same way as before.
This means that the go backend works with the old frontend as well with the new.

* Follow best practice in writing json.

Also handle err.

* 2 Bug fixes.

1. Fix bug introduced in last commit.
Don't try to json encode data that is already encoded.

2. Honor --max-number-client-config
When the creation moved from Clients.svelte to NewClient.svelte the
check in returned json for errors got lost. Now it is back.
2020-04-14 15:26:34 +02:00
Björn Bohman fb5cf90751 Add limit in how many configurations each user may have. (#47)
* Add limit in how many configurations each user may have.

If the option max-number-client-config is more than 0 this number is the
maximum number of clients a user can create.

The setting only limits creation. If a user had created more
configurations before this setting is enforced or lowered the user may
user the service as before, just cant create any more configurations.

* Fix spelling and fmt as suggested by @luna-duclos

* Alert user when limit is reached.

When the user tries to create more configurations than are allow an
alert will pop up.

* Change http status as discussed with @freddd

http 400 seems a better fit than 429 as a more generic error.
2020-03-20 15:09:01 +01:00
dependabot[bot] 005b2413b7 Bump acorn from 5.7.3 to 5.7.4 in /ui (#45)
Bumps [acorn](https://github.com/acornjs/acorn) from 5.7.3 to 5.7.4.
- [Release notes](https://github.com/acornjs/acorn/releases)
- [Commits](https://github.com/acornjs/acorn/compare/5.7.3...5.7.4)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-03-16 09:25:05 +01:00
Björn Bohman f412ebbd94 Add timestamp to config (#44)
* Add 'Created' ad an timestamp when the config is created.

* Add field 'Modified' on ClientConfig

This field updates when the user changes name or label on their config.
2020-03-16 08:25:04 +01:00
Luna Duclos 9bcd558e0c Add --no-nat flag to disable NAT, NAT remains on by default (#41) 2020-03-11 16:17:15 +01:00
Markus Viitamäki 3f24fb2122 Merge pull request #35 from sclem/ui_client_list_race
ui: avoid "async race" with new client POST
2020-01-17 20:46:26 +01:00
sclem e176ae04c2 ui: avoid "async race" with new client POST
The getClients() and POST request were being issued one after another
(not waiting for the POST to return). This can cause the GET /clients to
return the old list before the user config is updated. Waiting for the
POST to return before retrieving the new client list fixes the race.

This behavior can be reproduced by adding a time.Sleep(time.Second) to
the CreateClient server handler.
2020-01-17 11:22:26 -05:00
Markus Viitamäki 8fc4378316 Merge pull request #31 from eest/enable_ip_forward_if_disabled
Only enable IP forwarding if it is disabled
2019-12-27 15:36:10 +02:00
Patrik Lundin e62b6121d1 Only enable IP forwarding if it is disabled
Any value other than 0 is considered enabled:
https://www.kernel.org/doc/Documentation/networking/ip-sysctl.txt

Fixes #30
2019-12-26 11:17:26 +01:00
Fredrik Grönqvist 0bc3c3bc58 Update README.md 2019-12-20 13:35:30 +01:00
Fredrik Grönqvist 82c45bd349 Update push_master.yaml 2019-12-19 15:44:41 +01:00
Fredrik Grönqvist fe9ab83ac9 reverted to dockerhub 2019-12-19 15:36:55 +01:00
Fredrik Grönqvist 4a5c38b71b Update push_master.yaml 2019-12-19 15:22:25 +01:00
Fredrik Grönqvist da0bdb2a5f Update push_master.yaml 2019-12-19 15:07:52 +01:00
Fredrik Grönqvist 44ccd065ac Upload to dockerhub instead (#29) 2019-12-19 14:49:42 +01:00
Fredrik Grönqvist 5fafa92046 org name should be lowercase (#28)
* org name should be lowercase

* also added case for pull request
2019-12-19 13:22:39 +01:00
Fredrik Grönqvist b471f3dff5 Github actions & clean up to be able to do linting (#27)
* Github actions & clean up to be able to do linting

* renamed user

* pushing images to github packages

* Fixed tags
2019-12-19 13:03:03 +01:00
Fredrik Grönqvist a127e67720 Merge pull request #26 from EmbarkStudios/fix-go-sec
Fixing issues detected by gosec
2019-12-16 08:22:08 +01:00
Fredrik Grönqvist dcec3d8067 Fixed import 2019-12-13 14:33:35 +01:00
Fredrik Grönqvist 8413219dec gosec: added error handling & path cleaning 2019-12-13 12:51:22 +01:00
Fredrik Grönqvist bf2c550334 Merge pull request #25 from EmbarkStudios/buildkite-artifact-upload-remove
Removes uploading artifact using buildkite agent
2019-12-13 10:41:39 +01:00
Fredrik Grönqvist 301b1b4a5a Removes uploading artifact to buildkite 2019-12-13 10:32:38 +01:00
Fredrik Grönqvist e8a6da52dc Merge pull request #24 from EmbarkStudios/buildah-dockerfile
make buildah use dockerfile
2019-12-13 10:19:39 +01:00
Fredrik Grönqvist aa5f76c6cb make buildah use dockerfile 2019-12-13 09:51:47 +01:00