From 29c9703fbefa019d686cfc54de479b5ccc55be46 Mon Sep 17 00:00:00 2001 From: Kartikay Date: Thu, 12 Sep 2024 06:56:25 -0700 Subject: [PATCH 1/3] auth: change PasswordEncryptionCost Signed-off-by: Kartikay --- chaoscenter/authentication/pkg/utils/configs.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chaoscenter/authentication/pkg/utils/configs.go b/chaoscenter/authentication/pkg/utils/configs.go index 16aa0356aa7..0d11a176a59 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 = 4 DefaultLitmusGqlGrpcEndpoint = "localhost" DefaultLitmusGqlGrpcPort = ":8000" //DefaultLitmusGqlGrpcPortHttps = ":8001" // enable when in use From 36c9f671be983bfdce5bd0f8ad434781590ad885 Mon Sep 17 00:00:00 2001 From: Kartikay Date: Fri, 13 Sep 2024 02:07:34 -0700 Subject: [PATCH 2/3] refactor: cost of encryption to 8 Signed-off-by: Kartikay --- chaoscenter/authentication/pkg/utils/configs.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chaoscenter/authentication/pkg/utils/configs.go b/chaoscenter/authentication/pkg/utils/configs.go index 0d11a176a59..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 = 4 + PasswordEncryptionCost = 8 DefaultLitmusGqlGrpcEndpoint = "localhost" DefaultLitmusGqlGrpcPort = ":8000" //DefaultLitmusGqlGrpcPortHttps = ":8001" // enable when in use From 45a4dc25303d9daa15faca8b401cb87c16803a86 Mon Sep 17 00:00:00 2001 From: Kartikay Date: Sun, 15 Sep 2024 07:19:48 -0700 Subject: [PATCH 3/3] fix: fix goimports Signed-off-by: Kartikay --- .../upgrade-agents/control-plane/versions/v0.0.0/manager.go | 1 + 1 file changed, 1 insertion(+) 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" )