Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wireguard rewrite #53

Merged
merged 52 commits into from
May 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
52 commits
Select commit Hold shift + click to select a range
47e2257
Save
glothriel Mar 20, 2024
38a5c2b
ad
glothriel Mar 24, 2024
8b78456
save
glothriel Mar 27, 2024
7ec0e10
Dehardcoded some parameters
glothriel Apr 4, 2024
3eeba94
Save before big changes
glothriel Apr 9, 2024
cb1161a
save
glothriel Apr 23, 2024
7dab453
save
glothriel Apr 25, 2024
06c625d
save
glothriel Apr 25, 2024
814a07f
Save
glothriel May 22, 2024
b0956a6
Save
glothriel May 22, 2024
ad6d8e4
Save
glothriel May 22, 2024
09452c8
Save
glothriel May 22, 2024
c2914fd
Save
glothriel May 22, 2024
f2ef327
Save
glothriel May 22, 2024
1aa2abb
Save
glothriel May 22, 2024
5373dee
Save
glothriel May 22, 2024
6559d57
Save
glothriel May 22, 2024
2608676
Save
glothriel May 22, 2024
685b572
Save
glothriel May 22, 2024
a9925a8
Save
glothriel May 22, 2024
56e988b
Save
glothriel May 22, 2024
3bbf9cb
Save
glothriel May 22, 2024
072da65
Save
glothriel May 22, 2024
49bc789
Save
glothriel May 22, 2024
02743c3
Save
glothriel May 22, 2024
8857fc5
Save
glothriel May 23, 2024
17bb1b4
Save
glothriel May 23, 2024
fc7c62a
Save
glothriel May 23, 2024
6fe9949
Save
glothriel May 23, 2024
c492498
Save
glothriel May 23, 2024
10b5086
Save
glothriel May 23, 2024
583a63a
Save
glothriel May 23, 2024
c3702bd
Save
glothriel May 23, 2024
9432b7c
Save
glothriel May 23, 2024
1235c0c
Save
glothriel May 23, 2024
5d17e56
Save
glothriel May 23, 2024
ddef484
Basic API for apps & peers
jzyinq May 23, 2024
30c8d53
ads
glothriel May 24, 2024
36b98b6
Clients now reconnect after restart
glothriel May 24, 2024
15fa81e
Save
glothriel May 24, 2024
a0bbf70
Added integration tests
glothriel May 24, 2024
90ec45c
Added integration tests
glothriel May 24, 2024
2ad37d3
Added integration tests
glothriel May 24, 2024
1eac925
Bumped kind version
glothriel May 26, 2024
25b96e0
Save
glothriel May 27, 2024
30e0452
Save
glothriel May 27, 2024
c5c1338
Save
glothriel May 27, 2024
2758b1d
Save
glothriel May 27, 2024
1c56302
Save
glothriel May 27, 2024
7df7e71
Save
glothriel May 27, 2024
b44049b
Fixed tests?
glothriel May 27, 2024
5bc0a7d
Better documentation
glothriel May 28, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
83 changes: 80 additions & 3 deletions .github/workflows/docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
- '*'

jobs:
build-and-push:
controller:
runs-on: ubuntu-latest
timeout-minutes: 60

Expand All @@ -22,18 +22,95 @@ jobs:
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GHCR_PAT }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Docker meta
id: meta
uses: crazy-max/ghaction-docker-meta@v1
with:
images: ghcr.io/glothriel/wormhole
images: ghcr.io/glothriel/wormhole-controller

- name: Build image and push to GCR
uses: docker/build-push-action@v2
with:
context: .
build-args: |
USER_ID=1000
GROUP_ID=1000
VERSION=${{ steps.meta.outputs.tags }}
PROJECT=..
file: docker/goDockerfile
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}


wireguard:
runs-on: ubuntu-latest
timeout-minutes: 60

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v1

- name: Login to Github Packages
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Docker meta
id: meta
uses: crazy-max/ghaction-docker-meta@v1
with:
images: ghcr.io/glothriel/wormhole-wireguard

- name: Build image and push to GCR
uses: docker/build-push-action@v2
with:
context: docker
file: docker/wgDockerfile
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}


nginx:
runs-on: ubuntu-latest
timeout-minutes: 60

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v1

- name: Login to Github Packages
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Docker meta
id: meta
uses: crazy-max/ghaction-docker-meta@v1
with:
images: ghcr.io/glothriel/wormhole-nginx

- name: Build image and push to GCR
uses: docker/build-push-action@v2
with:
context: docker
file: docker/nginxDockerfile
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

19 changes: 17 additions & 2 deletions .github/workflows/integration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,23 @@ jobs:
- name: Check out repository code
uses: actions/checkout@v2

- name: Setup integration tests
uses: PiwikPRO/actions/go/setup/integration@master
- name: Install Go
uses: actions/setup-go@v4
with:
go-version: "1.22.x"

- name: Install Python
uses: actions/setup-python@v2
with:
python-version: "3.x"

- name: Install setuptools
shell: bash
run: pip install setuptools

- name: Install packages required for tests
shell: bash
run: cd tests && python setup.py develop

- name: Run integration tests
run: py.test -v --tb=short
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/unit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ jobs:

- name: Run linters
uses: PiwikPRO/actions/go/lint@master
with:
go-version: "1.22.x"


test:
Expand All @@ -23,3 +25,5 @@ jobs:

- name: Run unit tests
uses: PiwikPRO/actions/go/test@master
with:
go-version: "1.22.x"
14 changes: 12 additions & 2 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,23 @@ linters-settings:
lll:
line-length: 120

depguard:
rules:
Main:
list-mode: lax
files:
- $all
- "!$test"
deny:
- pkg: reflect
desc: Please don't use reflect package

linters:
disable-all: true
enable:
- revive
- ifshort
- staticcheck
- depguard
- gosec
- dogsled
- godox
Expand All @@ -30,11 +39,12 @@ linters:
- gofmt
- gocognit
- dupl
- depguard
- whitespace
- goconst
- unconvert

issues:
max-issues-per-linter: 0
max-same-issues: 0
exclude-use-default: false
exclude-use-default: false
23 changes: 0 additions & 23 deletions Dockerfile

This file was deleted.

Loading
Loading