feature: the CA certificates and CRLs are always published over HTTP and HTTPS on the status and Manager ports, the Shell page is an entry of the page menu, and the web interface passes its lint.
Release / release (push) Successful in 26s
Release / release (push) Successful in 26s
This commit is contained in:
1 parent
4b5318c676
commit
0cec95c19b
72 files changed
+910
-861
No files matched your search
@@ -176,7 +176,6 @@ must have the type shown below; an unknown section or setting is an error.
|
||||
| `pki` | `key` | string | `rsa-4096` | Key of the root and the issuing CAs: `rsa-2048`, `rsa-3072`, `rsa-4096`, `ec-p256` or `ec-p384` |
|
||||
| `pki` | `crl_days` | integer | `7` | Days the CRLs of the issuing CAs are valid |
|
||||
| `pki` | `root_crl_days` | integer | `180` | Days the root CRL is valid, when the server signs it |
|
||||
| `pki` | `publish` | list | `http` | Where the CA certificates and CRLs are published: `http`, `http-80`, `https`, `https-default` (see Certificates) |
|
||||
| `pki` | `p2s_name` | string | `Linux Manager VPN CA` | Common name of the P2S issuing CA; fixed once the CA exists, from when the VPN is first on |
|
||||
| `pki` | `s2s_name` | string | `Linux Manager Site-to-Site CA` | Common name of the site-to-site issuing CA; fixed once the CA exists, from when the router is first on |
|
||||
| `pki` | `servers_name` | string | `Linux Manager Servers CA` | Common name of the Servers Issuing CA; fixed by the first setup, which creates the CA |
|
||||
@@ -639,21 +638,22 @@ certificate is revoked by removing the user, and an issuing CA by removing it fr
|
||||
|
||||
### Published certificates and CRLs
|
||||
|
||||
Every certificate names its issuer's certificate (AIA) and CRL (CRL distribution point) at each
|
||||
endpoint of `pki.publish`, in that order. They are served, without authentication, as DER at
|
||||
`/pki/<name>.crt` and `/pki/<name>.crl`, the root as `root`, from copies in
|
||||
`/var/lib/linux-manager/pki-publish`:
|
||||
Caddy serves the CA certificates and CRLs, without authentication, as DER at `/pki/<name>.crt`
|
||||
(`application/pkix-cert`) and `/pki/<name>.crl` (`application/pkix-crl`), the root as `root`, from
|
||||
copies in `/var/lib/linux-manager/pki-publish`, over plain HTTP on `web.port` while `web.enabled`
|
||||
and on the Manager's port, and while HTTPS is on also on `https.manager_port` and, while
|
||||
`web.enabled` or an issuing CA has ACME, on `https.web_port`. On the Manager's plain HTTP port,
|
||||
`/pki/` is answered before the redirect to HTTPS.
|
||||
|
||||
| Endpoint | URL | Served by |
|
||||
|---|---|---|
|
||||
| `http` | `http://<wan.local_fqdn>:<web.port>/pki/` | the status web service; needs `web.enabled` |
|
||||
| `http-80` | `http://<wan.local_fqdn>/pki/` | Caddy, on port 80, open on both interfaces; needs `https.enabled` |
|
||||
| `https` | `https://<wan.local_fqdn>:<https.web_port>/pki/` | Caddy; needs `https.enabled` |
|
||||
| `https-default` | `https://<wan.local_fqdn>/pki/` | Caddy, on port 443, open on both interfaces; needs `https.enabled` |
|
||||
Every certificate names its issuer's certificate (AIA) and CRL (CRL distribution point) at the
|
||||
plain HTTP URLs, in this order:
|
||||
|
||||
The URLs are written into a certificate when it is signed, so a change of `pki.publish` or of the
|
||||
names applies to the certificates signed afterwards. An empty `pki.publish` leaves the extensions
|
||||
out.
|
||||
- `http://<wan.local_fqdn>:<web.port>/pki/`, while `web.enabled`;
|
||||
- `http://<wan.local_fqdn>:<Manager port>/pki/`.
|
||||
|
||||
The URLs are written into a certificate when it is signed, so a change of the ports or of
|
||||
`wan.local_fqdn` applies to the certificates signed afterwards. Without `wan.local_fqdn` the
|
||||
extensions are left out.
|
||||
|
||||
The CRLs of the issuing CAs are valid for `pki.crl_days`, and the root CRL, when the server signs
|
||||
it, for `pki.root_crl_days`. A CRL is signed again at every revocation and, once half of its
|
||||
@@ -1700,9 +1700,8 @@ reloads it when the file changes.
|
||||
Caddy listens on every address, and the firewall decides who reaches it: `web.port` is open on the
|
||||
interfaces `web.listen` names, the Manager's port on those of its `listen`, and `metrics.port` on
|
||||
those of `metrics.listen`, where `internal` is the external interface without the router. Port
|
||||
80 is open on the external interface while ACME needs it, the HTTPS ports on the internal and the
|
||||
external interface, and ports 80 and 443 on both when `pki.publish` has `http-80` and
|
||||
`https-default`, on which Caddy serves only the CA files (see Certificates).
|
||||
80 is open on the external interface while ACME needs it, and the HTTPS ports on the internal and
|
||||
the external interface.
|
||||
|
||||
Caddy calls the services on `127.0.0.1`: the status web service on port 7091, the Manager on
|
||||
7090, the metrics service on 9474 and WebDAV on 7446, and passes the client's address in
|
||||
@@ -2240,10 +2239,9 @@ the Overview, Metrics, Logs, Backup and System tabs), Identities (`/user-manager
|
||||
Accounts tabs), Connectivity (`/site-to-site-manager`: the Status, Network and Connections tabs), Remote
|
||||
Access (`/remote-access-manager`: the IKEv2, OpenVPN and WireGuard tabs), Certificates
|
||||
(`/ca-manager`), Web Sites (`/sites-manager`: the Sites and Files tabs), DNS (`/dns-manager`, while the name
|
||||
server is on) and Docker (`/docker-manager`) with the page menu at the
|
||||
right end of the header, a button naming the page shown. The button with the signed-in user's
|
||||
name, left of Sign out, opens the account page, and the terminal icon left of it the Shell
|
||||
(`/shell`); pressed on its page, each returns to the page it was opened from.
|
||||
server is on), Docker (`/docker-manager`) and Shell (`/shell`) with the page menu at the right end
|
||||
of the header, a button naming the page shown. The button with the signed-in user's name, left of
|
||||
Sign out, opens the account page; pressed on it, it returns to the page it was opened from.
|
||||
|
||||
- **Help** (the question mark in the header between the theme switcher and the page menu, for every
|
||||
signed-in user): a panel on the right, under
|
||||
@@ -2258,8 +2256,8 @@ name, left of Sign out, opens the account page, and the terminal icon left of it
|
||||
on their own, kept in the browser's localStorage, so each browser has its own. Each tab reads
|
||||
manually, or every 5, 10 or 30 seconds, 1, 5 or 15 minutes; the Overview tab every 10 seconds and
|
||||
the Metrics tab every minute by default. Manual reads when the tab opens and on Refresh. **Open
|
||||
the shell in a new tab**, off by default, makes the shell button open the shell in a tab of its
|
||||
own, which stays open while the first tab opens other pages. A change applies at once, also in
|
||||
the shell in a new tab**, off by default, makes the page menu open the Shell page in a tab of
|
||||
its own, which stays open while the first tab opens other pages. A change applies at once, also in
|
||||
the browser's other tabs; Defaults sets them back.
|
||||
|
||||
- **Account** (`/user`): the Account and the Passkeys panel side by side, with One-time passwords
|
||||
@@ -2438,7 +2436,7 @@ name, left of Sign out, opens the account page, and the terminal icon left of it
|
||||
the ports exposed on the external interface and the rules of the `LINUX-MANAGER-DOCKER` chain,
|
||||
from the server's `/status/full` and `/config`. The page menu leaves the page out while
|
||||
`/config` says Docker is not installed, and the page itself then says so.
|
||||
- **Shell** (`/shell`, the terminal icon in the header): a login shell on the server in xterm.js, the terminal of VS Code, as the
|
||||
- **Shell** (`/shell`, in the page menu of administrators): a login shell on the server in xterm.js, the terminal of VS Code, as the
|
||||
signed-in user's console account, the user's own LDAP POSIX account or a local account. Opening
|
||||
it asks for the password and the code again, or Open with a passkey takes one of the user's
|
||||
passkeys, unlocked with the device's PIN or biometrics, unless the user used a shell within the
|
||||
@@ -2447,7 +2445,7 @@ name, left of Sign out, opens the account page, and the terminal icon left of it
|
||||
on the server with `linux-manager-config-edit`, and closes it after `web.shell_idle_minutes` without a
|
||||
keystroke; the page then shows the reason and keeps the terminal readable.
|
||||
- **Editor:** `lme FILE...` (`linux-manager-editor`) in the shell opens the files in a Monaco editor on the page, one tab per file, and returns at once. The server names each file in a text message of the shell's WebSocket, and the page reads and saves it through `/api/shell/editor/<session>/<id>`, as the console account. Saves have a body limit of 2 MiB plus 64 KiB, for a file of up to 1 MiB escaped in JSON; other calls keep 64 KiB.
|
||||
- **Editor icon:** while a file is open, an icon left of the shell icon switches the page between the terminal and the editor, and the shell keeps running. A button left of Save shows or hides the minimap, remembered by the browser. Save or Ctrl+S writes the file; a file changed on the server since it was read offers Reload or Overwrite. Closing a tab with unsaved changes asks first, and the icon goes when the last tab closes or the shell ends.
|
||||
- **Editor icon:** while a file is open, an icon left of the user's name in the header switches the page between the terminal and the editor, and the shell keeps running. A button left of Save shows or hides the minimap, remembered by the browser. Save or Ctrl+S writes the file; a file changed on the server since it was read offers Reload or Overwrite. Closing a tab with unsaved changes asks first, and the icon goes when the last tab closes or the shell ends.
|
||||
- **Loading:** Monaco is bundled with the page, without its language services, and loaded only when the first file opens.
|
||||
- **Backup**: the server's backups, from its `/backup`:
|
||||
- **Settings:** whether scheduled backups run, the schedule (hourly, daily or weekly), the target and whether the metrics database is included. For a local folder it also shows the folder, the archives kept and the cloud copy with rclone; for a Proxmox Backup Server, the repository, whether the token secret is set, the fingerprint, the namespace and the encryption key file.
|
||||
|
||||
Reference in new issue
Block a user