From dc10865df8a63d846b879e1b5c06baabae710954 Mon Sep 17 00:00:00 2001 From: Kartikay <120778728+kartikaysaxena@users.noreply.github.com> Date: Wed, 18 Sep 2024 10:13:51 -0700 Subject: [PATCH] Auth: Changing PasswordEncryptionCost to reduce the latency in /login api (#4878) * auth: change PasswordEncryptionCost Signed-off-by: Kartikay * refactor: cost of encryption to 8 Signed-off-by: Kartikay * fix: fix goimports Signed-off-by: Kartikay --------- Signed-off-by: Kartikay Co-authored-by: Kartikay Co-authored-by: Saranya Jena Signed-off-by: dusdjhyeon --- chaoscenter/authentication/pkg/utils/configs.go | 2 +- .../upgrade-agents/control-plane/versions/v0.0.0/manager.go | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/chaoscenter/authentication/pkg/utils/configs.go b/chaoscenter/authentication/pkg/utils/configs.go index 16aa0356aa7..49aad2b2f19 100644 --- a/chaoscenter/authentication/pkg/utils/configs.go +++ b/chaoscenter/authentication/pkg/utils/configs.go @@ -37,7 +37,7 @@ var ( ApiTokenCollection = "api-token" UsernameField = "username" ExpiresAtField = "expires_at" - PasswordEncryptionCost = 15 + PasswordEncryptionCost = 8 DefaultLitmusGqlGrpcEndpoint = "localhost" DefaultLitmusGqlGrpcPort = ":8000" //DefaultLitmusGqlGrpcPortHttps = ":8001" // enable when in use diff --git a/chaoscenter/upgrade-agents/control-plane/versions/v0.0.0/manager.go b/chaoscenter/upgrade-agents/control-plane/versions/v0.0.0/manager.go index 5798d442ee0..27009c8ce27 100644 --- a/chaoscenter/upgrade-agents/control-plane/versions/v0.0.0/manager.go +++ b/chaoscenter/upgrade-agents/control-plane/versions/v0.0.0/manager.go @@ -2,6 +2,7 @@ package v0_0_0 import ( "context" + log "github.com/sirupsen/logrus" "go.mongodb.org/mongo-driver/mongo" )