Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
112 commits
Select commit Hold shift + click to select a range
315593c
remove old web
filipslezaklab Oct 14, 2025
93b0bb1
init project
filipslezaklab Oct 14, 2025
c9914fd
Update defguard-ui
filipslezaklab Oct 14, 2025
d6293e9
login layout
filipslezaklab Oct 14, 2025
6a6d6ab
login basic working
filipslezaklab Oct 15, 2025
b40c636
finish styling details tab
filipslezaklab Oct 17, 2025
b2c71f7
change pass modal wip
filipslezaklab Oct 19, 2025
c9311d2
change password modal functional
filipslezaklab Oct 20, 2025
ad6b51c
register totp and email mfa modals
filipslezaklab Oct 20, 2025
1e506ef
fix lint
filipslezaklab Oct 20, 2025
50dcfdb
Update lint-web.yml
filipslezaklab Oct 20, 2025
574e6fc
add webnext workflow deploying staging
filipslezaklab Oct 20, 2025
9ad9ce0
fix dockerfile
filipslezaklab Oct 20, 2025
54cdd5b
deploy staging after webnext build
filipslezaklab Oct 20, 2025
597326c
working totp register with recovery codes modal
filipslezaklab Oct 21, 2025
bccc629
totp and recovery login fixed redirects
filipslezaklab Oct 22, 2025
ee8673e
add email mfa and update auth profile card
filipslezaklab Oct 23, 2025
5447ff2
upgrade packages
filipslezaklab Oct 23, 2025
cc332b9
devices tab test table/grid
filipslezaklab Oct 28, 2025
6fe6040
add device modal update wip
filipslezaklab Oct 30, 2025
c1eb244
fix devices table accessor keys
filipslezaklab Oct 31, 2025
49688f4
update user devices tab
filipslezaklab Nov 2, 2025
eeb7972
add user profile auth keys tab
filipslezaklab Nov 3, 2025
a932c4d
add user api tokens tab
filipslezaklab Nov 4, 2025
296b1f7
users table update wip
filipslezaklab Nov 4, 2025
64a2cac
users page update
filipslezaklab Nov 5, 2025
001b4bd
autodeploy to new env
wojcik91 Nov 5, 2025
91481e2
add missing permission
wojcik91 Nov 5, 2025
902838e
fix job order
wojcik91 Nov 5, 2025
3943108
users list update
filipslezaklab Nov 5, 2025
8dd1907
users list update
filipslezaklab Nov 6, 2025
f68ecd2
add 404 route
filipslezaklab Nov 7, 2025
9f339e4
groups update
filipslezaklab Nov 7, 2025
63323c5
add user modal update
filipslezaklab Nov 7, 2025
afbe476
squash style bugfixes
filipslezaklab Nov 7, 2025
bb6ffec
fix add missing location icon
filipslezaklab Nov 7, 2025
9cbad1d
upgrade web packages
filipslezaklab Nov 7, 2025
4ddb5d3
update users list actions
filipslezaklab Nov 10, 2025
4e41f45
reuse add group modal for edit
filipslezaklab Nov 10, 2025
07efc7f
add side bar nav
filipslezaklab Nov 10, 2025
defbef5
openid client page update
filipslezaklab Nov 11, 2025
a56db18
add webhooks page
filipslezaklab Nov 12, 2025
49a3dc3
tables update
filipslezaklab Nov 12, 2025
011a567
allow nulls in input
filipslezaklab Nov 12, 2025
2bb4a17
table selection update
filipslezaklab Nov 13, 2025
6a72dcc
add openid app consent page
filipslezaklab Nov 13, 2025
2b5444c
add network devices page
filipslezaklab Nov 14, 2025
9ba430c
add network device modal
filipslezaklab Nov 18, 2025
dc49b52
network devices update
filipslezaklab Nov 19, 2025
6d13a63
add locations page
filipslezaklab Nov 20, 2025
e5fa2ea
remove backdrop close from base modal
filipslezaklab Nov 20, 2025
867e2de
add locations overview page
filipslezaklab Nov 21, 2025
9906e7a
update locations overview
filipslezaklab Nov 24, 2025
7586844
overview add locations summary section
filipslezaklab Nov 24, 2025
9d2a995
add overview location details page
filipslezaklab Nov 24, 2025
3c82952
add active devices table to location overview page
filipslezaklab Nov 25, 2025
9c1ee89
add gateway setup modal, gateways status floating
filipslezaklab Nov 26, 2025
c4b0a5f
fix: overview period option label missing h
filipslezaklab Nov 26, 2025
f88ea52
fix: empty state for location overview network devices table
filipslezaklab Nov 26, 2025
5abdbed
add location by wizard flow
filipslezaklab Nov 28, 2025
18fb696
add edit location page
filipslezaklab Dec 1, 2025
c4282b3
update edit location
filipslezaklab Dec 2, 2025
3db0973
update location wizard
filipslezaklab Dec 2, 2025
5bbec44
fix login with normal account
filipslezaklab Dec 3, 2025
935b799
add auto gateway setup startup on location page
filipslezaklab Dec 3, 2025
3e193af
add settings page
filipslezaklab Dec 4, 2025
f047486
add smtp settings page
filipslezaklab Dec 5, 2025
c3ec10d
fix openid consent route when session is unauthorized
filipslezaklab Dec 5, 2025
a1784f5
settings update
filipslezaklab Dec 8, 2025
fe224c9
add client behavior settings interactive
filipslezaklab Dec 9, 2025
cc69599
add external openid index page
filipslezaklab Dec 9, 2025
284c06b
add openid provider wizard page
filipslezaklab Dec 10, 2025
5acf10d
add google provider directory sync form
filipslezaklab Dec 12, 2025
793dff4
add rest of directory sync forms
filipslezaklab Dec 12, 2025
8f0e082
add app info conditions to settings
filipslezaklab Dec 12, 2025
2cf5b8e
fix add external openid nav
filipslezaklab Dec 15, 2025
1953346
add edit google provider
filipslezaklab Dec 15, 2025
139e211
add microsoft,okta,jumpcloud,custom providers for edit provider page
filipslezaklab Dec 15, 2025
61674ce
disable add device in profile when no network is configured
filipslezaklab Dec 15, 2025
31cde22
fix disable email mfa
filipslezaklab Dec 15, 2025
a1e7d46
fix table top layout positioning on profile devices
filipslezaklab Dec 15, 2025
0348c63
fix openid consent redirect after login
filipslezaklab Dec 15, 2025
cd9e038
expand location overview card by default
filipslezaklab Dec 15, 2025
ba5378a
add empty state for overview card component when statistics are 0
filipslezaklab Dec 15, 2025
406d2aa
refactor auth / login logic
filipslezaklab Dec 16, 2025
0fd5363
fix basic login zod schema
filipslezaklab Dec 16, 2025
083a5a6
Webnext e2e (#1750)
jakub-tldr Dec 16, 2025
1625dc3
add empty aliases page
filipslezaklab Dec 16, 2025
d3850ed
aliases update
filipslezaklab Dec 17, 2025
4e84be7
change field ordering in location wizard
filipslezaklab Dec 17, 2025
59f7a8b
display rules in alias table
filipslezaklab Dec 17, 2025
8efba66
add alias table action menu
filipslezaklab Dec 17, 2025
986df3f
add search to deployed aliases
filipslezaklab Dec 17, 2025
0f45124
add rules page
filipslezaklab Dec 18, 2025
16fd926
add ce page for acl rule
filipslezaklab Dec 18, 2025
ff85281
update ce rule form
filipslezaklab Dec 22, 2025
078e7dd
update rule ce page
filipslezaklab Dec 29, 2025
003d77d
add table header
filipslezaklab Dec 30, 2025
3ba86eb
table resizing demo
filipslezaklab Dec 31, 2025
1889cb3
upgrade table resizing
filipslezaklab Jan 2, 2026
6c71bd2
settings add license tab content
filipslezaklab Jan 5, 2026
6356a6c
Update defguard-ui
filipslezaklab Jan 5, 2026
fd35559
add activity log page
filipslezaklab Jan 5, 2026
c89a2e2
update settings license tab badge variant
filipslezaklab Jan 5, 2026
64b4534
fix external login style
filipslezaklab Jan 6, 2026
01000ee
update external provider login layout
filipslezaklab Jan 6, 2026
db20929
add missing oauth callback route
filipslezaklab Jan 6, 2026
fcb1a2f
refactor auth redirects
filipslezaklab Jan 7, 2026
0cd23b2
Enrollment, OIDC, ACL tests (#1789)
jakub-tldr Jan 7, 2026
1460b1b
Fix modal (#1791)
jakub-tldr Jan 7, 2026
f1b26e4
add static license informations
filipslezaklab Jan 7, 2026
c9abfb6
Delete webnext-deployment.yml
filipslezaklab Jan 7, 2026
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
  •  
  •  
  •  
3 changes: 0 additions & 3 deletions .cargo/config.toml

This file was deleted.

3 changes: 3 additions & 0 deletions .github/workflows/lint-web.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ jobs:
run: |
npm i -g npm pnpm
pnpm i --frozen-lockfile
- name: Build
working-directory: ./web
run: pnpm build
- name: Lint
working-directory: ./web
run: pnpm run lint
Expand Down
2 changes: 1 addition & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
url = ../proto.git
[submodule "web/src/shared/defguard-ui"]
path = web/src/shared/defguard-ui
url = ../ui.git
url = [email protected]:DefGuard/ui.git
4 changes: 1 addition & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
FROM public.ecr.aws/docker/library/node:24 AS web

WORKDIR /app
COPY web/package.json web/pnpm-lock.yaml web/.npmrc ./
COPY web/package.json web/pnpm-lock.yaml ./
RUN npm i -g pnpm
RUN pnpm install --ignore-scripts --frozen-lockfile
COPY web/ .
RUN pnpm run generate-translation-types
RUN pnpm build

FROM public.ecr.aws/docker/library/rust:1 AS chef
Expand All @@ -31,7 +30,6 @@ RUN cargo chef cook --release --recipe-path recipe.json

# build project
COPY --from=web /app/dist ./web/dist
COPY web/src/shared/images/svg ./web/src/shared/images/svg
RUN apt-get update && apt-get -y install protobuf-compiler libprotobuf-dev
COPY Cargo.toml Cargo.lock ./
# for vergen
Expand Down
28 changes: 28 additions & 0 deletions e2e/config.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { table } from 'console';
import { User } from './types';
import { mergeObjects } from './utils/utils';

Expand Down Expand Up @@ -29,6 +30,25 @@ export const testsConfig: TestsConfig = mergeObjects(envConfig, defaultConfig);
export const routes = {
base: testsConfig.BASE_URL,
me: '/me',
profile: '/user/',
tab: {
details: '?tab=details',
devices: '?tab=devices',
authentication_keys: '?tab=auth-keys',
api_tokens: '?tab=api-tokens',
},
firewall: {
rules: '/acl/rules',
aliases: '/acl/aliases',
},
locations: '/locations',
network_devices: '/network-devices',
openid_apps: '/openid',
webhooks: '/webhooks',
identity: {
users: '/users',
groups: '/groups',
},
consent: '/consent',
addDevice: '/add-device',
auth: {
Expand All @@ -37,6 +57,14 @@ export const routes = {
recovery: '/auth/mfa/recovery',
email: '/auth/mfa/email',
},
settings: {
base: '/settings',
smtp: '/settings/smtp',
openid: '/settings/openid',
tab: {
openid: '/settings?tab=openid',
},
},
admin: {
wizard: '/admin/wizard',
users: '/admin/users',
Expand Down
32 changes: 32 additions & 0 deletions e2e/tests/acl.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
import { expect, test } from '@playwright/test';

import { defaultUserAdmin, routes } from '../config';
import { Protocols } from '../types';
import { createAlias } from '../utils/acl';
import { loginBasic } from '../utils/controllers/login';
import { dockerRestart } from '../utils/docker';

test.describe('Test aliases', () => {
// let testUser: User;

test.beforeEach(() => {
dockerRestart();
// testUser = { ...testUserTemplate, username: 'test' };
});

test('Create alias and check content', async ({ page, browser }) => {
const name = 'TestAlias';
const addresses = ['1.2.3.4/24', '10.10.10.10/20', '1.2.4.2'];
const ports = ['80', '443'];
const protocols = [Protocols.UDP, Protocols.ICMP];
await createAlias(browser, name, addresses, ports, protocols);
await loginBasic(page, defaultUserAdmin);
await page.goto(routes.base + routes.firewall.aliases);
const aliasRow = await page.locator('.virtual-row').filter({ hasText: name });
await expect(aliasRow).toBeVisible();
await expect(aliasRow).toContainText(addresses.join(', '));
await expect(aliasRow).toContainText(ports.join(', '));
await expect(aliasRow).toContainText(Protocols.UDP);
await expect(aliasRow).toContainText(Protocols.ICMP);
});
});
Loading