From bfdfdfe5065f829dc8bac3228d070fefaa67d5e1 Mon Sep 17 00:00:00 2001 From: xianyanglin <42458688+xianyanglin@users.noreply.github.com> Date: Fri, 17 Mar 2023 09:53:42 +0800 Subject: [PATCH] Fix plugin-support-config.json format (#52) * install: adjust deployment configuration information Signed-off-by: xianyanglin * fix/to: fix plugin-support-config.json format Signed-off-by: xianyanglin --------- Signed-off-by: xianyanglin --- .../templates/base/hango-gateway/hango-gateway-configmap.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install/helm/hango-gateway/charts/hango-gateway/templates/base/hango-gateway/hango-gateway-configmap.yaml b/install/helm/hango-gateway/charts/hango-gateway/templates/base/hango-gateway/hango-gateway-configmap.yaml index 47562d3..3ca9352 100644 --- a/install/helm/hango-gateway/charts/hango-gateway/templates/base/hango-gateway/hango-gateway-configmap.yaml +++ b/install/helm/hango-gateway/charts/hango-gateway/templates/base/hango-gateway/hango-gateway-configmap.yaml @@ -296,7 +296,7 @@ data: key-data: "" watch-resource: true pluginmanager-template.json: '{"GatewayLabels":{"gw_cluster":"{{ .Values.gateway_cluster}}"},"Plugins":[{"enable":"true","inline":{"settings":{"decode_headers_to_state":[{"name":":path","rename":"x-envoy-origin-path"},{"name":":method","rename":"x-envoy-origin-method"},{"name":":authority","rename":"x-envoy-origin-host"}],"encode_headers_to_state":[{"name":":status","rename":"x-envoy-origin-status"}],"route_metadata_to_state":["proxy.filters.http.metadatahub"]}},"name":"proxy.filters.http.metadatahub"},{"enable":"true","name":"envoy.filters.http.fault"},{"enable":"true","inline":{"settings":{"ip_source_header":"x-real-v112-ip"}},"name":"proxy.filters.http.iprestriction"},{"enable":"true","inline":{"settings":{"stat_prefix":"http_local_rate_limiter"}},"name":"envoy.filters.http.local_ratelimit"},{"enable":"true","name":"proxy.filters.http.header_restriction"},{"enable":"true","name":"proxy.filters.http.ua_restriction"},{"enable":"true","name":"proxy.filters.http.referer_restriction"},{"enable":"true","name":"proxy.filters.http.staticdowngrade"},{"enable":"true","name":"proxy.filters.http.circuitbreaker"},{"enable":"true","inline":{"settings":{"apis_prefix":"envoy_local_cache","used_caches":[{"local":{}}]}},"name":"proxy.filters.http.local_cache"},{"enable":"false","name":"proxy.filters.http.waf"},{"enable":"true","name":"proxy.filters.http.detailed_stats"},{"enable":true,"name":"proxy.filters.http.rider","inline":{"settings":{"plugin":{"vm_config":{"package_path":"/usr/local/lib/rider/?/init.lua;/usr/local/lib/rider/?.lua;"},"code":{"local":{"filename":"/usr/local/lib/rider/plugins/uri-restriction.lua"}},"name":"uri-restriction","config":{}}}}}]}' - plugin-support-config.json: '[{"gatewayKind":"NetworkProxy","name":"通用网关","plugins":[{"schema":"ianus-percent-limit","plugin":"envoy.filters.http.fault","display":false},{"schema":"local-limiting","plugin":"envoy.filters.http.local_ratelimit","display":true},{"schema":"ip-restriction","plugin":"proxy.filters.http.iprestriction","display":true},{"schema":"ua-restriction","plugin":"proxy.filters.http.ua_restriction","display":true},{"schema":"referer-restriction","plugin":"proxy.filters.http.referer_restriction","display":true},{"schema":"header-restriction","plugin":"proxy.filters.http.header_restriction","display":true},{"schema":"response-header-rewrite","plugin":"proxy.filters.http.header_rewrite","display":true},{"schema":"local-cache","plugin":"proxy.filters.http.local_cache","display":true},{"schema":"static-downgrade","plugin":"proxy.filters.http.staticdowngrade","display":true},{"schema":"circuit-breaker","plugin":"proxy.filters.http.circuitbreaker","display":true},{"schema":"waf","plugin":"proxy.filters.http.waf","display":true},{"schema":"uri-restriction","plugin":"proxy.filters.http.rider","display":true},{"schema":"","plugin":"proxy.filters.http.metadatahub","display":false},{"schema":"","plugin":"proxy.filters.http.detailed_stats","display":false},{"schema":"","plugin":"proxy.filters.http.soapjsontranscoder","display":false}]},{"gatewayKind":"KubernetesGateway","name":"Gateway","plugins":[{"schema":"local-limiting","plugin":"envoy.filters.http.local_ratelimit","display":true},{"schema":"static-downgrade","plugin":"proxy.filters.http.staticdowngrade","display":true},{"schema":"circuit-breaker","plugin":"proxy.filters.http.circuitbreaker","display":true},{"schema":"ip-restriction","plugin":"proxy.filters.http.iprestriction","display":true},{"schema":"ua-restriction","plugin":"proxy.filters.http.ua_restriction","display":true},{"schema":"waf","plugin":"proxy.filters.http.waf","display":true},null,{"schema":"","plugin":"proxy.filters.http.metadatahub","display":false},{"schema":"","plugin":"proxy.filters.http.detailed_stats","display":false},{"schema":"","plugin":"proxy.filters.http.soapjsontranscoder","display":false}]},{"gatewayKind":"ApiGateway","name":"API网关","plugins":[{"schema":"ianus-percent-limit","plugin":"envoy.filters.http.fault","display":false},{"schema":"local-limiting","plugin":"envoy.filters.http.local_ratelimit","display":true},{"schema":"ip-restriction","plugin":"proxy.filters.http.iprestriction","display":true},{"schema":"ua-restriction","plugin":"proxy.filters.http.ua_restriction","display":true},{"schema":"referer-restriction","plugin":"proxy.filters.http.referer_restriction","display":true},{"schema":"header-restriction","plugin":"proxy.filters.http.header_restriction","display":true},{"schema":"response-header-rewrite","plugin":"proxy.filters.http.header_rewrite","display":true},{"schema":"local-cache","plugin":"proxy.filters.http.local_cache","display":true},{"schema":"static-downgrade","plugin":"proxy.filters.http.staticdowngrade","display":true},{"schema":"circuit-breaker","plugin":"proxy.filters.http.circuitbreaker","display":true},null,{"schema":"","plugin":"proxy.filters.http.metadatahub","display":false},{"schema":"","plugin":"proxy.filters.http.detailed_stats","display":false},{"schema":"","plugin":"proxy.filters.http.soapjsontranscoder","display":false}]}]' + plugin-support-config.json: '[{"gatewayKind":"NetworkProxy","name":"通用网关","plugins":[{"schema":"ianus-percent-limit","plugin":"envoy.filters.http.fault","display":false},{"schema":"local-limiting","plugin":"envoy.filters.http.local_ratelimit","display":true},{"schema":"ip-restriction","plugin":"proxy.filters.http.iprestriction","display":true},{"schema":"ua-restriction","plugin":"proxy.filters.http.ua_restriction","display":true},{"schema":"referer-restriction","plugin":"proxy.filters.http.referer_restriction","display":true},{"schema":"header-restriction","plugin":"proxy.filters.http.header_restriction","display":true},{"schema":"response-header-rewrite","plugin":"proxy.filters.http.header_rewrite","display":true},{"schema":"local-cache","plugin":"proxy.filters.http.local_cache","display":true},{"schema":"static-downgrade","plugin":"proxy.filters.http.staticdowngrade","display":true},{"schema":"circuit-breaker","plugin":"proxy.filters.http.circuitbreaker","display":true},{"schema":"waf","plugin":"proxy.filters.http.waf","display":true},{"schema":"uri-restriction","plugin":"proxy.filters.http.rider","display":true},{"schema":"","plugin":"proxy.filters.http.metadatahub","display":false},{"schema":"","plugin":"proxy.filters.http.detailed_stats","display":false},{"schema":"","plugin":"proxy.filters.http.soapjsontranscoder","display":false}]},{"gatewayKind":"KubernetesGateway","name":"Gateway","plugins":[{"schema":"local-limiting","plugin":"envoy.filters.http.local_ratelimit","display":true},{"schema":"static-downgrade","plugin":"proxy.filters.http.staticdowngrade","display":true},{"schema":"circuit-breaker","plugin":"proxy.filters.http.circuitbreaker","display":true},{"schema":"ip-restriction","plugin":"proxy.filters.http.iprestriction","display":true},{"schema":"ua-restriction","plugin":"proxy.filters.http.ua_restriction","display":true},{"schema":"waf","plugin":"proxy.filters.http.waf","display":true},{"schema":"","plugin":"proxy.filters.http.metadatahub","display":false},{"schema":"","plugin":"proxy.filters.http.detailed_stats","display":false},{"schema":"","plugin":"proxy.filters.http.soapjsontranscoder","display":false}]},{"gatewayKind":"ApiGateway","name":"API网关","plugins":[{"schema":"ianus-percent-limit","plugin":"envoy.filters.http.fault","display":false},{"schema":"local-limiting","plugin":"envoy.filters.http.local_ratelimit","display":true},{"schema":"ip-restriction","plugin":"proxy.filters.http.iprestriction","display":true},{"schema":"ua-restriction","plugin":"proxy.filters.http.ua_restriction","display":true},{"schema":"referer-restriction","plugin":"proxy.filters.http.referer_restriction","display":true},{"schema":"header-restriction","plugin":"proxy.filters.http.header_restriction","display":true},{"schema":"response-header-rewrite","plugin":"proxy.filters.http.header_rewrite","display":true},{"schema":"local-cache","plugin":"proxy.filters.http.local_cache","display":true},{"schema":"static-downgrade","plugin":"proxy.filters.http.staticdowngrade","display":true},{"schema":"circuit-breaker","plugin":"proxy.filters.http.circuitbreaker","display":true},{"schema":"","plugin":"proxy.filters.http.metadatahub","display":false},{"schema":"","plugin":"proxy.filters.http.detailed_stats","display":false},{"schema":"","plugin":"proxy.filters.http.soapjsontranscoder","display":false}]}]' --- apiVersion: v1 kind: ConfigMap