diff --git a/kong/clustering/compat/removed_fields.lua b/kong/clustering/compat/removed_fields.lua index 08cda139c161..00bafc650f8d 100644 --- a/kong/clustering/compat/removed_fields.lua +++ b/kong/clustering/compat/removed_fields.lua @@ -197,6 +197,7 @@ return { "llm.model.options.bedrock", "llm.auth.aws_access_key_id", "llm.auth.aws_secret_access_key", + "llm.auth.allow_override", }, ai_response_transformer = { "max_request_body_size", @@ -206,6 +207,7 @@ return { "llm.model.options.bedrock", "llm.auth.aws_access_key_id", "llm.auth.aws_secret_access_key", + "llm.auth.allow_override", }, prometheus = { "ai_metrics", diff --git a/spec/02-integration/09-hybrid_mode/09-config-compat_spec.lua b/spec/02-integration/09-hybrid_mode/09-config-compat_spec.lua index fedf3ddf31eb..6d9f2842c6fe 100644 --- a/spec/02-integration/09-hybrid_mode/09-config-compat_spec.lua +++ b/spec/02-integration/09-hybrid_mode/09-config-compat_spec.lua @@ -706,8 +706,9 @@ describe("CP/DP config compat transformations #" .. strategy, function() local expected = cycle_aware_deep_copy(ai_request_transformer) - -- max body size + -- shared expected.config.max_request_body_size = nil + expected.config.llm.auth.allow_override = nil -- gemini fields expected.config.llm.auth.gcp_service_account_json = nil @@ -770,8 +771,9 @@ describe("CP/DP config compat transformations #" .. strategy, function() local expected = cycle_aware_deep_copy(ai_response_transformer) - -- max body size + -- shared expected.config.max_request_body_size = nil + expected.config.llm.auth.allow_override = nil -- gemini fields expected.config.llm.auth.gcp_service_account_json = nil @@ -869,6 +871,7 @@ describe("CP/DP config compat transformations #" .. strategy, function() auth = { header_name = "header", header_value = "value", + allow_override = true, }, model = { name = "any-model-name", @@ -890,8 +893,9 @@ describe("CP/DP config compat transformations #" .. strategy, function() local expected = cycle_aware_deep_copy(ai_request_transformer) - -- max body size + -- shared expected.config.max_request_body_size = nil + expected.config.llm.auth.allow_override = nil -- gemini fields expected.config.llm.auth.gcp_service_account_json = nil @@ -925,6 +929,7 @@ describe("CP/DP config compat transformations #" .. strategy, function() auth = { header_name = "header", header_value = "value", + allow_override = true, }, model = { name = "any-model-name", @@ -944,8 +949,9 @@ describe("CP/DP config compat transformations #" .. strategy, function() local expected = cycle_aware_deep_copy(ai_response_transformer) - -- max body size + -- shared expected.config.max_request_body_size = nil + expected.config.llm.auth.allow_override = nil -- gemini fields expected.config.llm.auth.gcp_service_account_json = nil