From ef982348f16d1cd0065d251068ff6bd37f2e7f8d Mon Sep 17 00:00:00 2001 From: David Reiss Date: Wed, 11 Jan 2023 13:28:26 -0800 Subject: [PATCH] Turn on frontend.enableTokenNamespaceEnforcement by default (#3798) --- service/frontend/service.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/service/frontend/service.go b/service/frontend/service.go index 934b8838b0c..435dfb6b181 100644 --- a/service/frontend/service.go +++ b/service/frontend/service.go @@ -212,7 +212,7 @@ func NewConfig(dc *dynamicconfig.Collection, numHistoryShards int32, esIndexName DefaultWorkflowRetryPolicy: dc.GetMapPropertyFnWithNamespaceFilter(dynamicconfig.DefaultWorkflowRetryPolicy, common.GetDefaultRetryPolicyConfigOptions()), DefaultWorkflowTaskTimeout: dc.GetDurationPropertyFilteredByNamespace(dynamicconfig.DefaultWorkflowTaskTimeout, common.DefaultWorkflowTaskTimeout), EnableServerVersionCheck: dc.GetBoolProperty(dynamicconfig.EnableServerVersionCheck, os.Getenv("TEMPORAL_VERSION_CHECK_DISABLED") == ""), - EnableTokenNamespaceEnforcement: dc.GetBoolProperty(dynamicconfig.EnableTokenNamespaceEnforcement, false), + EnableTokenNamespaceEnforcement: dc.GetBoolProperty(dynamicconfig.EnableTokenNamespaceEnforcement, true), KeepAliveMinTime: dc.GetDurationProperty(dynamicconfig.KeepAliveMinTime, 10*time.Second), KeepAlivePermitWithoutStream: dc.GetBoolProperty(dynamicconfig.KeepAlivePermitWithoutStream, true), KeepAliveMaxConnectionIdle: dc.GetDurationProperty(dynamicconfig.KeepAliveMaxConnectionIdle, 2*time.Minute),