From bc940fbee99616d6aab30ba2775b79b44d3d4549 Mon Sep 17 00:00:00 2001 From: Tharsanan1 Date: Fri, 4 Oct 2024 15:24:16 +0530 Subject: [PATCH 1/2] Add failuremode allow --- adapter/internal/oasparser/envoyconf/http_filters.go | 1 + 1 file changed, 1 insertion(+) diff --git a/adapter/internal/oasparser/envoyconf/http_filters.go b/adapter/internal/oasparser/envoyconf/http_filters.go index e367e3e2d..e22c7b811 100644 --- a/adapter/internal/oasparser/envoyconf/http_filters.go +++ b/adapter/internal/oasparser/envoyconf/http_filters.go @@ -239,6 +239,7 @@ func getExtProcessHTTPFilter() *hcmv3.HttpFilter { }, Timeout: durationpb.New(conf.Envoy.EnforcerResponseTimeoutInSeconds * time.Second), }, + FailureModeAllow: true, ProcessingMode: &ext_process.ProcessingMode{ ResponseBodyMode: ext_process.ProcessingMode_BUFFERED, RequestHeaderMode: ext_process.ProcessingMode_SKIP, From 7740873381e99074ce77a420575aa61b68ac20fa Mon Sep 17 00:00:00 2001 From: Tharsanan1 Date: Fri, 4 Oct 2024 15:54:35 +0530 Subject: [PATCH 2/2] Increase message timeout --- adapter/internal/oasparser/envoyconf/http_filters.go | 1 + 1 file changed, 1 insertion(+) diff --git a/adapter/internal/oasparser/envoyconf/http_filters.go b/adapter/internal/oasparser/envoyconf/http_filters.go index e22c7b811..a59b86a86 100644 --- a/adapter/internal/oasparser/envoyconf/http_filters.go +++ b/adapter/internal/oasparser/envoyconf/http_filters.go @@ -255,6 +255,7 @@ func getExtProcessHTTPFilter() *hcmv3.HttpFilter { }, RequestAttributes: []string{"xds.route_metadata"}, ResponseAttributes: []string{"xds.route_metadata"}, + MessageTimeout: durationpb.New(conf.Envoy.EnforcerResponseTimeoutInSeconds * time.Second), } ext, err2 := anypb.New(externalProcessor) if err2 != nil {