Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
50f4bc3
Handle admin device management flag (#116)
wojcik91 Jun 12, 2025
707761e
Use configured external OIDC Provider for 2FA in client (#119)
t-aleksander Jun 25, 2025
9e02b99
bind address (#120)
t-aleksander Jun 30, 2025
a37bd1a
Merge branch 'dev' into post_1.4_merger
wojcik91 Jul 2, 2025
597d014
update protos
wojcik91 Jul 2, 2025
56828d5
Merge pull request #123 from DefGuard/post_1.4_merger
wojcik91 Jul 2, 2025
4da3b8a
bump version to 1.5.0
wojcik91 Jul 14, 2025
bf26e76
add support for per location MFA settings (#124)
wojcik91 Jul 17, 2025
beb9d14
fix: openid mfa callback page rwd (#126)
filipslezaklab Jul 22, 2025
dd5307f
integrate ui module (#127)
filipslezaklab Jul 24, 2025
e522a4a
Merge branch 'dev' into release/1.5-alpha
wojcik91 Jul 24, 2025
527d24a
Fix font files (#129)
filipslezaklab Jul 24, 2025
2fedbfb
update routes on backend (#132)
filipslezaklab Jul 25, 2025
09c1cd2
Add AMI building to the release pipeline (#130)
t-aleksander Jul 25, 2025
e43ae40
add mobile client links
filipslezaklab Jul 29, 2025
72ea30c
update copyright paragraph
filipslezaklab Jul 30, 2025
7f35bb0
mobile mfa poc (#134)
filipslezaklab Aug 5, 2025
1867655
verify biometry register request data (#135)
filipslezaklab Aug 7, 2025
5cb9e2d
add eu central region (#136)
t-aleksander Aug 11, 2025
77a1ea7
sign Docker images using Cosign (#137)
wojcik91 Aug 11, 2025
bcd71ea
setup AWS CodeBuild for GitHub Actions (#139)
wojcik91 Aug 14, 2025
29059aa
Tonic 14 (#140)
moubctez Aug 18, 2025
67e2351
Desktop MFA mobile approve (#138)
filipslezaklab Aug 21, 2025
d1b9a2e
Version exchange and logging (#133)
j-chmielewski Aug 22, 2025
45cbaf6
Scan images with Trivy (#142)
moubctez Aug 25, 2025
c25bd84
add code based mfa setup (#141)
filipslezaklab Aug 26, 2025
ecce9f8
Version check (#143)
j-chmielewski Aug 28, 2025
1fc7e49
handle new enrollment configuration (#145)
filipslezaklab Aug 29, 2025
c8a66ac
dont compare version build metadata (#146)
j-chmielewski Aug 29, 2025
e685c61
switch ami to debian (#144)
t-aleksander Aug 29, 2025
f565cd4
Update dependencies (#147)
moubctez Aug 29, 2025
02ab146
Update tracing_subscriber (#149)
moubctez Sep 1, 2025
88d4a5a
add deep link to openid enroll (#150)
filipslezaklab Sep 1, 2025
192b53b
Return defguard version (proxy, core) in http headers (#151)
t-aleksander Sep 1, 2025
392d285
Fix ami building (#152)
t-aleksander Sep 2, 2025
1473aaa
Better WebSocket handling and build with newer defguard_version (#154)
moubctez Sep 4, 2025
9a174eb
update messages in openid callback setup page (#155)
filipslezaklab Sep 4, 2025
247af1f
Update defguard-version version (#156)
t-aleksander Sep 5, 2025
56e7204
pre release 1.5 cleanup (#157)
wojcik91 Sep 10, 2025
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
12 changes: 12 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
root = true

[*.{rs,sql,toml}]
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
end_of_line = lf

[*.{rs}]
indent_style = tab
indent_size = 4
rulers = 100
8 changes: 8 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
*.eot -text
*.ttf -text
*.woff -text
*.woff2 -text
*.png -text
*.pdf -text
*.jpeg -text
*.webm -text
41 changes: 41 additions & 0 deletions .github/workflows/build-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ jobs:
- self-hosted
- Linux
- ${{ matrix.runner }}

strategy:
matrix:
cpu: [arm64, amd64]
Expand All @@ -31,23 +32,31 @@ jobs:
- cpu: amd64
runner: X64
tag: amd64

permissions:
contents: read
packages: write

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:
Expand All @@ -59,10 +68,30 @@ jobs:
cache-from: type=gha
cache-to: type=gha,mode=max

- name: Scan image with Trivy
uses: aquasecurity/trivy-action@0.32.0
with:
image-ref: "${{ env.GHCR_REPO }}:${{ github.sha }}-${{ matrix.tag }}"
format: "table"
exit-code: "1"
ignore-unfixed: true
vuln-type: "os,library"
severity: "CRITICAL,HIGH,MEDIUM"

docker-manifest:
runs-on: [self-hosted, Linux]

permissions:
contents: read
packages: write
id-token: write # needed for signing the images with GitHub OIDC Token

needs: [build-docker]

steps:
- name: Install Cosign
uses: sigstore/cosign-installer@v3.9.2

- name: Docker meta
id: meta
uses: docker/metadata-action@v5
Expand All @@ -71,12 +100,14 @@ jobs:
${{ env.GHCR_REPO }}
flavor: ${{ inputs.flavor }}
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 }}'
Expand All @@ -86,3 +117,13 @@ jobs:
docker manifest create ${tag} ${{ env.GHCR_REPO }}:${{ github.sha }}-amd64 ${{ env.GHCR_REPO }}:${{ github.sha }}-arm64
docker manifest push ${tag}
done

- name: Sign the images with GitHub OIDC Token
run: |
images='${{ env.GHCR_REPO }}:${{ github.sha }} ${{ steps.meta.outputs.tags }}'
cosign sign --yes ${images}

- name: Verify image signatures
run: |
images='${{ env.GHCR_REPO }}:${{ github.sha }} ${{ steps.meta.outputs.tags }}'
cosign verify ${images} --certificate-oidc-issuer https://token.actions.githubusercontent.com --certificate-identity-regexp="https://github.com/DefGuard/proxy" -o text
23 changes: 16 additions & 7 deletions .github/workflows/lint-web.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,23 +5,32 @@ on:
branches:
- main
- dev
paths:
- "web/**"
- 'release/**'
paths-ignore:
- "*.md"
- "LICENSE"
pull_request:
branches:
- main
- dev
paths:
- "web/**"
- 'release/**'
paths-ignore:
- "*.md"
- "LICENSE"

jobs:
lint-web:
runs-on: self-hosted
runs-on:
- codebuild-defguard-proxy-runner-${{ github.run_id }}-${{ github.run_attempt }}

steps:
- uses: actions/checkout@v4
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
- uses: actions/setup-node@v4
with:
node-version: 20
node-version: 24
- name: install deps
working-directory: ./web
run: |
Expand Down
24 changes: 24 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,10 @@ jobs:
target: ${{ matrix.target }}
override: true

- name: Setup `packer`
uses: hashicorp/setup-packer@main
id: setup

- name: Set up Docker BuildX
uses: docker/setup-buildx-action@v3
with:
Expand Down Expand Up @@ -168,6 +172,26 @@ jobs:
asset_name: defguard-proxy-${{ env.VERSION }}-${{ matrix.target }}.deb
asset_content_type: application/octet-stream

- name: Run `packer init`
if: matrix.build == 'linux' && matrix.arch == 'amd64'
id: init
run: "packer init ./images/ami/proxy.pkr.hcl"

- name: Build AMI images for multiple regions
if: matrix.build == 'linux' && matrix.arch == 'amd64'
run: |
regions=(us-east-1 eu-west-1 ap-northeast-1 eu-central-1)
for region in "${regions[@]}"; do
echo "Building AMI for region: $region"
echo "Running packer validate for $region..."
packer validate --var "package_version=${{ env.VERSION }}" --var "region=$region" ./images/ami/proxy.pkr.hcl
echo "Building AMI image for $region..."
packer build -color=false -on-error=abort --var "package_version=${{ env.VERSION }}" --var "region=$region" ./images/ami/proxy.pkr.hcl
done
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}

- name: Build RPM package
if: matrix.build == 'linux'
uses: bpicode/github-action-fpm@master
Expand Down
11 changes: 8 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,15 @@ on:
branches:
- main
- dev
- 'release/**'
paths-ignore:
- "*.md"
- "LICENSE"
pull_request:
branches:
- main
- dev
- 'release/**'
paths-ignore:
- "*.md"
- "LICENSE"
Expand All @@ -21,8 +23,9 @@ env:

jobs:
test:
runs-on: [self-hosted, Linux, X64]
container: rust:1
runs-on:
- codebuild-defguard-proxy-runner-${{ github.run_id }}-${{ github.run_attempt }}
container: public.ecr.aws/docker/library/rust:1

steps:
- name: Debug
Expand All @@ -44,6 +47,8 @@ jobs:
rustup component add clippy
cargo clippy --all-targets --all-features -- -D warnings
- name: Run cargo deny
uses: EmbarkStudios/cargo-deny-action@v2
run: |
cargo install cargo-deny
cargo deny check
- name: Run tests
run: cargo test --locked --no-fail-fast
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/target
/.idea
/*.local
.direnv/
.envrc
/node_modules
.env
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
[submodule "proto"]
path = proto
url = ../proto.git
[submodule "web/src/shared/defguard-ui"]
path = web/src/shared/defguard-ui
url = git@github.com:DefGuard/ui.git
Loading
Loading