diff options
author | ijon <ijon@ydb.tech> | 2023-12-27 13:34:18 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-27 13:34:18 +0300 |
commit | 3757e29b2187098f715a57b50cd4ad3eff1bd22f (patch) | |
tree | 47b6e06c31194e69a1169ccc22bd02ebd629234d | |
parent | e3cb5d48d2897b54ff3ffcf7155826ef9ac0df8d (diff) | |
download | ydb-3757e29b2187098f715a57b50cd4ad3eff1bd22f.tar.gz |
Switch ticket_parser auth clients to HTSwap mailbox type (#670)
-rw-r--r-- | ydb/core/security/ticket_parser_impl.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/ydb/core/security/ticket_parser_impl.h b/ydb/core/security/ticket_parser_impl.h index 6a494629e89..2dbe4b653e9 100644 --- a/ydb/core/security/ticket_parser_impl.h +++ b/ydb/core/security/ticket_parser_impl.h @@ -1444,20 +1444,20 @@ protected: } settings.GrpcKeepAliveTimeMs = Config.GetAccessServiceGrpcKeepAliveTimeMs(); settings.GrpcKeepAliveTimeoutMs = Config.GetAccessServiceGrpcKeepAliveTimeoutMs(); - AccessServiceValidator = Register(NCloud::CreateAccessService(settings), TMailboxType::Simple, AppData()->UserPoolId); + AccessServiceValidator = Register(NCloud::CreateAccessService(settings), TMailboxType::HTSwap, AppData()->UserPoolId); if (Config.GetCacheAccessServiceAuthentication()) { AccessServiceValidator = Register(NCloud::CreateGrpcServiceCache<NCloud::TEvAccessService::TEvAuthenticateRequest, NCloud::TEvAccessService::TEvAuthenticateResponse>( AccessServiceValidator, Config.GetGrpcCacheSize(), TDuration::MilliSeconds(Config.GetGrpcSuccessLifeTime()), - TDuration::MilliSeconds(Config.GetGrpcErrorLifeTime())), TMailboxType::Simple, AppData()->UserPoolId); + TDuration::MilliSeconds(Config.GetGrpcErrorLifeTime())), TMailboxType::HTSwap, AppData()->UserPoolId); } if (Config.GetCacheAccessServiceAuthorization()) { AccessServiceValidator = Register(NCloud::CreateGrpcServiceCache<NCloud::TEvAccessService::TEvAuthorizeRequest, NCloud::TEvAccessService::TEvAuthorizeResponse>( AccessServiceValidator, Config.GetGrpcCacheSize(), TDuration::MilliSeconds(Config.GetGrpcSuccessLifeTime()), - TDuration::MilliSeconds(Config.GetGrpcErrorLifeTime())), TMailboxType::Simple, AppData()->UserPoolId); + TDuration::MilliSeconds(Config.GetGrpcErrorLifeTime())), TMailboxType::HTSwap, AppData()->UserPoolId); } } @@ -1467,13 +1467,13 @@ protected: if (Config.GetUseUserAccountServiceTLS()) { settings.CertificateRootCA = TUnbufferedFileInput(Config.GetPathToRootCA()).ReadAll(); } - UserAccountService = Register(CreateUserAccountService(settings), TMailboxType::Simple, AppData()->UserPoolId); + UserAccountService = Register(CreateUserAccountService(settings), TMailboxType::HTSwap, AppData()->UserPoolId); if (Config.GetCacheUserAccountService()) { UserAccountService = Register(NCloud::CreateGrpcServiceCache<NCloud::TEvUserAccountService::TEvGetUserAccountRequest, NCloud::TEvUserAccountService::TEvGetUserAccountResponse>( UserAccountService, Config.GetGrpcCacheSize(), TDuration::MilliSeconds(Config.GetGrpcSuccessLifeTime()), - TDuration::MilliSeconds(Config.GetGrpcErrorLifeTime())), TMailboxType::Simple, AppData()->UserPoolId); + TDuration::MilliSeconds(Config.GetGrpcErrorLifeTime())), TMailboxType::HTSwap, AppData()->UserPoolId); } } @@ -1483,13 +1483,13 @@ protected: if (Config.GetUseServiceAccountServiceTLS()) { settings.CertificateRootCA = TUnbufferedFileInput(Config.GetPathToRootCA()).ReadAll(); } - ServiceAccountService = Register(NCloud::CreateServiceAccountService(settings), TMailboxType::Simple, AppData()->UserPoolId); + ServiceAccountService = Register(NCloud::CreateServiceAccountService(settings), TMailboxType::HTSwap, AppData()->UserPoolId); if (Config.GetCacheServiceAccountService()) { ServiceAccountService = Register(NCloud::CreateGrpcServiceCache<NCloud::TEvServiceAccountService::TEvGetServiceAccountRequest, NCloud::TEvServiceAccountService::TEvGetServiceAccountResponse>( ServiceAccountService, Config.GetGrpcCacheSize(), TDuration::MilliSeconds(Config.GetGrpcSuccessLifeTime()), - TDuration::MilliSeconds(Config.GetGrpcErrorLifeTime())), TMailboxType::Simple, AppData()->UserPoolId); + TDuration::MilliSeconds(Config.GetGrpcErrorLifeTime())), TMailboxType::HTSwap, AppData()->UserPoolId); } } |