-
Notifications
You must be signed in to change notification settings - Fork 647
Open
Labels
Description
DisableLua is exposed via gateway spec today which enables Lua policies by default:
gateway/api/v1alpha1/envoygateway_types.go
Lines 268 to 270 in 6ed9cc5
| // DisableLua determines if Lua EnvoyExtensionPolicies should be disabled. | |
| // If set to true, the Lua EnvoyExtensionPolicy feature will be disabled. | |
| DisableLua bool `json:"disableLua"` |
Deprecate DisableLua in favor of a new EnableLua option that defaults to disabling Lua policies:
- Add a CEL validation on the
EnvoyGatewayAPI to ensure only one ofDisableLuaorEnableLuais set. Both not set should be acceptable to CEL. - Emit a warning status on the
EnvoyGatewayresource if bothDisableLuaandEnableLuaare not set, suggesting to useEnableLua. - Emit a warning status on the
EnvoyGatewayresource ifDisableLuais used, suggesting to useEnableLua.