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.
|
- **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.
|
- **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.
|
- **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).
|
- **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…**.
|
- **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 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`).
|
- **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.
|
- **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.
|
- **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.
|
- **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.
|
- **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`).
|
- **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.
|
- **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.
|
- **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.
|
- **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`.
|
- **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.
|
- **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.
|
- **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 1.1.0 for provisioning codes, host diagnostics and Podman.
|
- **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
|
## 0.36.13 — panel-style origin rejection page
|
||||||
|
|
||||||
|
|||||||
+7
-7
@@ -2,7 +2,7 @@
|
|||||||
4140a2956264b44f259e6a37fc00ba02097bbe68b09296e04d3d243c1287129b .env.example
|
4140a2956264b44f259e6a37fc00ba02097bbe68b09296e04d3d243c1287129b .env.example
|
||||||
e76e688874828e3743d03693b1d2872b9633b4db09909673786caf30f7cfe489 .gitignore
|
e76e688874828e3743d03693b1d2872b9633b4db09909673786caf30f7cfe489 .gitignore
|
||||||
c7a44d067d8190054e40f1aa78f6c3f532faec4b103295c1acab89b006fa26ea AGENTS.md
|
c7a44d067d8190054e40f1aa78f6c3f532faec4b103295c1acab89b006fa26ea AGENTS.md
|
||||||
358c32848c57ad2cf6ec74ee50eee5579d30ecb46ec4a91763ee144ca6b31c32 CHANGELOG.md
|
f182587954f106aae81f05de0f4f2ae180420da37340853087cd55ab703fbba3 CHANGELOG.md
|
||||||
3ff0c3825b95bbdfcaca324b1611132ff2fade7bcbfd20a490e8595cd9732094 Cargo.lock
|
3ff0c3825b95bbdfcaca324b1611132ff2fade7bcbfd20a490e8595cd9732094 Cargo.lock
|
||||||
4b91597db4f479b381b50eb39ac58ae3e72e2cc563f7eb994a765b3ac8550977 Cargo.toml
|
4b91597db4f479b381b50eb39ac58ae3e72e2cc563f7eb994a765b3ac8550977 Cargo.toml
|
||||||
788745d4f70a0382c6280020afbd48844bb2af65e835a826852143f8132cdeca Dockerfile
|
788745d4f70a0382c6280020afbd48844bb2af65e835a826852143f8132cdeca Dockerfile
|
||||||
@@ -13,7 +13,7 @@ c0df6b46bf795d49d00fcd9e2a9247aed0d3a99b6cae1dc5ab6614e8b3d30009 build.rs
|
|||||||
95ececaba550a4bcfd6754073877ba0633373b1e1451521b9ac905a51e8ca6eb deploy/README.md
|
95ececaba550a4bcfd6754073877ba0633373b1e1451521b9ac905a51e8ca6eb deploy/README.md
|
||||||
13d514de5042a230cacf8c10abe1ef183c94ac799a89b8e2c111152ac7c69b48 deploy/rustproxy.service
|
13d514de5042a230cacf8c10abe1ef183c94ac799a89b8e2c111152ac7c69b48 deploy/rustproxy.service
|
||||||
c111f5b20484707b80efb7dd9176acbaa27b63ac78db497261ac234821e1fade dev.sh
|
c111f5b20484707b80efb7dd9176acbaa27b63ac78db497261ac234821e1fade dev.sh
|
||||||
f3aeefbf2ec7b65f63b868477e79ce4800857e2b1b260998265acd53b9c70ba1 docker-agent/README.md
|
e48ca1c5ec19b2a74d1bcccd98e803c220f839c553a03c7bd72fc1e6e30b95ae docker-agent/README.md
|
||||||
e9f18b358a740f1fe16e369ed16ee37581b8ce4c94ddeb34a1a37b89a49b5a06 docker-agent/certificate.go
|
e9f18b358a740f1fe16e369ed16ee37581b8ce4c94ddeb34a1a37b89a49b5a06 docker-agent/certificate.go
|
||||||
600d5aebc8557d6987158969d494bade1ba46ccf9d1cd573d357d0106db26b2b docker-agent/cli_test.go
|
600d5aebc8557d6987158969d494bade1ba46ccf9d1cd573d357d0106db26b2b docker-agent/cli_test.go
|
||||||
7a8ca48aca82178a301b41dfb4f1997b27f09352394d844bb2b627fa1c8aab0f docker-agent/containers.go
|
7a8ca48aca82178a301b41dfb4f1997b27f09352394d844bb2b627fa1c8aab0f docker-agent/containers.go
|
||||||
@@ -28,7 +28,7 @@ e9f18b358a740f1fe16e369ed16ee37581b8ce4c94ddeb34a1a37b89a49b5a06 docker-agent/c
|
|||||||
b849d39e94878c5a754c3d109d8e4b5e37609cfd2a0e05601a35271f4d95271e docker-agent/install.sh
|
b849d39e94878c5a754c3d109d8e4b5e37609cfd2a0e05601a35271f4d95271e docker-agent/install.sh
|
||||||
56d6acd675c44c3a39538b321d2057cf251a6a27b0ad634d827eb7d6a20de8c0 docker-agent/main.go
|
56d6acd675c44c3a39538b321d2057cf251a6a27b0ad634d827eb7d6a20de8c0 docker-agent/main.go
|
||||||
d660f46f7ef8c539dd3f5486a31d5a1254b9737be8a278c7f9352c254558f8ac docker-agent/main_test.go
|
d660f46f7ef8c539dd3f5486a31d5a1254b9737be8a278c7f9352c254558f8ac docker-agent/main_test.go
|
||||||
37d4bcd4b1cb53c8359db3304418d3ac4820a6a0c55fd80672671f24c7cdd61c docker-agent/model.go
|
ca7b438fe3ff486e633fa3b14642801a01b04fec33fc7ba6948ce980fb249638 docker-agent/model.go
|
||||||
e52b31d0abf65ae3034f6cb367cca113633014ce8d1d799ad4dd5624d2c7b8bb docker-agent/network.go
|
e52b31d0abf65ae3034f6cb367cca113633014ce8d1d799ad4dd5624d2c7b8bb docker-agent/network.go
|
||||||
021e0799a95a7c76bc245ff464d94b4495ce0d22555ca202579bd5f45e4be794 docker-agent/provision.go
|
021e0799a95a7c76bc245ff464d94b4495ce0d22555ca202579bd5f45e4be794 docker-agent/provision.go
|
||||||
4a737e5922c2255492c85d5afc053cd15d9e5b83cada648369cfdeeecdbfaa92 docker-agent/runtime.go
|
4a737e5922c2255492c85d5afc053cd15d9e5b83cada648369cfdeeecdbfaa92 docker-agent/runtime.go
|
||||||
@@ -43,8 +43,8 @@ e708fc937dba80ac311fb19e785deae4eed586923180bc2a6b1c1a21922b5c2f docs/API.md
|
|||||||
5e7b6668be6bfec77755ae45b9d369aa14135fce7632de392c6b29a7b584245a docs/CERTIFICATES.md
|
5e7b6668be6bfec77755ae45b9d369aa14135fce7632de392c6b29a7b584245a docs/CERTIFICATES.md
|
||||||
bfd185b3b16f8b9a95351c4be570c6491dd941f39799344110eea40d2ee1d185 docs/CONFIGURATION.md
|
bfd185b3b16f8b9a95351c4be570c6491dd941f39799344110eea40d2ee1d185 docs/CONFIGURATION.md
|
||||||
fec29ce846d6705eb45819d85d382f28e28a146b265feab2e4c7cce2a35e5883 docs/CUSTOM_LOCATIONS.md
|
fec29ce846d6705eb45819d85d382f28e28a146b265feab2e4c7cce2a35e5883 docs/CUSTOM_LOCATIONS.md
|
||||||
bf7d7a3071c6198fb52b6b971a752bec80c39973a62824c6a5d0fc5974628b82 docs/DASHBOARD.md
|
ce6eca6389efb4d9343d6b219f071316b683bb1316fa9b41846a2d394d902fa2 docs/DASHBOARD.md
|
||||||
d15f79249539d7c92f4041a0bb898597bd033cfd2b1f3f740fe0c84bc7dc26c5 docs/DOCKER_DISCOVERY.md
|
a9b2f6f8cbfac567258989506ca3b03427a9722f13b0d56f82b1aa6d918136f0 docs/DOCKER_DISCOVERY.md
|
||||||
763ad7bdabc61f027f08fc9dcab30d1930ae09862688e1be28a9310bd56d5ebf docs/FEATURES.md
|
763ad7bdabc61f027f08fc9dcab30d1930ae09862688e1be28a9310bd56d5ebf docs/FEATURES.md
|
||||||
2c5f97b12be53db32c7e2888d23c0ef1d82d1742df44f7e60ea818dc801a719a docs/INSTALL.md
|
2c5f97b12be53db32c7e2888d23c0ef1d82d1742df44f7e60ea818dc801a719a docs/INSTALL.md
|
||||||
6e37859bf0dced99d4a7db93790cb38fcd90191932827946d5223eaa4c784fce docs/LOGS.md
|
6e37859bf0dced99d4a7db93790cb38fcd90191932827946d5223eaa4c784fce docs/LOGS.md
|
||||||
@@ -86,7 +86,7 @@ a6b835dc07defc12b8f0e48491d5f413843c8be2ba4501d7c28140a2822b034f examples/oidc-
|
|||||||
5a8f3a8a054abc89c6e78896b9fe2f903212199a24dc3d2d2bcbd0696a31bcde examples/transport.json
|
5a8f3a8a054abc89c6e78896b9fe2f903212199a24dc3d2d2bcbd0696a31bcde examples/transport.json
|
||||||
d242de9614fbb52933b4accd32f4715ca94107abe4a3b1d7e088362b07a6ba60 examples/vhosts-balanced.json
|
d242de9614fbb52933b4accd32f4715ca94107abe4a3b1d7e088362b07a6ba60 examples/vhosts-balanced.json
|
||||||
af2bdb1343a8141069e94ccd2c7f92574ad848437e2f9fdb5c7576a9a18ef4a5 examples/vhosts-private.json
|
af2bdb1343a8141069e94ccd2c7f92574ad848437e2f9fdb5c7576a9a18ef4a5 examples/vhosts-private.json
|
||||||
91ce19f8ec3b60ccc5780d756b533f4709f3132fddd7e17866e74e4ff1c46136 grafana/README.md
|
716dd2ba150e3813116d2a8c568865b1e315f2fd29c6e636dcd72709dd444837 grafana/README.md
|
||||||
c720a4426d7b4dc52048077157dd05aefa427ae78ca811afc3b7b9cbbe875cae grafana/rustproxy-overview.json
|
c720a4426d7b4dc52048077157dd05aefa427ae78ca811afc3b7b9cbbe875cae grafana/rustproxy-overview.json
|
||||||
1a041c505669625a7f0f8011484cf5b6d2ec69a7de859801312e4fcf4c8d3555 install-debian13.sh
|
1a041c505669625a7f0f8011484cf5b6d2ec69a7de859801312e4fcf4c8d3555 install-debian13.sh
|
||||||
909e9ab94617ace74a425f15084bf85f3086cc52ba5b28f2b441ff800abc6ef9 install.sh
|
909e9ab94617ace74a425f15084bf85f3086cc52ba5b28f2b441ff800abc6ef9 install.sh
|
||||||
@@ -176,7 +176,7 @@ d58a2ed83319176de4e66790ed292447c9497ae031464ec55cfe27174acb639a src/admin/file
|
|||||||
77b8c05645969834cc8a58e249a7b60a57d6c47ad1c5cd92ffa5e4a9b5a8e73c src/admin/file_logs_query.rs
|
77b8c05645969834cc8a58e249a7b60a57d6c47ad1c5cd92ffa5e4a9b5a8e73c src/admin/file_logs_query.rs
|
||||||
743bb7436f77e04015328a0e7e7d425e43ef8aa8d61467bde157e462c1dcdc2e src/admin/logging_api.rs
|
743bb7436f77e04015328a0e7e7d425e43ef8aa8d61467bde157e462c1dcdc2e src/admin/logging_api.rs
|
||||||
243f4a9c3fa99781e19c3952354d2632c0ce65e1dafac729567cbe3c177f94cb src/admin/mod.rs
|
243f4a9c3fa99781e19c3952354d2632c0ce65e1dafac729567cbe3c177f94cb src/admin/mod.rs
|
||||||
e8accaabd974da53b3dac4b51323135052c8de68fed147d45ba3b456da109d79 src/admin/openapi.json
|
a5c8202e419989ed443fdd7dce5567657aa645fee30109b05c165628cdd60aab src/admin/openapi.json
|
||||||
f7a356109786635dd58cba590c71c796dbf36b47f25845190c75ee5c6a9fcb86 src/admin/operations.rs
|
f7a356109786635dd58cba590c71c796dbf36b47f25845190c75ee5c6a9fcb86 src/admin/operations.rs
|
||||||
257d93a29d0bda96462bcf695aba8d0ec0f9412c379e066ec46ae8ee034e3a53 src/admin/panel_assets.rs
|
257d93a29d0bda96462bcf695aba8d0ec0f9412c379e066ec46ae8ee034e3a53 src/admin/panel_assets.rs
|
||||||
f5127855c2994d052678865df36d703b74f4a0afc633daf7718b10da18d26e37 src/admin/panel_content.rs
|
f5127855c2994d052678865df36d703b74f4a0afc633daf7718b10da18d26e37 src/admin/panel_content.rs
|
||||||
|
|||||||
@@ -121,6 +121,8 @@ sudo systemctl edit podman.socket # [Socket] SocketGroup=docker SocketMode=06
|
|||||||
sudo systemctl restart podman.socket rustproxy-docker-agent
|
sudo systemctl restart podman.socket rustproxy-docker-agent
|
||||||
```
|
```
|
||||||
|
|
||||||
|
The DEB/RPM packages do this on install when Podman is present and Docker is not: they create the `docker` group if needed, add the drop-in `/etc/systemd/system/podman.socket.d/rustproxy-docker-agent.conf` (`SocketGroup=docker`, `SocketMode=0660`), restart an active `podman.socket` and start the agent when a Docker or Podman socket exists. Enable the socket yourself with `systemctl enable --now podman.socket` if it is not running; the drop-in is removed when the package is removed.
|
||||||
|
|
||||||
Containers started by `podman-compose` are grouped by their `com.docker.compose.*` or `io.podman.compose.*` labels exactly like Docker Compose services. Ports published by a Podman **pod** belong to the pod's infra container and are reported under that container name. The agent details in RustProxy show `podman` as the runtime.
|
Containers started by `podman-compose` are grouped by their `com.docker.compose.*` or `io.podman.compose.*` labels exactly like Docker Compose services. Ports published by a Podman **pod** belong to the pod's infra container and are reported under that container name. The agent details in RustProxy show `podman` as the runtime.
|
||||||
|
|
||||||
## Host diagnostics
|
## Host diagnostics
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
package main
|
package main
|
||||||
|
|
||||||
var version = "1.1.0" // overridden by the package builder using -ldflags -X main.version
|
var version = "0.37.0" // overridden by the package builder using -ldflags -X main.version
|
||||||
|
|
||||||
type config struct {
|
type config struct {
|
||||||
Listen string
|
Listen string
|
||||||
|
|||||||
+1
-1
@@ -25,7 +25,7 @@ Optional quick-health tiles (since 0.35.2, hidden by default; enable them in the
|
|||||||
|
|
||||||
Enabled tiles are added at the end of the Overview, so the standard block layout does not change.
|
Enabled tiles are added at the end of the Overview, so the standard block layout does not change.
|
||||||
|
|
||||||
Optional Docker cards (since 0.37.0, hidden by default): **Docker agents**, **Docker apps**, **Docker app requests**, **Docker hosts network**, **Docker hosts load** and **Containers**. They summarize agent connectivity, published Docker vhost health and traffic, and the host diagnostics reported by Docker/Podman agents 1.1.0+; With several agents each card can show all agents or one selected agent; see [Docker discovery](DOCKER_DISCOVERY.md#overview-cards).
|
Optional Docker cards (since 0.37.0, hidden by default): **Docker agents**, **Docker apps**, **Docker app requests**, **Docker hosts network**, **Docker hosts load** and **Containers**. They summarize agent connectivity, published Docker vhost health and traffic, and the host diagnostics reported by Docker/Podman agents 0.37.0+; With several agents each card can show all agents or one selected agent; see [Docker discovery](DOCKER_DISCOVERY.md#overview-cards).
|
||||||
|
|
||||||
In the **Backends** table with **Table density: Ultra compact**, the backend name line under each vhost is hidden to save space; hover the vhost name (dotted underline) to see the vhost and backend names in a tooltip.
|
In the **Backends** table with **Table density: Ultra compact**, the backend name line under each vhost is hidden to save space; hover the vhost name (dotted underline) to see the vhost and backend names in a tooltip.
|
||||||
|
|
||||||
|
|||||||
@@ -39,7 +39,7 @@ Go 1.22+ is required only for the manual build, not for a DEB/RPM installation.
|
|||||||
### Connect to RustProxy
|
### Connect to RustProxy
|
||||||
|
|
||||||
1. Allow port `9876` **only from the RustProxy server** in the Docker-host firewall. The default example listens on `0.0.0.0:9876`.
|
1. Allow port `9876` **only from the RustProxy server** in the Docker-host firewall. The default example listens on `0.0.0.0:9876`.
|
||||||
2. On the Docker host run `sudo rustproxy-docker-agent provision-code` (agent 1.1.0+). It prints one `RPDA1-…` code with the HTTPS endpoint, the Bearer token and the certificate SHA-256 fingerprint. The code **contains the secret token**; paste it only into the panel. Use `--endpoint-host` to put a different host/IP in the code.
|
2. On the Docker host run `sudo rustproxy-docker-agent provision-code` (agent 0.37.0+). It prints one `RPDA1-…` code with the HTTPS endpoint, the Bearer token and the certificate SHA-256 fingerprint. The code **contains the secret token**; paste it only into the panel. Use `--endpoint-host` to put a different host/IP in the code.
|
||||||
3. In **Settings → Docker agents** press **Paste provisioning code** (or open **Provisioning code** in an existing agent to update a rotated token) and paste it. The panel fills in the name, the agent ID (generated from the name like Vhost IDs, editable until saved), endpoint, token and fingerprint. Older agents: enter endpoint, token and fingerprint manually.
|
3. In **Settings → Docker agents** press **Paste provisioning code** (or open **Provisioning code** in an existing agent to update a rotated token) and paste it. The panel fills in the name, the agent ID (generated from the name like Vhost IDs, editable until saved), endpoint, token and fingerprint. Older agents: enter endpoint, token and fingerprint manually.
|
||||||
4. Assign **Domains** (at least one; the first, marked ★, is the master domain for new Docker vhosts — click ★ on another domain to make it the master), choose **Certificates** (*Automatic* or a list of certificates), the listener IDs and optional ACL profiles and **Default backend IP**, then save.
|
4. Assign **Domains** (at least one; the first, marked ★, is the master domain for new Docker vhosts — click ★ on another domain to make it the master), choose **Certificates** (*Automatic* or a list of certificates), the listener IDs and optional ACL profiles and **Default backend IP**, then save.
|
||||||
5. Use **Docker vhosts → Refresh agents** and check that discovery succeeds before publishing.
|
5. Use **Docker vhosts → Refresh agents** and check that discovery succeeds before publishing.
|
||||||
@@ -61,7 +61,7 @@ The agent default backend IP is chosen from the **addresses the agent detected**
|
|||||||
|
|
||||||
### Host diagnostics
|
### Host diagnostics
|
||||||
|
|
||||||
Agents 1.1.0+ report host data when RustProxy 0.37.0+ asks for it: OS and kernel, architecture, Docker/Podman runtime and version, uptime, load average, CPU usage, memory, swap, disk usage of the container data directory, host network totals and current rates (container/virtual interfaces excluded) and running/total container and image counts. They are shown in **Docker vhosts → Agent details → Host system** and in a compact strip in **Settings → Docker agents**. Values an agent does not send are not shown; older agents show none. Disable reporting on the agent with `RUSTPROXY_DOCKER_SYSTEM_INFO=false`.
|
Agents 0.37.0+ report host data when RustProxy 0.37.0+ asks for it: OS and kernel, architecture, Docker/Podman runtime and version, uptime, load average, CPU usage, memory, swap, disk usage of the container data directory, host network totals and current rates (container/virtual interfaces excluded) and running/total container and image counts. They are shown in **Docker vhosts → Agent details → Host system** and in a compact strip in **Settings → Docker agents**. Values an agent does not send are not shown; older agents show none. Disable reporting on the agent with `RUSTPROXY_DOCKER_SYSTEM_INFO=false`.
|
||||||
|
|
||||||
### Alerts
|
### Alerts
|
||||||
|
|
||||||
@@ -86,11 +86,11 @@ services:
|
|||||||
rustproxy.force_ssl: "true"
|
rustproxy.force_ssl: "true"
|
||||||
```
|
```
|
||||||
|
|
||||||
Also supported: `rustproxy.websockets`, `rustproxy.cache`, `rustproxy.compression` and `rustproxy.preserve_host` (`true`/`false`). Labels never leave the agent domains, never take a name already used by a vhost, redirect, 404 host or another Docker service and never override a manual setting for the same service. Invalid labels produce a **LABEL ERROR** badge and an alert instead of a vhost. Label publications use the agent defaults (listeners, certificates, ACL profiles, default backend IP). To customise one, open it and press **Apply changes** (it becomes a manual setting); switching **Publish** off stores a disabled manual override. Labels are read only from agents 1.1.0+. The option is off by default because anyone who can start containers on that host can then publish names inside the agent domains.
|
Also supported: `rustproxy.websockets`, `rustproxy.cache`, `rustproxy.compression` and `rustproxy.preserve_host` (`true`/`false`). Labels never leave the agent domains, never take a name already used by a vhost, redirect, 404 host or another Docker service and never override a manual setting for the same service. Invalid labels produce a **LABEL ERROR** badge and an alert instead of a vhost. Label publications use the agent defaults (listeners, certificates, ACL profiles, default backend IP). To customise one, open it and press **Apply changes** (it becomes a manual setting); switching **Publish** off stores a disabled manual override. Labels are read only from agents 0.37.0+. The option is off by default because anyone who can start containers on that host can then publish names inside the agent domains.
|
||||||
|
|
||||||
### Container state and history
|
### Container state and history
|
||||||
|
|
||||||
Agents 1.1.0+ report per published container its state and health check, CPU usage, memory (without page cache) with its limit and restart count; the service row shows them and Prometheus exports `rust_proxy_docker_container_*`. Containers whose image defines no `HEALTHCHECK` are shown as *no health check* (`health: "none"`) and are judged only by their state (running is fine; restarting, exited or dead raise an alert). The 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; RustProxy does not store history.
|
Agents 0.37.0+ report per published container its state and health check, CPU usage, memory (without page cache) with its limit and restart count; the service row shows them and Prometheus exports `rust_proxy_docker_container_*`. Containers whose image defines no `HEALTHCHECK` are shown as *no health check* (`health: "none"`) and are judged only by their state (running is fine; restarting, exited or dead raise an alert). The 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; RustProxy does not store history.
|
||||||
|
|
||||||
### Test connection and one-time codes
|
### Test connection and one-time codes
|
||||||
|
|
||||||
@@ -161,8 +161,8 @@ The Docker request-rate chart uses the **same adaptive Y range as ordinary Vhost
|
|||||||
- **Agent error:** verify firewall, TLS fingerprint/CA, bearer token, service state, advertised host and TCP route.
|
- **Agent error:** verify firewall, TLS fingerprint/CA, bearer token, service state, advertised host and TCP route.
|
||||||
- **503 generated Vhost:** verify running container, published TCP port, selected IP/bind address, backend protocol and health check.
|
- **503 generated Vhost:** verify running container, published TCP port, selected IP/bind address, backend protocol and health check.
|
||||||
- **Wrong application hostname:** check the master domain, alias expansion, DNS and conflicting ordinary Vhosts.
|
- **Wrong application hostname:** check the master domain, alias expansion, DNS and conflicting ordinary Vhosts.
|
||||||
- **Invalid provisioning code:** copy the whole `RPDA1-…` line; codes from agents older than 1.1.0 do not exist — enter the values manually.
|
- **Invalid provisioning code:** copy the whole `RPDA1-…` line; codes from agents older than 0.37.0 do not exist — enter the values manually.
|
||||||
- **No host diagnostics:** the agent is older than 1.1.0, `RUSTPROXY_DOCKER_SYSTEM_INFO=false` is set, or the value cannot be read on that host.
|
- **No host diagnostics:** the agent is older than 0.37.0, `RUSTPROXY_DOCKER_SYSTEM_INFO=false` is set, or the value cannot be read on that host.
|
||||||
- **Docker service not listed:** agent reports only eligible running containers with published non-loopback TCP bindings.
|
- **Docker service not listed:** agent reports only eligible running containers with published non-loopback TCP bindings.
|
||||||
|
|
||||||
For agent operations and its security model see `docker-agent/README.md`. For normal routing, health and cache controls see [Vhosts](VHOSTS.md) and [Cache](CACHE.md).
|
For agent operations and its security model see `docker-agent/README.md`. For normal routing, health and cache controls see [Vhosts](VHOSTS.md) and [Cache](CACHE.md).
|
||||||
+1
-1
@@ -27,7 +27,7 @@ scrape_configs:
|
|||||||
- targets: ["proxy-a.example.net:9191", "proxy-b.example.net:9191"]
|
- targets: ["proxy-a.example.net:9191", "proxy-b.example.net:9191"]
|
||||||
```
|
```
|
||||||
|
|
||||||
The **Docker hosts and alerts** row (RustProxy 0.37.0+, Docker agent 1.1.0+)
|
The **Docker hosts and alerts** row (RustProxy 0.37.0+, Docker agent 0.37.0+)
|
||||||
uses `rust_proxy_docker_agent_up`, `rust_proxy_docker_host_*`,
|
uses `rust_proxy_docker_agent_up`, `rust_proxy_docker_host_*`,
|
||||||
`rust_proxy_docker_container_*` and `rust_proxy_docker_alert`: agents up,
|
`rust_proxy_docker_container_*` and `rust_proxy_docker_alert`: agents up,
|
||||||
active alerts with a table (agent offline, disk/memory/load thresholds, missing
|
active alerts with a table (agent offline, disk/memory/load thresholds, missing
|
||||||
|
|||||||
@@ -3517,7 +3517,7 @@
|
|||||||
"additionalProperties": {
|
"additionalProperties": {
|
||||||
"type": "string"
|
"type": "string"
|
||||||
},
|
},
|
||||||
"description": "rustproxy.* container labels (agent 1.1.0+, only with ?system=1)."
|
"description": "rustproxy.* container labels (agent 0.37.0+, only with ?system=1)."
|
||||||
},
|
},
|
||||||
"container": {
|
"container": {
|
||||||
"allOf": [
|
"allOf": [
|
||||||
@@ -3525,7 +3525,7 @@
|
|||||||
"$ref": "#/components/schemas/DockerContainerState"
|
"$ref": "#/components/schemas/DockerContainerState"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"description": "Container state, health, restarts, CPU and memory (agent 1.1.0+)."
|
"description": "Container state, health, restarts, CPU and memory (agent 0.37.0+)."
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"required": [
|
"required": [
|
||||||
@@ -8345,7 +8345,7 @@
|
|||||||
},
|
},
|
||||||
"DockerSystemInfo": {
|
"DockerSystemInfo": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"description": "Optional host diagnostics reported by Docker agent 1.1.0+ when RustProxy 0.37.0+ requests /v1/inventory?system=1. Every field is optional; unknown fields are ignored.",
|
"description": "Optional host diagnostics reported by Docker agent 0.37.0+ when RustProxy 0.37.0+ requests /v1/inventory?system=1. Every field is optional; unknown fields are ignored.",
|
||||||
"properties": {
|
"properties": {
|
||||||
"os": {
|
"os": {
|
||||||
"type": "string"
|
"type": "string"
|
||||||
|
|||||||
Reference in new issue
Block a user