feature: the VPN, the router, the name server and WebDAV are components switched on the System tab and installed on demand, Caddy from the Ubuntu archive is a dependency and serves every HTTP and HTTPS port, HTTPS is chosen at install, its certificate is of the Servers Issuing CA or self-signed by default, of ACME or of another CA, the issuing CAs are in one tab, a locked account is unlocked again, the name of a CA is fixed once the CA exists, and a run of setup is no longer cut short by a change.
Release / release (push) Failing after 8s

This commit is contained in:
slawek committed 2026-11-24 05:51:27 +01:00
1 parent a649331aa2
commit a7bfabcb89
97 files changed
+4498 -1834

No files matched your search

+108
View File
@@ -1,3 +1,111 @@
linux-manager (0.42.0-1) unstable; urgency=medium
feature: the VPN, the router, the name server and WebDAV are components
switched on the System tab and installed on demand, Caddy from the Ubuntu
archive is a dependency and serves every HTTP and HTTPS port, HTTPS is
chosen at install, its certificate is of the Servers Issuing CA or
self-signed by default, of ACME or of another CA, the issuing CAs are in one
tab, a locked account is unlocked again, the name of a CA is fixed once the
CA exists, and a run of setup is no longer cut short by a change.
* The Manager's System tab has a Components panel: the VPN, the router,
the name server and WebDAV, each switched on and off there, with GET and
PUT /components; the router is offered only with a second network
interface, and its Enable asks for the internal interface and, in manual
mode, its address and gateway. The DNS and sites settings dialogs no
longer switch the name server and WebDAV.
* The Overview's Addresses panel lists each address of the status page
once, and the Manager's plain HTTP addresses while Caddy does not
redirect it; /api/info gives the port and listen of the Manager's site.
* Every page and tab with more than one panel has Edit layout and Panels,
its layout kept in the browser.
* The name server has a DNS page of its own, in the page menu while it is
on, instead of a tab of Web Sites; its secondary name server is optional,
and without it the server is the domains' only name server, with no
warning at each setup run.
* The VPN's and the router's packages are suggested, not depended on, and
linux-manager-install@vpn and @router install them from the Ubuntu
archive while the component is on; setup also has packages of a
component that is on, marked as installed automatically, marked as
installed by hand, so apt autoremove keeps them.
* A change made in the Manager, with the package's commands or by the
installation of a component no longer restarts a run of
linux-manager-setup in progress, which could leave the firewall, the VPN
or the routes half applied; the run runs once more when it ends instead.
linux-manager-config-edit apply runs setup and waits for it, and --restart
of set and remove does the same.
* The package depends on caddy from the Ubuntu archive, which serves
web.port, the Manager's port and metrics.port over plain HTTP as well as
the HTTPS ports; the web service, the Manager and the metrics service
listen on 127.0.0.1 only, on ports 7091, 7090 and 9474, and the firewall
opens each plain HTTP port on the interfaces its listen setting names.
* The Manager's sign-in page and /api/info without a session no longer
show the package's version, and Caddy removes the Server header of
every answer, which named Caddy and the services' Python version.
* https.caddy_source, the upstream Caddy repository and
linux-manager-caddy are removed; a configuration that names
https.caddy_source is refused.
* The installer asks whether to serve over HTTPS, https.enabled, and with
HTTPS whether to keep the Manager on plain HTTP,
https.disable_auto_redirect; while HTTPS is on, Caddy redirects the
Manager's plain HTTP port to its HTTPS address, and the status page never
redirects.
* https.certificate is self-signed when the configuration does not set it,
and acme only when set; a new installation's first setup chooses ca when
the root CA and the Servers Issuing CA are available, else self-signed,
and writes it into the configuration file. A server whose configuration
did not set it moves from acme to self-signed.
* https.certificate, self-signed, ca, acme or external, says
where the certificate of wan.local_fqdn comes from; while the chosen one
is not available, the server serves a self-signed one and warns.
* With external, linux-manager-ca https csr, import and import-pfx, POST
/https/csr, PUT /https/certificate and PUT /https/pfx, and Generate CSR,
Import certificate and Import PFX of the Certificates page's Server tab
make a CSR and take the certificate another CA signed, or a PFX file.
* https.acme_provider, letsencrypt, zerossl or custom with acme_url and
optional EAB, is the ACME CA of the server and of the sites with TLS
acme; https.zerossl_api_key is optional.
* PUT /https/settings changes the source and the ACME settings; the
Certificates page's first tab, Server, shows HTTPS, the certificate, the
ACME CA and Caddy, which the Overview no longer shows; its HTTPS row's
button changes the source and its ACME CA row's button the ACME CA,
which the web sites with TLS ACME also use; port 80 is opened for the
challenge only with acme.
* The built-in Servers Issuing CA servers, named pki.servers_name, issues
mTLS certificates and the server's HTTPS certificate with ca; the
site-to-site template is mtls, and the s2s CA issues it.
* The Certificates page shows the built-in and the custom issuing CAs in
one Issuing CAs tab, with the certificates of all of them; a built-in CA
whose component is off is off, not missing.
* Every test instance gets an AppRole of its own in a Vault of the test
project, with /etc/vault and the helper lm-dev-vault, and reads its
secrets with it, never as an argument or on standard input;
lm-dev-lxd-project.py vault create, unseal and remove manage the Vault,
and the scripts' state is in .lm-dev-config/.
* lm-dev-vm.py takes --forward-address, and enrols a TOTP token for admin
when the VM is created unless --no-otp is given.
* The TOTP tokens of test VMs are keys of the Vault's TOTP engine;
lm-dev-otp-code.py prints their codes, and lm-dev-otp-register.py takes
no --secret-file. bin/otp.py stores its secret without a line end, or
with --url its otpauth URI, so Vault imports the file as it is, and
reads codes from either.
* linux-manager-user unlock, POST /users/<name>/unlock and the metrics
account's new password end a lockout again; they failed when the user
had failed binds.
* Setup refuses a CA name that differs from the common name of the CA's
certificate or CSR, and linux-manager-ca ca import a certificate whose
common name differs from the CSR's; the PKI settings dialog edits the
P2S and S2S names only until their CA exists, and the issuing CA dialog
no longer edits the common name of an existing CA.
* lm-dev-run.py keeps the lab's admin password in the scenario's Vault and
no longer replaces ADMIN_PASSWORD in .env.
* lm-dev-run.py and lm-dev-vm.py install the package built last, in out/
or out/dev/, or the one --deb names; lm-dev-vm.py no longer prints the
admin password.
* The build retries failed downloads of the image's packages.
-- Slawomir Koszewski <slawek@koszewscy.waw.pl> Mon, 23 Nov 2026 08:20:31 +0100
linux-manager (0.41.1-1) unstable; urgency=medium
fix: the root CA is created by the server, an offline CA or a Simple CA
+7
View File
@@ -67,6 +67,7 @@ fi
db_go || true
db_input high linux-manager/local_fqdn || true
db_input high linux-manager/https_enabled || true
if [ "$ROUTER" = "true" ] || [ "$VPN" = "true" ]; then
db_input high linux-manager/local_cidrs || true
fi
@@ -84,6 +85,12 @@ if [ "$VPN" = "true" ]; then
fi
db_go || true
db_get linux-manager/https_enabled
if [ "$RET" = "true" ]; then
db_input high linux-manager/https_disable_auto_redirect || true
db_go || true
fi
db_get linux-manager/pki_root
if [ "$RET" = "local" ]; then
db_input high linux-manager/pki_root_name || true
+11 -11
View File
@@ -9,11 +9,6 @@ Rules-Requires-Root: no
Package: linux-manager
Architecture: all
Depends: ${misc:Depends},
strongswan-swanctl (>= 5.0),
charon-systemd (>= 5.0),
libstrongswan-extra-plugins,
libcharon-extra-plugins,
wireguard-tools,
ufw,
debconf,
ucf,
@@ -29,20 +24,25 @@ Depends: ${misc:Depends},
python3-psutil,
python3-prometheus-client,
python3-requests,
caddy,
postgresql,
slapd,
nslcd,
libnss-ldapd,
libpam-ldapd,
sudo,
openvpn,
openvpn-auth-ldap,
iproute2,
systemd-resolved,
dnsmasq-base,
zstd
Recommends: bash-completion
Suggests: caddy,
Suggests: strongswan-swanctl (>= 5.0),
charon-systemd (>= 5.0),
libstrongswan-extra-plugins,
libcharon-extra-plugins,
wireguard-tools,
openvpn,
openvpn-auth-ldap,
dnsmasq-base,
rclone,
pdns-server,
pdns-backend-pgsql,
@@ -57,8 +57,8 @@ Description: Ubuntu Linux Manager: directory, PKI, web, optional router and VPN
user, and WireGuard; without the router its clients reach the server's
networks through NAT on one interface. Its two-level CA, whose root may be
kept offline, has issuing CAs for the VPN clients, for site-to-site and for
general use, and publishes their certificates and CRLs. Caddy, installed by
the package from the Ubuntu archive or from Caddy's repository, serves HTTPS
general use, and publishes their certificates and CRLs. Caddy, from the
Ubuntu archive, serves every HTTP and HTTPS port of the server's services
and static web sites, whose files are uploaded through the web service or
WebDAV, an optional PowerDNS name server answers for a zone of the sites,
and an optional OpenID Provider signs the directory's users in to other
-1
View File
@@ -25,7 +25,6 @@ src/usr/sbin/linux-manager-token usr/sbin/
src/usr/sbin/linux-manager-config-edit usr/sbin/
src/usr/sbin/linux-manager-backup usr/sbin/
src/usr/sbin/linux-manager-ca usr/sbin/
src/usr/sbin/linux-manager-caddy usr/sbin/
src/usr/sbin/linux-manager-site usr/sbin/
src/usr/lib/linux-manager/configure usr/lib/linux-manager/
src/usr/lib/linux-manager/docker-rules usr/lib/linux-manager/
@@ -1,10 +0,0 @@
[Unit]
Description=Linux Manager Caddy installation
Documentation=file:/usr/share/doc/linux-manager/README.md
After=network-online.target
Wants=network-online.target
[Service]
Type=oneshot
ExecStart=/usr/sbin/linux-manager-caddy apply
TimeoutStartSec=20min
+3
View File
@@ -24,6 +24,8 @@ case "$1" in
answer linux-manager/external_interface; LINUX_MANAGER_EXTERNAL_INTERFACE="$ANSWER"
answer linux-manager/internal_interface; LINUX_MANAGER_INTERNAL_INTERFACE="$ANSWER"
answer linux-manager/local_fqdn; LINUX_MANAGER_LOCAL_FQDN="$ANSWER"
answer linux-manager/https_enabled; LINUX_MANAGER_HTTPS_ENABLED="$ANSWER"
answer linux-manager/https_disable_auto_redirect; LINUX_MANAGER_HTTPS_DISABLE_AUTO_REDIRECT="$ANSWER"
answer linux-manager/local_id_mode; LINUX_MANAGER_LOCAL_ID_MODE="$ANSWER"
answer linux-manager/local_cidrs; LINUX_MANAGER_LOCAL_CIDRS="$ANSWER"
answer linux-manager/int_gateway_ip; LINUX_MANAGER_INT_GATEWAY_IP="$ANSWER"
@@ -44,6 +46,7 @@ case "$1" in
LINUX_MANAGER_ROUTER_ENABLED LINUX_MANAGER_VPN_ENABLED \
LINUX_MANAGER_EXTERNAL_INTERFACE \
LINUX_MANAGER_INTERNAL_INTERFACE LINUX_MANAGER_LOCAL_FQDN \
LINUX_MANAGER_HTTPS_ENABLED LINUX_MANAGER_HTTPS_DISABLE_AUTO_REDIRECT \
LINUX_MANAGER_LOCAL_ID_MODE LINUX_MANAGER_LOCAL_CIDRS \
LINUX_MANAGER_INT_GATEWAY_IP \
LINUX_MANAGER_REMOTE_ADDRS LINUX_MANAGER_REMOTE_ID \
+2 -3
View File
@@ -73,7 +73,7 @@ case "$1" in
# The name service no longer looks up the console accounts of the server's directory.
sed -i '/^passwd:/s/ ldap\b//' /etc/nsswitch.conf
rm -rf /var/lib/linux-manager/backup/staging /var/lib/linux-manager/backup/restore \
/var/lib/linux-manager/pki-publish /etc/caddy/linux-manager-pki /etc/caddy/linux-manager-sites \
/var/lib/linux-manager/pki-publish /etc/caddy/linux-manager-pki /etc/caddy/linux-manager-https /etc/caddy/linux-manager-sites \
/etc/openvpn/server/linux-manager-ca.pem /etc/openvpn/server/linux-manager-crl.pem
rmdir --ignore-fail-on-non-empty /var/lib/linux-manager/backup /var/lib/linux-manager 2>/dev/null || true
@@ -100,8 +100,7 @@ case "$1" in
# in slapd, the WireGuard key pair, everything under /etc/swanctl, the
# files of the web sites in /var/lib/linux-manager/sites, the backups and
# what a restore replaced are left in place. Caddy, rclone and PowerDNS
# stay installed, so Caddy's repository, which linux-manager-caddy
# configures, stays too.
# stay installed.
rmdir --ignore-fail-on-non-empty /etc/linux-manager 2>/dev/null || true
;;
esac
-1
View File
@@ -14,7 +14,6 @@ override_dh_installsystemd:
dh_installsystemd --name=linux-manager-bootstrap --no-enable --no-start
dh_installsystemd --name=linux-manager-backup --no-enable --no-start
dh_installsystemd --name=linux-manager-pki --no-enable --no-start
dh_installsystemd --name=linux-manager-caddy --no-enable --no-start
dh_installsystemd --name=linux-manager-webdav --no-enable --no-start
dh_installsystemd --name=linux-manager-resolver --no-enable --no-start
dh_installsystemd --name=linux-manager-install@ --no-enable --no-start
+17
View File
@@ -95,6 +95,23 @@ Description: Local router FQDN:
router.example.com). Used as the IKEv2 server identity and
certificate common name.
Template: linux-manager/https_enabled
Type: boolean
Default: true
Description: Serve the status page and the Manager over HTTPS?
If enabled, Caddy serves the status page and the Manager over HTTPS for the
router FQDN, with a certificate of the Servers Issuing CA when the server
creates its root CA, and a self-signed one otherwise. The status page stays
available over plain HTTP either way.
Template: linux-manager/https_disable_auto_redirect
Type: boolean
Default: false
Description: Keep the Manager available over plain HTTP?
If enabled, the Manager answers on its plain HTTP port. Otherwise, while
HTTPS is on, it redirects there to its HTTPS address. The status page never
redirects.
Template: linux-manager/local_id_mode
Type: select
Choices: fqdn, public_ip, internal_ip