feat(gateway): harden failover and payload handling

Retry pre-response transport failures across candidates with an explicit stop policy, and propagate end-to-end timing into usage records and UI diagnostics.

Remove legacy body, import, cookie, PII, and tunnel replay caps while preserving optional operator-configured gateway limits.
This commit is contained in:
elky
2026-07-30 01:03:27 +08:00
parent a97acc07fc
commit a04673a90d
80 changed files with 3640 additions and 1236 deletions
@@ -116,15 +116,11 @@
<RequestLogSection
id="section-request-log"
:request-record-level="systemConfig.request_record_level"
:max-request-body-size-k-b="maxRequestBodySizeKB"
:max-response-body-size-k-b="maxResponseBodySizeKB"
:sensitive-headers-str="sensitiveHeadersStr"
:loading="systemConfigLoading || logConfigLoading"
:has-changes="hasLogConfigChanges"
@save="saveLogConfig"
@update:request-record-level="systemConfig.request_record_level = $event"
@update:max-request-body-size-k-b="maxRequestBodySizeKB = $event"
@update:max-response-body-size-k-b="maxResponseBodySizeKB = $event"
@update:sensitive-headers-str="sensitiveHeadersStr = $event"
/>
@@ -359,8 +355,6 @@ const {
hasBasicConfigChanges,
hasLogConfigChanges,
hasCleanupConfigChanges,
maxRequestBodySizeKB,
maxResponseBodySizeKB,
sensitiveHeadersStr,
turnstileAllowedHostnamesStr,
loadSystemConfig,