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

merge dev -> main #815

Merged
merged 92 commits into from
Oct 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
92 commits
Select commit Hold shift + click to select a range
132994d
#480 Docs for rest api (#667)
cpprian Jul 10, 2024
886aca1
Docs for rest api - /device endpoints (#672)
cpprian Jul 12, 2024
4f54487
update defguard logo in email template (#686)
cpprian Jul 25, 2024
088c267
Defguard log level should be set for tower httptrace logs (#693)
cpprian Aug 2, 2024
e98073c
chore(deps): bump braces from 3.0.2 to 3.0.3 in /web + readme update …
dependabot[bot] Aug 3, 2024
7f1cd84
chore: updated actions to use the correct runner (#695)
t-aleksander Aug 3, 2024
8470a83
fix: fix pnpm lockfile (#696)
t-aleksander Aug 3, 2024
aa3a055
Fixes in the enrollment process (#687)
cpprian Aug 4, 2024
6e0a205
feat: Add external OpenID login (#676)
t-aleksander Aug 5, 2024
6709008
impl gRPC health service (#700)
cpprian Aug 6, 2024
849f1db
Prepare the database for licenses (#710)
t-aleksander Aug 9, 2024
05696c3
Logs in critical places (#707)
cpprian Aug 9, 2024
83c2034
Add CI linting on dev branch (#713)
j-chmielewski Aug 12, 2024
a733fdd
add version
cpprian Jul 10, 2024
61a566e
print only version
cpprian Jul 11, 2024
98fdcd7
swap auth-secret-key to default
cpprian Jul 11, 2024
6219237
Fix: e-mail MFA code verification (#714)
moubctez Aug 12, 2024
e6fda16
Update logo in emails (#699)
cpprian Aug 12, 2024
affe076
add toaster Too many bad login attempts (#711)
cpprian Aug 12, 2024
8aa3d23
fix: fix a loop when logging in through external openid (#720)
t-aleksander Aug 13, 2024
17307d6
add debugs logs for enrollment process (#708)
cpprian Aug 13, 2024
bd3de9d
Fix: TOTP (#722)
moubctez Aug 13, 2024
52f2bff
feat: Enterprise license (#709)
t-aleksander Aug 15, 2024
36d26d6
Implement new token for gateway in location (#721)
cpprian Aug 15, 2024
6b5c343
Build FreeBSD package
moubctez Aug 14, 2024
91cd445
Fix copy-paste typos
moubctez Aug 14, 2024
c16ce6e
Use newer rust and postgres for tests
moubctez Aug 14, 2024
c5b831d
fix: fix e2e pnpm lockfile (#730)
t-aleksander Aug 15, 2024
b381cf6
Build multi-arch (#481)
moubctez Aug 15, 2024
fd1fa1d
Unclog E2E and dev deployment
moubctez Aug 15, 2024
046e252
CI: fix architecutre; do not build for armv7 anymore
moubctez Aug 16, 2024
a8e4e93
Add git commit SHA to version string
moubctez Aug 15, 2024
6317173
fix: fix "current" workflow (#732)
t-aleksander Aug 16, 2024
a3d1f78
Manifest tag fix
moubctez Aug 19, 2024
adb707e
Manifest tag fix, take 2
moubctez Aug 19, 2024
eb7c9d2
Manifest tag fix, take 3
moubctez Aug 19, 2024
5e69037
Manifest tag fix, take 4
moubctez Aug 19, 2024
35f0fa1
feat: enterprise behavior settings (#715)
j-chmielewski Aug 21, 2024
b781162
Prepare the license feature for the experimental version (#734)
t-aleksander Aug 21, 2024
3cf89b2
Build multi-arch with --amend
moubctez Aug 21, 2024
3ef6cce
Merge branch 'dev' of github.com:DefGuard/defguard into dev
moubctez Aug 21, 2024
8357c7a
Rename tab "Behavior" -> "Enterprise features"
j-chmielewski Aug 21, 2024
74a7a26
Refetch enterprise settings on window focus
j-chmielewski Aug 21, 2024
acb4a6c
fix: remove enterprise settings toast (#737)
t-aleksander Aug 22, 2024
d5f95a6
change username creation logic
t-aleksander Aug 22, 2024
afa822a
refactor
t-aleksander Aug 22, 2024
58efdff
Mfa code email reformat (#743)
cpprian Aug 26, 2024
f19afb0
Fix email footer (#748)
cpprian Aug 27, 2024
aa98b84
update max overdue time
t-aleksander Aug 28, 2024
f5824cf
display license info
t-aleksander Aug 29, 2024
7ecf279
eslint fix
t-aleksander Aug 29, 2024
d852dbd
add version
t-aleksander Aug 29, 2024
e81c2f7
fix constraints
t-aleksander Aug 29, 2024
27555c7
enterprise_enabled -> state.enterprise_status?.enabled
t-aleksander Aug 29, 2024
0799ecf
fix: remove devices from network when deleting a user (#754)
t-aleksander Aug 29, 2024
3cddaf5
add link to documentation (#757)
cpprian Aug 29, 2024
bab17ef
Add link to documentation in use enrollment process (#760)
cpprian Aug 30, 2024
4feb19c
Unable to delete configuration for ldap and smtp when it is configure…
cpprian Aug 30, 2024
c300343
fix bugs in global settings page (#761)
cpprian Sep 2, 2024
72dc6bb
fix: update license server url, set timeout (#762)
t-aleksander Sep 2, 2024
809d34b
feat: disable showing manual wireguard configuration (#763)
t-aleksander Sep 3, 2024
6ac6ece
fix e2e tests (#768)
t-aleksander Sep 3, 2024
9f25e4e
fix log message (#771)
t-aleksander Sep 4, 2024
645b061
Change public key, extract signing keys (#773)
t-aleksander Sep 4, 2024
eed66fd
Code cleanup (#775)
moubctez Sep 5, 2024
70fd3fc
Display warning modal when trying to change the username or email (#777)
t-aleksander Sep 5, 2024
63f9474
add more tests (#778)
t-aleksander Sep 6, 2024
2b9a7eb
Add korean translation (#781)
hwiorn Sep 6, 2024
a56b45a
fix phrasing (#782)
t-aleksander Sep 6, 2024
15eb55c
generate localization types (#784)
t-aleksander Sep 6, 2024
bb451e7
feat: config polling (#758)
j-chmielewski Sep 6, 2024
62b3f73
CI: fix re-creating manifests
moubctez Sep 9, 2024
4c1da76
chore: more logs for enrollment process (#786)
j-chmielewski Sep 9, 2024
48a6a64
feat: Display license status (#787)
t-aleksander Sep 9, 2024
678ce78
feat: add option to prevent routing all traffic through the vpn (#765)
t-aleksander Sep 10, 2024
29458c1
match users logging in through openid by the sub claim (#788)
t-aleksander Sep 12, 2024
9eef915
Rework instance config fetching (#791)
t-aleksander Sep 13, 2024
260bf45
Generate polling token on instance update (#793)
t-aleksander Sep 17, 2024
e894a4a
Quick fixes (#795)
moubctez Sep 17, 2024
77deb94
change the behavior of the username change warning modal (#798)
t-aleksander Sep 18, 2024
d5df807
fix dns regex check (#799)
t-aleksander Sep 19, 2024
3544ee4
fix: restore group fetching on the user edit page, update urls (#802)
t-aleksander Sep 23, 2024
2fdd82c
Database model with type states (#750)
moubctez Oct 3, 2024
68af406
Add nix flake
j-chmielewski Sep 24, 2024
d82f783
fix: Change enterprise setting phrasing and remove the ability to clo…
t-aleksander Oct 7, 2024
ecd38c7
feat(CI): enable armv7 docker builds (#813)
wojcik91 Oct 7, 2024
7162466
Enterprise license
teon Oct 9, 2024
c8b4d6a
Merge branch 'main' into fix-readme
t-aleksander Oct 9, 2024
4b2a44a
trigger build
t-aleksander Oct 9, 2024
88bf508
Enterprise license info in the AGPL license
teon Oct 9, 2024
b71b6e2
Merge branch 'dev' into fix-readme
t-aleksander Oct 9, 2024
62a448f
align dev with main
t-aleksander Oct 9, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 0 additions & 1 deletion .fpm
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
-s dir
--name defguard
--architecture x86_64
--description "defguard core service"
--url "https://defguard.net/"
--maintainer "teonite"
86 changes: 86 additions & 0 deletions .github/workflows/build-docker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
name: Build Docker image

on:
workflow_call:
inputs:
tags:
description: "List of tags as key-value pair attributes"
required: false
type: string

env:
GHCR_REPO: ghcr.io/defguard/defguard

jobs:
build-docker:
runs-on:
- self-hosted
- Linux
- ${{ matrix.runner }}
strategy:
matrix:
cpu: [arm64, amd64, arm/v7]
include:
- cpu: arm64
runner: ARM64
tag: arm64
- cpu: amd64
runner: X64
tag: amd64
- cpu: arm/v7
runner: ARM
tag: armv7
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
- name: Login to GitHub container registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
with:
buildkitd-config-inline: |
[registry."docker.io"]
mirrors = ["dockerhub-proxy.teonite.net"]
- name: Build container
uses: docker/build-push-action@v5
with:
context: .
platforms: linux/${{ matrix.cpu }}
provenance: false
push: true
tags: "${{ env.GHCR_REPO }}:${{ github.sha }}-${{ matrix.tag }}"
cache-from: type=gha
cache-to: type=gha,mode=max

docker-manifest:
runs-on: [self-hosted, Linux]
needs: [build-docker]
steps:
- name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
images: |
${{ env.GHCR_REPO }}
tags: ${{ inputs.tags }}
- name: Login to GitHub container registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Create and push manifests
run: |
tags='${{ env.GHCR_REPO }}:${{ github.sha }} ${{ steps.meta.outputs.tags }}'
for tag in ${tags}
do
docker manifest rm ${tag} || true
docker manifest create ${tag} ${{ env.GHCR_REPO }}:${{ github.sha }}-amd64 ${{ env.GHCR_REPO }}:${{ github.sha }}-arm64 ${{ env.GHCR_REPO }}:${{ github.sha }}-armv7
docker manifest push ${tag}
done
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@ env:

jobs:
test:
runs-on: [self-hosted, Linux]
container: rust:1.77
runs-on: [self-hosted, Linux, X64]
container: rust:1

services:
postgres:
image: postgres:14-alpine
image: postgres:15-alpine
env:
POSTGRES_DB: defguard
POSTGRES_USER: defguard
Expand Down
57 changes: 15 additions & 42 deletions .github/workflows/current.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,50 +5,23 @@ on:
- main
- dev
paths-ignore:
- '*.md'
- 'LICENSE'
- "*.md"
- "LICENSE"

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
build-docker:
runs-on: [self-hosted, Linux]
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
- name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
images: |
ghcr.io/defguard/defguard
tags: |
type=raw,value=current
type=ref,event=branch
type=sha
- name: Login to GitHub container registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
with:
buildkitd-config-inline: |
[registry."docker.io"]
mirrors = ["dockerhub-proxy.teonite.net"]
- name: Build container
uses: docker/build-push-action@v5
with:
context: .
platforms: linux/amd64
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max
build-current:
uses: ./.github/workflows/build-docker.yml
with:
tags: |
type=raw,value=current
type=ref,event=branch
type=sha

trigger-e2e:
needs: build-docker
needs: build-current
uses: ./.github/workflows/e2e.yml
secrets: inherit
4 changes: 2 additions & 2 deletions .github/workflows/dev-deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:

jobs:
deploy-dev:
runs-on: [self-hosted, Linux]
runs-on: [self-hosted, Linux, X64]
environment: DEV
if: ${{ github.event_name != 'pull_request' && github.ref_name == 'dev' }}
env:
Expand All @@ -15,6 +15,6 @@ jobs:
- name: Add SHORT_SHA env variable
run: echo "SHORT_SHA=`echo ${GITHUB_SHA} | cut -c1-7`" >> $GITHUB_ENV
- name: Deploy new image version
uses: actions-hub/[email protected].0
uses: actions-hub/[email protected].3
with:
args: --namespace defguard-dev set image deployment/defguard defguard=ghcr.io/defguard/defguard:sha-${{ env.SHORT_SHA }}
29 changes: 4 additions & 25 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,45 +15,24 @@ env:

jobs:
rustdoc:
runs-on: [self-hosted, Linux]
container: rust:1.77
services:
postgres:
image: postgres:15-alpine
env:
POSTGRES_DB: defguard
POSTGRES_USER: defguard
POSTGRES_PASSWORD: defguard
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5

runs-on: [self-hosted, Linux, X64]
container: rust:1-slim
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive

- name: Set database URL
run: sed -i -e 's,localhost,postgres,' .env

- name: Install protoc
run: apt-get update && apt-get -y install protobuf-compiler

- name: Build Docs
env:
DEFGUARD_DB_HOST: postgres
DEFGUARD_DB_PORT: 5432
DEFGUARD_DB_NAME: defguard
DEFGUARD_DB_USER: defguard
DEFGUARD_DB_PASSWORD: defguard
SQLX_OFFLINE: true
run: cargo doc --all --no-deps
run: cargo doc --no-deps --workspace

- name: Deploy Docs
uses: peaceiris/actions-gh-pages@v3
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_branch: gh-pages
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:

jobs:
test:
runs-on: [self-hosted, Linux]
runs-on: [self-hosted, Linux, X64]
steps:
- uses: actions/checkout@v4
- name: Set up Docker Buildx
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/lint-e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,24 @@ on:
push:
branches:
- main
- dev
paths:
- "e2e/**"
pull_request:
branches:
- main
- dev
paths:
- "e2e/**"

jobs:
lint-e2e:
runs-on: [self-hosted, Linux]
runs-on: [self-hosted, Linux, X64]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 19
node-version: 20
- name: install deps
working-directory: ./e2e
run: |
Expand Down
8 changes: 5 additions & 3 deletions .github/workflows/lint-web.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,26 @@ on:
push:
branches:
- main
- dev
paths:
- "web/**"
pull_request:
branches:
- main
- dev
paths:
- "web/**"

jobs:
lint-web:
runs-on: [self-hosted, Linux]
runs-on: [self-hosted, Linux, X64]
steps:
- uses: actions/checkout@v4
with:
submodules: 'recursive'
submodules: "recursive"
- uses: actions/setup-node@v4
with:
node-version: 19
node-version: 20
- name: install deps
working-directory: ./web
run: |
Expand Down
Loading
Loading