0.37.0
This commit is contained in:
1 parent
6b59434ffa
commit
78dbb31487
8 files changed
+28
-24
No files matched your search
+7
-5
@@ -10,25 +10,27 @@ Release history focused on **features, settings, default behavior, compatibility
|
||||
- **Docker agent domains:** *Base domain* is replaced by **Domains** — a list of up to 16 DNS suffixes per agent (for example `app.example.com`, `example.com`, `random.example.net`), chosen in the same searchable multi-select as ACL profiles; type a domain and press Enter to add it. The first domain (★) is the master domain for new Docker vhosts; click ★ on another domain to make it the master.
|
||||
- **Master domain per Docker vhost:** every published service picks its master domain from the agent domains (default: the first), so it works under `<container-name>.<master domain>` right after publishing. Aliases can be short labels (under the master domain or another agent domain chosen next to the alias input) or full names, which the panel accepts only inside the agent domains.
|
||||
- **Docker certificates:** the single certificate selector is replaced by **Automatic** (global SNI / default certificate, the default) or **Selected certificates** (up to 32, same picker style as ACL profiles). Each generated vhost uses the selected certificate that covers all its names (exact names win, then the narrowest); otherwise it falls back to the generic SNI/default certificate. The service editor shows which certificate will be used. *Accept certificate/domain mismatch* forces the first selected certificate when none matches.
|
||||
- **Provisioning code:** Docker agent 1.1.0 adds `rustproxy-docker-agent provision-code`, which prints one `RPDA1-…` code (base64url JSON with the HTTPS endpoint, Bearer token and certificate SHA-256). **Settings → Docker agents → Paste provisioning code** (or *Provisioning code* inside an existing agent, for rotated tokens) fills in the name, endpoint, token and pin at once. `info --show-token` and the manual installer also print the code. The code contains the secret token.
|
||||
- **Provisioning code:** Docker agent 0.37.0 adds `rustproxy-docker-agent provision-code`, which prints one `RPDA1-…` code (base64url JSON with the HTTPS endpoint, Bearer token and certificate SHA-256). **Settings → Docker agents → Paste provisioning code** (or *Provisioning code* inside an existing agent, for rotated tokens) fills in the name, endpoint, token and pin at once. `info --show-token` and the manual installer also print the code. The code contains the secret token.
|
||||
- **Docker agent ID:** generated automatically from the agent name using the same rule and widget as Vhost IDs (editable until saved).
|
||||
- **Default backend IP:** now a list of the addresses detected by the agent (with interface/scope/source), *Automatic* or **Custom address…**.
|
||||
- **Host diagnostics:** agents 1.1.0+ report OS, kernel, architecture, Docker/Podman runtime and version, uptime, load average, CPU usage, memory, swap, disk usage of the container data directory, host network totals/rates and running/total containers and images. They appear in **Docker vhosts → Agent details → Host system** and in a compact diagnostics strip (status, last check, error, host metrics) in **Settings → Docker agents**. Nothing is shown when an agent does not send them.
|
||||
- **Host diagnostics:** agents 0.37.0+ report OS, kernel, architecture, Docker/Podman runtime and version, uptime, load average, CPU usage, memory, swap, disk usage of the container data directory, host network totals/rates and running/total containers and images. They appear in **Docker vhosts → Agent details → Host system** and in a compact diagnostics strip (status, last check, error, host metrics) in **Settings → Docker agents**. Nothing is shown when an agent does not send them.
|
||||
- **Docker Overview cards (optional, hidden by default):** **Docker agents**, **Docker apps**, **Docker app requests** (rate chart), **Docker hosts network** (RX/TX chart), **Docker hosts load** (CPU/memory bars and load per host) and **Containers**. With two or more agents every card has an agent selector (*All agents* or one agent), also shown next to the card when adding it in the layout editors; the choice is saved per administrator in the new `docker_widget_agents` preference.
|
||||
- **Docker alerts:** RustProxy raises alerts from the latest agent poll only (no stored history): the agent could not be reached at the last check (error), a host's disk or memory use is at or above a threshold (default 90% / 95%), the load per CPU reported by the host (5-minute load average) is at or above a threshold (default 2.0), a **published service disappeared from the inventory**, a published container is unhealthy, restarting, exited or dead (containers without a health check are judged by their state only), or container labels cannot be published. They are shown as ordinary alerts: a **Docker** entry in the application status (amber/red), a notification when a new alert appears, a list at the top of **Docker vhosts**, a `Docker alert raised/cleared` log line and Prometheus `rust_proxy_docker_alert` / `rust_proxy_docker_alerts_active`. Thresholds and switches: **Settings → Docker agents → Alerts** (`docker_agents.alerts`).
|
||||
- **Prometheus host metrics:** `rust_proxy_docker_agent_up`, `..._agent_last_success_timestamp_seconds`, `rust_proxy_docker_host_*` (info, uptime, CPU count and usage, memory, swap, disk, load 1/5/15 m, network totals and rates, containers, images) and `rust_proxy_docker_container_*` (state/health info, CPU, memory, memory limit, restarts), all labelled with `agent`; `rust_proxy_docker_vhost_label_published` marks label publications.
|
||||
- **Grafana:** the bundled dashboard gets **Job** and **RustProxy server** variables applied to every query, a **RustProxy servers** row (per-server table with version, uptime, request/error rate, active exchanges, RSS and CPU, servers down, per-server time series) for monitoring several RustProxy servers, and a **Docker hosts and alerts** row.
|
||||
- **Diagnostics charts:** small CPU, memory, load and network charts in **Agent details** are sampled in the browser from the agent polls while the page is open, like the other panel charts (length follows the Overview history sample setting); RustProxy itself stores no history.
|
||||
- **Publishing from container labels:** with **Publish from container labels** on an agent, containers labelled `rustproxy.enable=true` are published automatically. Optional labels: `rustproxy.host`, `rustproxy.domain`, `rustproxy.aliases`, `rustproxy.scheme`, `rustproxy.port`, `rustproxy.force_ssl`, `rustproxy.websockets`, `rustproxy.cache`, `rustproxy.compression`, `rustproxy.preserve_host`. Names must be inside the agent domains and must not collide with existing hosts; such services get a **LABELS** badge, invalid ones a **LABEL ERROR** badge and an alert. A manual setting always wins: *Apply changes* takes a label publication over, switching *Publish* off stores a disabled manual override. Off by default.
|
||||
- **Container state:** each service row shows the container state and health check (healthy, unhealthy, starting, or *no health check* for images without `HEALTHCHECK`), CPU, memory with its limit and restart count (agent 1.1.0, Docker and Podman).
|
||||
- **Container state:** each service row shows the container state and health check (healthy, unhealthy, starting, or *no health check* for images without `HEALTHCHECK`), CPU, memory with its limit and restart count (agent 0.37.0, Docker and Podman).
|
||||
- **Test connection:** a button in each agent checks endpoint, token and certificate pin before saving (`POST /api/docker/test`).
|
||||
- **One-time provisioning codes:** `provision-code` now prints a one-time `RPDA1` code (format v2) that contains the endpoint, the certificate pin and a single-use enrollment secret valid for 15 minutes (`--ttl`), but not the token. Pasting it makes RustProxy redeem it at the agent over the pinned HTTPS connection (`POST /api/docker/enroll` → agent `POST /v1/enroll`) and fill in the permanent token; a used or expired code is rejected. `--static` prints the previous reusable code with the token. One-time codes require HTTPS.
|
||||
- **More Docker cards:** every Docker Overview card exists four times (`docker_host_load`, `docker_host_load_2` … `_4`, likewise for the others), shown as *#2–#4*, so the same card can be placed per agent next to each other.
|
||||
- **Agent version:** the Docker agent carries the RustProxy version (0.37.0 here, as set by the package builder), so the agent version shown in the panel matches the release it ships with.
|
||||
- **Agent packages:** the DEB/RPM postinstall also handles Podman-only hosts: it creates a `docker` group when Podman is installed and no such group exists, adds a `podman.socket` drop-in (`SocketGroup=docker`, `SocketMode=0660`) when there is no Docker socket, and starts the agent when `/var/run/docker.sock` or `/run/podman/podman.sock` exists; the drop-in is removed with the package.
|
||||
- **Podman support in the agent:** `RUSTPROXY_DOCKER_SOCKET=auto` (new default) uses `/var/run/docker.sock`, then `/run/podman/podman.sock`, then the rootless `$XDG_RUNTIME_DIR/podman/podman.sock`; `unix://` URLs are accepted. `podman-compose` labels (`io.podman.compose.*`) group services like Docker Compose. The systemd unit no longer *requires* `docker.service`, and the manual installer accepts Podman hosts.
|
||||
- **Status API:** `GET /api/status` (full and `view=live`) adds a `docker` object (`null` without agents) with per-agent `ok`, `observed`, `services`, `published_pool_ids`, `missing_services` and `system`, plus `alerts`. `GET /api/docker` adds `alerts`, `label_issues`, label publications in `pool_routes` and `last_ok_unix_ms` in observations. `GET /api/docker` inventories may include `system`.
|
||||
- **Configuration/API:** Docker agents add `domains` and `certificate_ids`; assignments add `domain` (master domain). Legacy `base_domain` and `certificate_id` are still accepted and migrated on save (`domains: [base_domain]`, `certificate_ids: [certificate_id]`) and are no longer written. The Docker inventory accepts unknown fields from newer agents.
|
||||
- **Compatibility:** RustProxy 0.37.0 requests `GET /v1/inventory?system=1`; older agents ignore the parameter and keep working without diagnostics. Agent 1.1.0 sends `system` only on that request, so older RustProxy servers keep working with the new agent.
|
||||
- **Upgrade notes:** no database migration. Existing Docker agents keep their behavior: the old base domain becomes the only domain and a selected certificate becomes the only selected certificate (a certificate that does not cover a service's names now falls back to the generic SNI/default certificate instead of being rejected, unless the mismatch override is enabled). Saving the configuration writes the new fields, so downgrading to 0.36.x afterwards requires restoring a previous configuration. Update agents to 1.1.0 for provisioning codes, host diagnostics and Podman.
|
||||
- **Compatibility:** RustProxy 0.37.0 requests `GET /v1/inventory?system=1`; older agents ignore the parameter and keep working without diagnostics. Agent 0.37.0 sends `system` only on that request, so older RustProxy servers keep working with the new agent.
|
||||
- **Upgrade notes:** no database migration. Existing Docker agents keep their behavior: the old base domain becomes the only domain and a selected certificate becomes the only selected certificate (a certificate that does not cover a service's names now falls back to the generic SNI/default certificate instead of being rejected, unless the mismatch override is enabled). Saving the configuration writes the new fields, so downgrading to 0.36.x afterwards requires restoring a previous configuration. Update agents to 0.37.0 for provisioning codes, host diagnostics and Podman.
|
||||
|
||||
## 0.36.13 — panel-style origin rejection page
|
||||
|
||||
|
||||
Reference in new issue
Block a user