This commit is contained in:
Mateusz Gruszczyński committed 2026-11-26 08:50:30 +01:00
1 parent 167861fc16
commit aa0a271a1c
38 files changed
+3642 -1058

No files matched your search

+195 -4
View File
@@ -2321,7 +2321,7 @@
"aboutLicenseValue": "GNU AGPL v3.0 or later",
"aboutOpenSourceText": "RustProxy is free and open-source software. You may use, study, modify and redistribute it under the terms of the GNU Affero General Public License, version 3 or any later version.",
"aboutRepository": "Source code",
"aboutPackagesRepository": "Website and packages",
"aboutPackagesRepository": "Packages",
"aboutPythonRuntime": "Certificate Python runtime",
"runtimePython": "Python",
"runtimePip": "pip",
@@ -4143,7 +4143,7 @@
"policyIgnoreCase": "Ignore ASCII letter case",
"policyCombine": "Combine conditions with",
"policyAddCondition": "Add condition",
"policyConditionsHelp": "An empty all group always matches. Values within a comparison are alternatives. Use full-header fetches (fhdr) to preserve commas and fhdr_cnt to count field occurrences. Named ACL: {\"acl\":\"name\"}.",
"policyConditionsHelp": "Add conditions with AND or OR. Values within one comparison are alternatives. Existing nested expressions stay intact; use Advanced condition JSON for NOT and named ACLs. Full-header fetches (fhdr) preserve commas; fhdr_cnt counts field occurrences.",
"policyActions": "Actions in order",
"policyAddAction": "Add action",
"policyActionLimit": "A rule can contain at most 16 actions.",
@@ -4243,6 +4243,197 @@
"policyScope": "Scope / Vhost / location",
"policyMatches": "Matches",
"policyErrors": "Action errors",
"policyCountersEmpty": "No enabled policy rules in the saved configuration."
"policyCountersEmpty": "No enabled policy rules in the saved configuration.",
"policyConditionSingleNumber": "Numeric comparisons other than eq require exactly one value.",
"policyTemplateAvailable": "Scenarios: {count}",
"policyTemplates": "Scenario presets",
"policyTemplatesIntro": "Choose a scenario to add its rules to this draft. Review the values, then save the configuration.",
"policyTemplateSearch": "Search scenarios",
"policyTemplateCategory": "Category",
"policyTemplateAll": "All scenarios",
"policyTemplateAdd": "Add scenario",
"policyTemplatePreview": "Preview rules",
"policyTemplateNone": "No scenarios match your search.",
"policyTemplateCount": "Rules: {count}",
"policyTemplateAdded": "Added “{name}”. Rules: {count}. Review and save to activate.",
"policyConditionEmpty": "No conditions — matches every request reaching this stage.",
"policyConditionsCount": "Conditions: {count}",
"policyConditionAlways": "Always",
"policyConditionNever": "Never (empty OR group)",
"policyConditionAdded": "Condition added.",
"policyConditionFetchRequired": "Enter a sample expression, for example path or req.fhdr(Host).",
"policyConditionValuesRequired": "Enter at least one value, one per line.",
"policyConditionLimit": "A condition group can contain at most 32 entries.",
"policyConditionValueLimit": "A comparison can contain at most 64 values.",
"policyConditionNumber": "Numeric comparisons require whole-number values.",
"policyConditionDraft": "Fill in the condition, then choose Add condition.",
"policyConditionAdvanced": "Advanced condition JSON",
"policyConditionRemove": "Remove condition",
"policyActionStage": "This action is not available in the selected stage. Choose another action or stage.",
"policyStopHelp": "Stops later rules in this scope and stage only; other scopes and stages still run.",
"policyPresetCategoryHeaders": "Headers",
"policyPresetCategoryCache": "Cache and streaming",
"policyPresetCategorySecurity": "Security",
"policyPresetCategoryRouting": "Routing and redirects",
"policyPresetCategoryDiagnostics": "Diagnostics",
"policyPresetNormalizeDescription": "Merge repeated Vary fields and remove duplicate tokens at final delivery, preserving every representation dimension.",
"policyPresetNormalizeNote": "Preserves Vary: * and leaves malformed values unchanged. Does not make a private response cacheable.",
"policyPresetVaryDescription": "Repair exactly two Vary fields: Accept-Encoding plus Accept, Accept-Encoding, before cache admission.",
"policyPresetVaryNote": "Other field counts or values do not match. For general cleanup, use Normalize Vary. Backend-response policies disable background cache refresh.",
"policyPresetSecurityHeaders": "Add missing security headers",
"policyPresetSecurityHeadersDescription": "Add X-Content-Type-Options: nosniff and Referrer-Policy: strict-origin-when-cross-origin only when absent.",
"policyPresetSecurityHeadersNote": "Keeps the application’s existing values. Check that scripts and styles have the correct Content-Type.",
"policyPresetHideOrigin": "Hide server technology headers",
"policyPresetHideOriginDescription": "Remove Server, X-Powered-By and X-AspNet-Version from the final response.",
"policyPresetHideOriginNote": "Only removes these response headers; it does not hide information exposed by page content or error bodies.",
"policyPresetPrivateRoutes": "Keep account and checkout pages private",
"policyPresetPrivateRoutesDescription": "Bypass cache and storage for admin, account, login, logout, cart, checkout, payment, billing and orders paths; send private, no-store.",
"policyPresetPrivateRoutesNote": "Adjust the path expression to your application. This recipe does not add authentication or remove existing cache entries.",
"policyPresetPrivateRoutesRequest": "Private routes — bypass and prevent storage",
"policyPresetPrivateRoutesResponse": "Private routes — browser cache headers",
"policyPresetAuthorizationBypass": "Bypass cache for Authorization",
"policyPresetAuthorizationBypassDescription": "Requests carrying Authorization bypass cache and storage; their final responses receive Cache-Control: private, no-store.",
"policyPresetAuthorizationBypassNote": "Matches the presence of any Authorization field. The header is preserved; this recipe does not validate credentials.",
"policyPresetAuthorizationBypassRequest": "Authorization — bypass and prevent storage",
"policyPresetAuthorizationBypassResponse": "Authorization — browser cache headers",
"policyPresetCookieBypass": "Bypass cache for any Cookie",
"policyPresetCookieBypassDescription": "Requests with Cookie bypass cache and storage, with private, no-store on the final response.",
"policyPresetCookieBypassNote": "Includes analytics and consent cookies. For narrower matching, replace the condition with req.cook(your_session_cookie).",
"policyPresetCookieBypassRequest": "Cookies — bypass and prevent storage",
"policyPresetCookieBypassResponse": "Cookies — browser cache headers",
"policyPresetSetCookieNoStore": "Do not store responses setting cookies",
"policyPresetSetCookieNoStoreDescription": "Prevent storage when an origin response has Set-Cookie, and send Cache-Control: private, no-store to clients.",
"policyPresetSetCookieNoStoreNote": "Preserves every Set-Cookie field. Existing cache entries are not purged. Backend-response policies disable background cache refresh.",
"policyPresetSetCookieNoStoreResponse": "Set-Cookie — browser cache headers",
"policyPresetErrorsNoStore": "Do not cache HTTP errors",
"policyPresetErrorsNoStoreDescription": "Prevent storage of backend 4xx/5xx responses and set Cache-Control: no-store on final error responses.",
"policyPresetErrorsNoStoreNote": "Does not retry requests or change error status/body. Existing entries are not purged; backend-response policies disable background cache refresh.",
"policyPresetErrorsNoStoreResponse": "HTTP errors — browser cache headers",
"policyPresetHealthBypass": "Keep health checks and metrics fresh",
"policyPresetHealthBypassDescription": "Bypass cache and storage for health, healthz, readyz, livez and metrics paths; send private, no-store.",
"policyPresetHealthBypassNote": "Adjust endpoint names. This changes cache handling only and does not grant or restrict endpoint access.",
"policyPresetHealthBypassRequest": "Health checks — bypass and prevent storage",
"policyPresetHealthBypassResponse": "Health checks — browser cache headers",
"policyPresetSse": "Keep server-sent events streaming",
"policyPresetSseDescription": "Bypass cache for Accept: text/event-stream; prevent event-stream storage and disable RustProxy compression before delivery.",
"policyPresetSseNote": "Clients must send Accept: text/event-stream to bypass existing entries. Origin compression is unchanged. Backend-response policies disable background cache refresh.",
"policyPresetSseRequest": "SSE — request cache bypass",
"policyPresetSseOrigin": "SSE — prevent origin response storage",
"policyPresetSseResponse": "SSE — uncompressed delivery",
"policyPresetBlockMethods": "Block TRACE and CONNECT",
"policyPresetBlockMethodsDescription": "Return 403 for TRACE and CONNECT requests after access and authentication checks.",
"policyPresetBlockMethodsNote": "Other methods are unchanged. Existing listener or access rules can reject these requests before this policy runs.",
"policyPresetBlockSensitiveFiles": "Block .env and repository paths",
"policyPresetBlockSensitiveFilesDescription": "Return 403 for literal .env, .env.* and .git/.svn/.hg path segments, including nested paths.",
"policyPresetBlockSensitiveFilesNote": "Does not block .well-known. Matches the path as received, not all encoded aliases; keep secrets outside the document root.",
"policyPresetRequestId": "Expose a request correlation ID",
"policyPresetRequestIdDescription": "Add X-Correlation-ID from the current request ID at final delivery, only when that response header is absent.",
"policyPresetRequestIdNote": "Uses the proxy’s req_id sample and preserves application correlation IDs. The protected X-Request-ID header is unchanged.",
"policyPresetLegacyRedirect": "Redirect a retired URL",
"policyPresetLegacyRedirectDescription": "Start with an exact /old-path → /new-path redirect using HTTP 302 after access and authentication checks.",
"policyPresetLegacyRedirectNote": "Added disabled. Edit both paths, choose the redirect status, then enable. The example drops the original query string.",
"policyPresetVaryLanguage": "Separate language variants",
"policyPresetVaryLanguageDescription": "Merge Accept-Language into Vary for /localized/ responses before the shared cache plan.",
"policyPresetVaryLanguageNote": "Added disabled. Edit the path; use only when the origin actually varies by this header. Keeps existing Vary dimensions. Backend-response policies disable background refresh.",
"policyPresetCorsOriginReset": "CORS — reset access and vary by Origin",
"policyPresetCorsOriginAllow": "CORS — allow the configured frontend",
"policyPresetCorsOrigin": "CORS for one frontend, without credentials",
"policyPresetCorsOriginDescription": "For /api/, clear previous CORS origin/credential headers and allow only https://app.example.test; merge Origin into Vary on every matching response.",
"policyPresetCorsOriginNote": "Added disabled. Edit the origin and path in both rules. The application must handle OPTIONS/preflight and authentication. This recipe does not allow credentialed browser requests.",
"policyPresetCorsExpose": "Expose ETag and correlation ID to CORS clients",
"policyPresetCorsExposeDescription": "Merge ETag and X-Correlation-ID into Access-Control-Expose-Headers when the response already permits a CORS origin.",
"policyPresetCorsExposeNote": "Preserves existing exposed names. Does not create the two headers or grant CORS access; configure the application’s origin/preflight policy separately.",
"policyPresetRewriteLocation": "Rewrite internal redirect locations",
"policyPresetRewriteLocationDescription": "Replace http://backend.internal[:port]/… in 3xx Location headers with https://app.example.test/…, preserving the path and query.",
"policyPresetRewriteLocationNote": "Added disabled. Edit both hosts and the regex. Only matching Location fields change; this does not rewrite links inside response bodies.",
"policyPresetDownloadAttachment": "Download a selected path as an attachment",
"policyPresetDownloadAttachmentDescription": "Set Content-Disposition: attachment on successful 2xx responses below /downloads/.",
"policyPresetDownloadAttachmentNote": "Added disabled. Edit the path. No filename is generated; the browser uses its normal fallback. This changes presentation, not file authorization.",
"policyPresetSameOriginFrames": "Restrict framing to the same origin",
"policyPresetSameOriginFramesDescription": "Add X-Frame-Options: SAMEORIGIN when the application has not provided that header.",
"policyPresetSameOriginFramesNote": "Added disabled. Review embedded dashboards and widgets first. An existing CSP frame-ancestors directive can take precedence and must be checked separately.",
"policyPresetHstsTls": "Trial HSTS on HTTPS responses",
"policyPresetHstsTlsDescription": "Add Strict-Transport-Security: max-age=300 only on TLS requests, without includeSubDomains or preload.",
"policyPresetHstsTlsNote": "Added disabled. Verify a working trusted HTTPS endpoint before enabling. Uses the actual RustProxy listener’s TLS state and preserves any existing HSTS value.",
"policyPresetPermissionsPolicy": "Disable unused browser device permissions",
"policyPresetPermissionsPolicyDescription": "Add Permissions-Policy denying camera, microphone and geolocation when that header is absent.",
"policyPresetPermissionsPolicyNote": "Added disabled. Remove restrictions your application needs, including embedded content. Existing application policy is preserved.",
"policyPresetCspReportOnly": "Audit a self-only Content Security Policy",
"policyPresetCspReportOnlyDescription": "Add a report-only CSP using default-src and base-uri self, with object-src none, without blocking resources.",
"policyPresetCspReportOnlyNote": "Added disabled. Review browser-console violations and adapt resource origins. No report endpoint is configured; existing report-only CSP is kept.",
"policyPresetRobotsNoindex": "Keep a staging site out of search indexes",
"policyPresetRobotsNoindexDescription": "Set X-Robots-Tag: noindex, nofollow on responses in the selected policy scope.",
"policyPresetRobotsNoindexNote": "Added disabled. Use only on sites that should not be indexed; global scope affects every applicable Vhost. This is crawler advice, not access protection.",
"policyPresetCrosssiteMutations": "Reject browser cross-site write requests",
"policyPresetCrosssiteMutationsDescription": "Return 403 for POST, PUT, PATCH or DELETE when Sec-Fetch-Site is cross-site.",
"policyPresetCrosssiteMutationsNote": "Added disabled. Review cross-site forms and integrations first. Requests without this browser header are unaffected; keep the application’s CSRF protection.",
"policyPresetApiJsonOnly": "Require JSON Content-Type for API writes",
"policyPresetApiJsonOnlyDescription": "Return 415 for POST, PUT and PATCH below /api/ unless exactly one Content-Type field declares application/json or an application/*+json type.",
"policyPresetApiJsonOnlyNote": "Added disabled. Edit the API path and exclude upload/form endpoints. Missing or duplicate Content-Type fields are rejected. This checks headers only; the application must still parse and validate the body.",
"policyPresetRestrictedPathNetwork": "Limit an internal path to a client network",
"policyPresetRestrictedPathNetworkDescription": "Return 403 below /internal unless the trusted client IP is in the configured CIDR range.",
"policyPresetRestrictedPathNetworkNote": "Added disabled. Replace the example 203.0.113.0/24 network and path before enabling. This supplements existing access/authentication checks and does not trust arbitrary forwarding headers.",
"policyPresetPreviewQueryRequest": "Preview query — bypass and prevent storage",
"policyPresetPreviewQueryResponse": "Preview query — browser cache headers",
"policyPresetPreviewQuery": "Keep preview and draft URLs out of cache",
"policyPresetPreviewQueryDescription": "Bypass cache/storage when preview or draft query parameters are present, and send private, no-store on the final response.",
"policyPresetPreviewQueryNote": "Added disabled. Match uses literal query names; adapt them to your app. Any value, even empty or false, matches. This does not authorize draft access.",
"policyPresetSignedUrlRequest": "Signed URL — bypass and prevent storage",
"policyPresetSignedUrlResponse": "Signed URL — browser cache headers",
"policyPresetSignedUrlBypass": "Keep signed and token URLs out of cache",
"policyPresetSignedUrlBypassDescription": "Bypass cache/storage for token, signature, X-Amz-Signature or X-Goog-Signature query parameters; send private, no-store.",
"policyPresetSignedUrlBypassNote": "Added disabled. Uses literal parameter names; adapt them to your signing scheme. The application still validates signatures/expiry; existing entries are not purged.",
"policyPresetHtmlRevalidate": "Revalidate HTML without cache instructions",
"policyPresetHtmlRevalidateDescription": "Add Cache-Control: no-cache to text/html responses only when Cache-Control is absent.",
"policyPresetHtmlRevalidateNote": "Keeps existing private/no-store and other cache directives. Affects downstream revalidation, not the stored object’s shared-cache TTL; no-cache is not no-store.",
"policyPresetPublicApiTtl": "Set TTL and grace for an explicitly public API",
"policyPresetPublicApiTtlDescription": "Use 60 seconds TTL and 30 seconds grace for /api/public responses explicitly marked public, without Set-Cookie or private/no-cache/no-store directives.",
"policyPresetPublicApiTtlNote": "Added disabled. Edit the path/durations. Requires cache; credential/privacy checks remain. VCL TTL/grace wins, and backend-response policies disable background refresh.",
"policyPresetCanonicalHost": "Redirect an alias to the canonical host",
"policyPresetCanonicalHostDescription": "Redirect www.example.test to https://example.test with HTTP 308, preserving path, query and request method.",
"policyPresetCanonicalHostNote": "Added disabled. Edit both domains and verify the destination certificate. The target host is fixed, never reflected from an arbitrary client Host header.",
"policyPresetHttpsHost": "Redirect one host from HTTP to HTTPS",
"policyPresetHttpsHostDescription": "For app.example.test received without TLS, return an HTTP 308 redirect to the fixed HTTPS host and original URL.",
"policyPresetHttpsHostNote": "Added disabled. Edit the domain and verify HTTPS. Uses listener TLS, not X-Forwarded-Proto; review external TLS termination to avoid redirect loops.",
"policyPresetStripPrefix": "Remove a path prefix before routing",
"policyPresetStripPrefixDescription": "Rewrite /legacy/… to /… before location selection while preserving the query string.",
"policyPresetStripPrefixNote": "Added disabled. Edit the prefix and review location/access rules for the resulting path. Global and Vhost scopes only; no browser redirect is sent.",
"policyPresetRedirectPrefix": "Move a URL subtree and keep its query",
"policyPresetRedirectPrefixDescription": "Redirect /docs-old/… to /docs/… with HTTP 308 while keeping the remaining path, query and method.",
"policyPresetRedirectPrefixNote": "Added disabled. Edit both prefixes consistently in the condition and replacement. Permanent redirects can be remembered by clients.",
"policyPresetMaintenanceReturn": "Maintenance — mark and return 503",
"policyPresetMaintenanceRetry": "Maintenance — retry advice",
"policyPresetMaintenance": "Serve a temporary maintenance response",
"policyPresetMaintenanceDescription": "Return a local 503 after access/authentication checks and attach Retry-After: 300 to that maintenance response.",
"policyPresetMaintenanceNote": "Added disabled. Applies to every request in this scope; narrow the first rule if needed and enable both rules together. Local no-store protection remains.",
"policyPresetBackendRoute": "Send one API path to a selected backend",
"policyPresetBackendRouteDescription": "Select the configured backend member api-v2 for requests below /api-v2/.",
"policyPresetBackendRouteNote": "Added disabled. Set an existing member ID and the desired path before enabling. Policy backend selection bypasses shared cache; global use requires that member in every affected Vhost.",
"policyPresetCacheStatus": "Expose cache outcome on the final response",
"policyPresetCacheStatusDescription": "Add X-Cache from the current cache_status sample, only when that sample exists and the response header is absent.",
"policyPresetCacheStatusNote": "A delivery-only diagnostic: does not change stored objects or caching decisions. Preserves the application’s existing X-Cache header.",
"policyPresetRequestClassDefault": "Request class — default to web",
"policyPresetRequestClassApi": "Request class — identify API",
"policyPresetRequestClassResponse": "Request class — final response header",
"policyPresetRequestClassification": "Classify API and web requests across stages",
"policyPresetRequestClassificationDescription": "Set a per-request txn.ui_request_class variable to web or api, then expose it as X-Request-Class at final delivery.",
"policyPresetRequestClassificationNote": "Added disabled. Edit the /api/ classification path and enable all three rules in order. This label is diagnostic, not a trusted identity or an authorization decision.",
"vhLocationsJson": "Locations JSON",
"vhAclJson": "Inline ACL JSON",
"vhHeadersJson": "Header rules JSON",
"vhLocationsJsonHelp": "Edit the same location rules shown above. Apply JSON to update this draft, then save the Vhost.",
"vhAclJsonHelp": "Edit this Vhost’s inline IP/CIDR access list. Use null to disable it; assigned ACL profiles remain separate.",
"vhHeadersJsonHelp": "Edit request and response header rules together. Apply JSON to update the visual editor; save the Vhost to activate changes.",
"vhJsonApply": "Apply JSON to draft",
"vhJsonReload": "Reload from form",
"vhJsonFormat": "Format JSON",
"vhJsonPending": "Apply or discard the JSON edits before saving the Vhost.",
"vhJsonConflict": "The form changed after you started editing JSON. Reload from form before applying your changes.",
"vhJsonApplied": "JSON applied to this draft. Save the Vhost to activate it.",
"vhJsonSynced": "In sync with form",
"vhJsonDraft": "Unapplied JSON edits",
"vhJsonReloadConfirm": "Discard the unapplied JSON edits and reload the current form values?",
"vhJsonInvalidAcl": "Use null or an ACL object with an allow/deny default and IP/CIDR rules.",
"vhJsonInvalidPaths": "Use an array of up to 64 location objects."
}
}
}