fix: the web service manages users also when it started before setup.
Release / release (push) Successful in 19s
Release / release (push) Successful in 19s
This commit is contained in:
1 parent
8782edff0f
commit
581b53d447
3 files changed
+17
-3
No files matched your search
@@ -143,8 +143,10 @@ Decision: `vpnrouter_users.py` holds the user operations, the checks and a sessi
|
|||||||
lock and the connection of the user manager account. The web service imports it and maps a
|
lock and the connection of the user manager account. The web service imports it and maps a
|
||||||
`Failure` to the HTTP status; `vpn-router-user` imports it and adds the argument parsing and
|
`Failure` to the HTTP status; `vpn-router-user` imports it and adds the argument parsing and
|
||||||
the output, text for people and JSON with `--json`. The web unit allows writing the paths the
|
the output, text for people and JSON with `--json`. The web unit allows writing the paths the
|
||||||
operations need: `/run/vpn-router` for the lock, `/etc/vpn-router/pki` for the certificates and
|
operations need: `/run/vpn-router` for the lock, its `RuntimeDirectory`, which systemd creates
|
||||||
the CA's state, and `/etc/swanctl/x509crl` for the published CRL.
|
before the service starts, also before setup has run, and keeps when it stops, as setup's state
|
||||||
|
files are there too; `/etc/vpn-router/pki` for the certificates and the CA's state, and
|
||||||
|
`/etc/swanctl/x509crl` for the published CRL.
|
||||||
|
|
||||||
Consequences: The rules exist once. A request starts no process, and a password never leaves
|
Consequences: The rules exist once. A request starts no process, and a password never leaves
|
||||||
the process that received it. The web service imports `python3-ldap` and the package's
|
the process that received it. The web service imports `python3-ldap` and the package's
|
||||||
|
|||||||
@@ -1,3 +1,13 @@
|
|||||||
|
vpn-router (0.12.2-1) unstable; urgency=medium
|
||||||
|
|
||||||
|
fix: the web service manages users also when it started before setup.
|
||||||
|
|
||||||
|
* vpn-router-web creates /run/vpn-router when it starts, so the user
|
||||||
|
operations take their lock there; started before vpn-router-setup had
|
||||||
|
made the directory, they failed with "Read-only file system".
|
||||||
|
|
||||||
|
-- Slawomir Koszewski <slawek@koszewscy.waw.pl> Sun, 25 Oct 2026 12:00:00 +0200
|
||||||
|
|
||||||
vpn-router (0.12.1-1) unstable; urgency=medium
|
vpn-router (0.12.1-1) unstable; urgency=medium
|
||||||
|
|
||||||
fix: the status page shows whether the Router Manager runs.
|
fix: the status page shows whether the Router Manager runs.
|
||||||
|
|||||||
@@ -13,7 +13,9 @@ Restart=on-failure
|
|||||||
RestartSec=15
|
RestartSec=15
|
||||||
NoNewPrivileges=yes
|
NoNewPrivileges=yes
|
||||||
ProtectSystem=strict
|
ProtectSystem=strict
|
||||||
ReadWritePaths=-/run/vpn-router -/etc/vpn-router -/etc/swanctl/x509crl
|
RuntimeDirectory=vpn-router
|
||||||
|
RuntimeDirectoryPreserve=yes
|
||||||
|
ReadWritePaths=-/etc/vpn-router -/etc/swanctl/x509crl
|
||||||
ProtectHome=yes
|
ProtectHome=yes
|
||||||
PrivateTmp=yes
|
PrivateTmp=yes
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user