This commit is contained in:
Mateusz Gruszczyński committed 2026-11-19 12:40:17 +01:00
1 parent d4a604970e
commit 38a23e2210
40 files changed
+928 -532

No files matched your search

+56 -11
View File
@@ -2,7 +2,7 @@
"openapi": "3.0.3",
"info": {
"title": "RustProxy Administration API",
"version": "0.38.6",
"version": "0.38.7",
"description": "Administration API for the active panel origin. Sign in through the panel; the same-origin HttpOnly cookie authenticates all private operations. Mutations also require the exact Origin, X-RustProxy-Request: 1 and a session-bound X-CSRF-Token. Loopback HTTP is the default; Settings can enable HTTPS before using a non-loopback administration bind. This document contains no live configuration or credentials. Object schemas marked extensible are summaries: full configuration validation is authoritative in Rust. The API also permits explicitly scoped GeneralApiBearer tokens on a narrow route allowlist, with RO/RW and source CIDR checks; API-token management and Prometheus-token management are browser-session-only."
},
"servers": [
@@ -862,13 +862,19 @@
},
"timing_header_names": {
"type": "string",
"enum": ["standard", "cdn", "legacy"],
"enum": [
"standard",
"cdn",
"legacy"
],
"default": "standard",
"description": "Metric names in Server-Timing. standard (reverse proxy): proxy;dur, upstream;dur, proxy-cache;desc. cdn (RustProxy is the outermost CDN-like edge): edge;dur, origin;dur, cdn-cache;desc. legacy (before 0.38.2): proxy;dur, origin;dur, cache;desc. The cache value is HIT, MISS, BYPASS, STALE or REVALIDATED."
},
"timing_allow_origin": {
"type": "array",
"items": { "type": "string" },
"items": {
"type": "string"
},
"maxItems": 16,
"description": "Timing-Allow-Origin sent with Server-Timing: origins such as https://app.example.com that may read the timings from scripts, or a single \"*\". Empty sends no header (same-origin scripts can always read them)."
},
@@ -2513,6 +2519,11 @@
"$ref": "#/components/schemas/CacheRule"
},
"description": "Global cache rules (Cache → Rules)."
},
"static_ignore_vary_cookie": {
"type": "boolean",
"default": true,
"description": "For cookie-independent configured static extensions only, omit Cookie from Vary on explicitly public, otherwise cacheable responses. Requires static_ignore_cookies. Preserves other Vary dimensions and all private/no-store/Set-Cookie safeguards."
}
},
"additionalProperties": false
@@ -3461,14 +3472,48 @@
"default": false,
"description": "Explicit, persistent administrator opt-in: allow assigning a named public certificate to hostnames not covered by its DNS SAN. This does not suppress TLS client warnings, validate the certificate less during agent polling, or disable backend TLS verification. Requires a named certificate."
},
"timing_headers": { "type": "boolean", "default": false, "description": "Since 0.38.3. Server-Timing diagnostics for this Docker vhost." },
"backend_header": { "type": "boolean", "default": false, "description": "Since 0.38.3. X-Rust-Proxy-Backend with the generated backend id." },
"backend_timing_header": { "type": "boolean", "default": false, "description": "Since 0.38.3. X-RustProxy-Backend-Time with the origin response-header latency." },
"cloudflare_client_ip": { "type": "boolean", "default": false, "description": "Since 0.38.3. Use verified Cloudflare client-IP and country headers, as on ordinary vhosts." },
"method_policy": { "type": "object", "description": "Since 0.38.3. Same format as the vhost method_policy: mode off, allow or block with a list of methods." },
"rate_limit": { "type": "object", "nullable": true, "default": null, "description": "Since 0.38.3. Same format as the vhost rate_limit (per-client IP limit and country_access); null = off." },
"security_headers": { "type": "object", "nullable": true, "default": null, "description": "Since 0.38.3. Same format as the vhost security_headers (HSTS, nosniff, frame_options, referrer_policy, CSP, permissions policy); null = none." },
"basic_auth": { "type": "object", "nullable": true, "default": null, "description": "Since 0.38.3. Same format as the vhost basic_auth: enabled, realm, require_tls, forward_credentials and users with Argon2id password_hash from POST /api/basic-auth/hash; null = no login." }
"timing_headers": {
"type": "boolean",
"default": false,
"description": "Since 0.38.3. Server-Timing diagnostics for this Docker vhost."
},
"backend_header": {
"type": "boolean",
"default": false,
"description": "Since 0.38.3. X-Rust-Proxy-Backend with the generated backend id."
},
"backend_timing_header": {
"type": "boolean",
"default": false,
"description": "Since 0.38.3. X-RustProxy-Backend-Time with the origin response-header latency."
},
"cloudflare_client_ip": {
"type": "boolean",
"default": false,
"description": "Since 0.38.3. Use verified Cloudflare client-IP and country headers, as on ordinary vhosts."
},
"method_policy": {
"type": "object",
"description": "Since 0.38.3. Same format as the vhost method_policy: mode off, allow or block with a list of methods."
},
"rate_limit": {
"type": "object",
"nullable": true,
"default": null,
"description": "Since 0.38.3. Same format as the vhost rate_limit (per-client IP limit and country_access); null = off."
},
"security_headers": {
"type": "object",
"nullable": true,
"default": null,
"description": "Since 0.38.3. Same format as the vhost security_headers (HSTS, nosniff, frame_options, referrer_policy, CSP, permissions policy); null = none."
},
"basic_auth": {
"type": "object",
"nullable": true,
"default": null,
"description": "Since 0.38.3. Same format as the vhost basic_auth: enabled, realm, require_tls, forward_credentials and users with Argon2id password_hash from POST /api/basic-auth/hash; null = no login."
}
},
"required": [
"service_key",