Commit Graph

42 Commits

Author SHA1 Message Date
Domingo Dirutigliano
2c3316b036
Harden the no-auth reverse-proxy mode
Rename the flag to --unsafe-disable-auth so the risk is visible at the call
site, and close the ways the mode could outlive itself:

- Keep an explicit -P/--startup-psw instead of dropping it. Without a password
  in the database, --no-unsafe-disable-auth brought firegex up in its
  initial-setup state, where anyone able to reach it could choose the password.
- Refuse /api/login, /api/set-password and /api/change-password while
  authentication is disabled: an anonymous caller could otherwise plant a
  credential that kept working once authentication was turned back on.
  run.py config --password still works, writing to the database from the host.
- Print a banner on every start/restart with authentication disabled. The flag
  is persisted in the config file, so a later bare `run.py start` inherits it.
- Report the change in `run.py config --unsafe-disable-auth`, which claimed
  "No configuration changes specified" while persisting it, and stop that
  command from nulling the stored port and host on the way.
- Expose the state as auth_disabled in /api/status and hide the logout button
  and the change-password entry, which were silent no-ops in this mode.

Tests cover both directions of the toggle, the socket.io handler, the password
endpoints and the -P handling.
2026-09-03 01:07:51 +02:00
Domingo Dirutigliano
be7f46424a
Merge branch 'main' into feat/tls-support 2026-07-23 13:40:19 +02:00
Domingo Dirutigliano
c37d2b31e8
graphics and TLS feature total refactoring 2026-07-23 13:39:01 +02:00
Domingo Dirutigliano
53656d531c
minor fixes and integrated test 2026-07-22 15:10:31 +02:00
Minei3oat
f3024cc9a8 Invalidate cache on login 2025-10-03 00:58:55 +02:00
Minei3oat
753ed241b6 Clear password fields after submit 2025-10-03 00:58:34 +02:00
Minei3oat
0c5a681f5b Reconnect to websocket on access_token change 2025-10-02 23:10:26 +02:00
Domingo Dirutigliano
78166cdae3
removing -dom from react-router 2025-07-28 19:00:12 +02:00
Domingo Dirutigliano
97b3d97753
using zustand for localStorage data, fixed socketio on login 2025-07-28 16:01:41 +02:00
Domingo Dirutigliano
b924991afd fix websocket connection 2025-07-06 17:42:59 +02:00
Domingo Dirutigliano
a109ee8067
websocket fix + starting firegex as root if capsh fails 2025-04-12 22:15:08 +02:00
Domingo Dirutigliano
8ae533e8f7
push: code changes x2 2025-02-28 21:14:09 +01:00
Domingo Dirutigliano
6a11dd0d16
push: code changes 2025-02-25 23:53:04 +01:00
Domingo Dirutigliano
8652f40235
nfproxy module writing: written part of the firegex lib, frontend refactored and improved, c++ improves 2025-02-20 19:51:28 +01:00
Domingo Dirutigliano
2fb77a348f
removed fastapi_socketio + general improves 2025-02-12 01:16:10 +01:00
Domingo Dirutigliano
2d8f19679f
nfqueue to hyperscan and stream match, removed proxyregex 2025-02-02 19:54:42 +01:00
Domingo Dirutigliano
cbf2c5a43d
add: frontend update 2024-10-13 01:50:52 +02:00
Domingo Dirutigliano
0c972baa9c
add(todo): additional setting to implement 2023-09-26 01:17:09 +02:00
Domingo Dirutigliano
a9446d6dc6
add: graphic improvements x2 2023-09-25 20:43:29 +02:00
Domingo Dirutigliano
4247dc181d
react-query + enable/disable firewall 2023-09-24 05:48:54 +02:00
Domingo Dirutigliano
ae8dbd9423
fix: backend optional types + firewall frontend initial code 2023-09-23 02:02:02 +02:00
Domingo Dirutigliano
1b414139a0
Frontend -> vite 2023-06-29 13:44:12 +02:00
Domingo Dirutigliano
3f2a1db324
fixed mantine forms and menu + improvements on dev mode with vite 2023-06-14 21:49:15 +02:00
Domingo Dirutigliano
0430cb3773
mantine update + passed to vite 2023-06-05 00:57:54 +02:00
Domingo Dirutigliano
63a3014676
sysctl managmento for port hijacking 2023-04-12 23:53:43 +02:00
DomySh
25d2cfd562 Port hijack changes and start writing frontend 2022-08-12 11:55:30 +00:00
DomySh
d8dc5c9f8b Fixes 2022-07-22 00:34:57 +02:00
DomySh
6fd2f6b359 Modulating frontend 2022-07-21 12:39:30 +02:00
DomySh
acf9642f54 Restructurated frontend 2022-07-21 10:20:54 +02:00
DomySh
139fe39130 Fixes and small changes 2022-07-18 23:01:24 +02:00
DomySh
8cd1b69752 Socket io implementation 2022-07-08 15:13:46 +02:00
nik012003
a97fea7005 Netfliter Refactor 2022-07-07 21:08:02 +02:00
nik012003
e0a881abdb oauth2 on fastapi 2022-06-28 21:49:03 +02:00
DomySh
23f24725c3 Improved start.py + Passwords now use PasswordInput instead of TextInput 2022-06-27 09:34:33 +02:00
DomySh
591b500a9a Instant Update fixed 2022-06-27 09:33:02 +02:00
linoe97
236c3ad255 Fix linux permissions 2022-06-27 09:32:11 +02:00
DomySh
8eb077efa2 Bug fixes and additional checks 2022-06-27 09:32:01 +02:00
DomySh
da28ee99be Password Authentication 2022-06-27 09:31:39 +02:00
DomySh
cff484a976 Restructuring docker project 2022-06-27 09:31:18 +02:00
DomySh
67e5014d78 Docker: single container compose 2022-06-27 09:30:48 +02:00
DomySh
e62e655fdc React Interface v1 2022-06-27 09:28:31 +02:00
Domingo Dirutigliano
372ade7d6f Initial Commit 2022-06-27 09:27:51 +02:00