Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
4da3b8a
bump version to 1.5.0
wojcik91 Jul 14, 2025
bf26e76
add support for per location MFA settings (#124)
wojcik91 Jul 17, 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
e01bb69
Merge pull request #158 from DefGuard/release/1.5-alpha
wojcik91 Sep 10, 2025
d289d46
update defguard_version dependency (#160)
j-chmielewski Sep 11, 2025
78fe261
update mobile app apple store link (#161)
filipslezaklab Sep 11, 2025
9484f8e
Return whether core is connected (#163)
t-aleksander Sep 11, 2025
996cdb2
chore(CI): update node version in release workflow (#165)
wojcik91 Sep 15, 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
21 changes: 15 additions & 6 deletions .github/workflows/lint-web.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,29 @@ 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, Linux, X64]
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: 24
Expand Down
32 changes: 27 additions & 5 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 All @@ -105,14 +109,12 @@ jobs:
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 9
version: 10

- name: Use Node.js 20
- name: Use Node.js 24
uses: actions/setup-node@v4
with:
node-version: 20
cache: "pnpm"
cache-dependency-path: ./web/pnpm-lock.yaml
node-version: 24

- name: Install frontend dependencies
run: pnpm install --ignore-scripts --frozen-lockfile
Expand Down Expand Up @@ -168,6 +170,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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@
.direnv/
.envrc
/node_modules
.env
Loading
Loading