v0.37.2
This commit is contained in:
1 parent
f48843e934
commit
e2c8099d9c
64 files changed
+5354
-673
No files matched your search
@@ -48,17 +48,23 @@ Go 1.22+ is required only for the manual build, not for a DEB/RPM installation.
|
||||
|
||||
An agent has a list of DNS suffixes (`domains`, up to 16), picked in the same searchable multi-select as ACL profiles; type a new domain in the search box and press Enter to add it. Suggestions come from other agents and from wildcard certificates. Every published Docker vhost selects its **master domain** from this list (default: the first domain), so a newly published service is reachable immediately as `<container-name>.<master domain>`. The ★ button on a domain in the picker makes it the master domain. **Aliases** may be short labels (expanded below the master domain, or below another agent domain chosen next to the alias input, which lists the master domain only once) or full names, which the panel only accepts inside one of the agent domains. Configurations from before 0.37.0 with a single `base_domain` are migrated to `domains: [base_domain]` on the next save; nothing else changes.
|
||||
|
||||
The same domain may be assigned to **several agents** (for example two Docker hosts serving `apps.example.com`); the picker then lists every agent that uses it. Only the final names must stay unique: two services on different agents cannot publish the same hostname or alias.
|
||||
|
||||
### Certificates
|
||||
|
||||
- **Automatic** (no certificate selected, the default): generated vhosts behave like a Vhost left on *Global SNI / default certificate* — every requested name gets the stored certificate whose SNI/SAN names cover it.
|
||||
- **Selected certificates**: each generated vhost uses the selected certificate covering **all** its names (exact names beat wildcards, then the narrowest certificate). If none covers them, it falls back to the generic SNI/default certificate, so each name can still be served by the matching stored certificate. The per-service editor shows which certificate will be used. *Accept certificate/domain mismatch* forces the first selected certificate when none covers the names.
|
||||
|
||||
In the certificate list every name is labelled with what it covers — *main domain*, *www*, *wildcard* or *subdomain* — for example `example.com (main domain), *.example.com (wildcard)`. Wildcard certificates suggested as agent domains show the certificate ID and *(wildcard)*.
|
||||
|
||||
A previously selected single `certificate_id` is migrated to `certificate_ids: [certificate_id]`.
|
||||
|
||||
### Default backend IP
|
||||
|
||||
The agent default backend IP is chosen from the **addresses the agent detected** or entered as **Custom address…**. The list is grouped into *Recommended* (primary route, public address or `RUSTPROXY_DOCKER_ADVERTISE_IP` override, the primary one marked ★), *Other host interfaces* and, from agent 0.37.1, *Container bridges* (`docker0`, `br-*`, `podman*`, `cni-*`, `virbr*`), which are reachable only when RustProxy runs on the same host. *Automatic* keeps the per-service choice (bind address, primary IP, detected addresses). The list fills after the first successful poll.
|
||||
|
||||
Agent 0.37.2 lists every active host interface again on systemd installations: the unit now allows `AF_NETLINK`, which the interface enumeration needs, and when netlink is still blocked (older unit, hardened container) the agent falls back to `/proc/net/if_inet6`, `/proc/net/fib_trie` and `/proc/net/route`. After upgrading, reinstall the unit (`install -m 0644 rustproxy-docker-agent.service /etc/systemd/system/`, `systemctl daemon-reload`, restart) so all addresses — not only the routed and public ones — appear. The agent default IP option is no longer listed a second time under the detected addresses, because *Auto / agent default* already shows it.
|
||||
|
||||
### Host diagnostics
|
||||
|
||||
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`.
|
||||
@@ -124,6 +130,8 @@ Agent inventory polling is separate from the panel's live status refresh. A new
|
||||
|
||||
## Publish a discovered application
|
||||
|
||||
Endpoints that belong together are **grouped**: every published port of one Docker Compose / Podman Compose project (all its services and replicas), or of one plain container with several ports, appears under a collapsible group header showing the project or container name, the number of endpoints, how many are published and their hostnames. Single endpoints stay ungrouped. Sorting and search work inside groups; the collapsed state is remembered in the browser. Grouping is display only — each port is still published and configured on its own.
|
||||
|
||||
In **Docker vhosts**, select the service and set:
|
||||
|
||||
| Option | Guidance |
|
||||
@@ -134,8 +142,8 @@ In **Docker vhosts**, select the service and set:
|
||||
| **Frontend listeners / certificate** | Selected through the agent defaults: automatic SNI or the agent's certificate list (see [Certificates](#certificates)); the editor shows the certificate that will be used. |
|
||||
| **Frontend protocols** | HTTP/1.1 is always available. Enable/disable HTTP/2 and HTTP/3 independently per Docker vhost (both enabled by default). H2/H3 require corresponding frontend listener support; switching them does not change the selected HTTP/HTTPS backend scheme. H3 disabled also removes its advertisement. |
|
||||
| **Force HTTPS / WebSockets** | Enable only when needed and when the right frontend listeners exist. |
|
||||
| **Cache / compression / transforms** | Optional; obey the global limits and privacy policy of the application. |
|
||||
| **Health / ACL / timeouts** | Select up to eight reusable ACL profiles per app or inherit the agent's defaults. A searchable multi-select previews the profile ID, default action, IP rules and country filters; selected profiles appear as removable badges. Optional inline ACL remains independently enforced. Explicit denies and country blocks beat merged allows. Test allowed and blocked clients. |
|
||||
| **Cache / compression / transforms** | Optional; obey the global limits and privacy policy of the application. With **Cache** enabled, **Cache for this vhost** sets a default TTL (empty = global default) and the same cache rules editor as an ordinary vhost (templates, VCL import/preview, tester, *Ignore global cache rules*); see [Cache rules](CACHE.md#cache-rules-vcl-style). Stored as `cache_default_ttl_seconds`, `cache_rules` and `cache_ignore_global_rules` on the assignment. |
|
||||
| **Health / ACL / timeouts** | **Access control** shows the agent default ACL profiles pre-selected (*Agent default in use: …*). Unchecking or changing them overrides the default for this service only; leaving them as they are keeps following the agent default. **Public vhost (no agent default ACL)** publishes the service without the agent default profiles (`inherit_acl_profiles: false`) and disables the per-app ACL; global block/allow rules still apply. Up to eight reusable ACL profiles per app; selected profiles appear as removable badges and the summary line shows the effective state. Optional inline ACL remains independently enforced. Explicit denies and country blocks beat merged allows. Test allowed and blocked clients. |
|
||||
|
||||
To deliberately assign a domain not covered by any of the agent's **selected certificates**, enable **Accept certificate/domain mismatch** immediately below **Backend host IP** in the per-service editor and confirm the risk. This records `allow_certificate_mismatch: true` on that publication only. Without consent, the server rejects the incompatible mapping. The client browser may still reject the TLS handshake; a matching SAN certificate is strongly preferred. The agent's own outbound TLS fingerprint validation is unaffected.
|
||||
|
||||
|
||||
Reference in new issue
Block a user