From 0bf78b16b176481349f8feea1acd2393cd62eadc Mon Sep 17 00:00:00 2001 From: Slawomir Koszewski Date: Sat, 24 Oct 2026 00:00:44 +0200 Subject: [PATCH] feature: users and their certificates no longer need a P2S system enabled. --- ADR.md | 17 ++++++++++ README.md | 23 ++++++------- debian-package/debian/changelog | 14 ++++++++ debian-package/src/usr/lib/vpn-router/setup | 12 ++----- .../src/usr/lib/vpn-router/vpnrouter.py | 33 ++++++++++--------- debian-package/src/usr/lib/vpn-router/web | 4 +-- debian-package/src/usr/sbin/vpn-router-user | 4 +-- 7 files changed, 67 insertions(+), 40 deletions(-) diff --git a/ADR.md b/ADR.md index 7770e6e..fd595d3 100644 --- a/ADR.md +++ b/ADR.md @@ -215,3 +215,20 @@ reaches the browser. The application checks the shape of every answer of the rou reaches the manager's port manages the router, so on another system it listens on `127.0.0.1` unless told otherwise. The router's firewall depends on whether the manager is installed, and a changed manager port needs `vpn-router-setup` to run again. + +## ADR-10: Users and their certificates do not depend on a P2S system being enabled + +Status: Accepted + +Context: The user directory and the CA were provisioned, and `/users` was served, only while +OpenVPN or road-warrior access was enabled. Users could not be prepared before a P2S system was +switched on, and the Router Manager could not manage them on a router without one. + +Decision: Once a platform is chosen, `vpn-router-setup` always provisions the user directory in +slapd and the CA with its CRL; the server certificate follows once `wan.local_fqdn` is set. +`/users` and `vpn-router-user` rely only on the directory and the CA. Only the OpenVPN client +profile needs OpenVPN to be enabled. + +Consequences: slapd always holds the directory and the CA always exists on a configured router, +even when no P2S system uses them. An operator who wants a CA of their own must place it before +choosing the platform. diff --git a/README.md b/README.md index 81546a8..49443b8 100644 --- a/README.md +++ b/README.md @@ -272,12 +272,12 @@ ca_cert.pem ca_key.pem ca_bundle.pem