v0.38.10
This commit is contained in:
1 parent
38a23e2210
commit
45b1fc04c7
36 files changed
+9594
-7892
No files matched your search
+11
-5
@@ -2,7 +2,7 @@
|
||||
"openapi": "3.0.3",
|
||||
"info": {
|
||||
"title": "RustProxy Administration API",
|
||||
"version": "0.38.7",
|
||||
"version": "0.38.8",
|
||||
"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": [
|
||||
@@ -8770,7 +8770,7 @@
|
||||
},
|
||||
"CacheRule": {
|
||||
"type": "object",
|
||||
"description": "Cache rule (since 0.37.1). Request rules run before the cache lookup (vcl_recv/vcl_hash), response rules on a backend response (vcl_backend_response), deliver rules on every response sent to the client (vcl_deliver). Vhost rules run before global rules; for TTL, grace, pass and no_store the first matching rule wins.",
|
||||
"description": "Cache rule (since 0.37.1, extended in 0.38.8). Request rules run in vcl_recv then vcl_hash after return(hash); response rules run before origin cache admission; deliver rules run before sending headers. Vhost rules precede global rules and own their mutated header fields. Later assignments in the same scope take precedence unless a terminal return stops the stage. VCL import is a supported subset and returns warnings for unsupported operations.",
|
||||
"required": [
|
||||
"id",
|
||||
"actions"
|
||||
@@ -8856,13 +8856,14 @@
|
||||
},
|
||||
"actions": {
|
||||
"type": "array",
|
||||
"minItems": 1,
|
||||
"minItems": 0,
|
||||
"maxItems": 16,
|
||||
"items": {
|
||||
"type": "object",
|
||||
"description": "type: pass, strip_cookies{keep}, strip_query{params,keep_only}, hash_header{name}, hash_cookie{name} (request); ttl{seconds}, grace{seconds}, no_store, ignore_cache_control, strip_set_cookie (response); set_header{name,value}, default_header{name,value} (only when the response lacks the header, since 0.37.2), remove_header{name} (deliver; deliver rules apply to every response of the vhost, also when caching is off).",
|
||||
"description": "type: pass, lookup (VCL return(hash), Cookie exception in Varnish-compatible mode), strip_cookies{keep}, strip_query{params,keep_only}, hash_header{name}, hash_cookie{name}, set_request_header{name,value}, remove_request_header{name} (request; protected auth/cache/framing headers cannot be changed); ttl{seconds}, grace{seconds}, no_store, allow_store (reverses rule no_store only; origin restrictions remain), ignore_cache_control, strip_set_cookie, set_backend_header{name,value}, remove_backend_header{name} (response, applied before cacheability and forwarded headers); set_header{name,value}, default_header{name,value}, remove_header{name} (deliver, including cache-disabled responses).",
|
||||
"additionalProperties": true
|
||||
}
|
||||
},
|
||||
"description": "Zero actions allowed only with stop=true (terminal return)."
|
||||
},
|
||||
"stop": {
|
||||
"type": "boolean"
|
||||
@@ -8873,6 +8874,11 @@
|
||||
"type": "string"
|
||||
},
|
||||
"description": "Global rules only: limit to these vhost ids (empty = all)."
|
||||
},
|
||||
"hash_stage": {
|
||||
"type": "boolean",
|
||||
"default": false,
|
||||
"description": "Run this request-stage rule in vcl_hash, after vcl_recv. Imported VCL sets this automatically."
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user