Skip to content

Commit 0d755fc

Browse files
kartikaysaxenaKartikaySaranya-jena
authored
Auth: Changing PasswordEncryptionCost to reduce the latency in /login api (#4878)
* auth: change PasswordEncryptionCost Signed-off-by: Kartikay <[email protected]> * refactor: cost of encryption to 8 Signed-off-by: Kartikay <[email protected]> * fix: fix goimports Signed-off-by: Kartikay <[email protected]> --------- Signed-off-by: Kartikay <[email protected]> Co-authored-by: Kartikay <[email protected]> Co-authored-by: Saranya Jena <[email protected]>
1 parent e599c3d commit 0d755fc

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

chaoscenter/authentication/pkg/utils/configs.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ var (
3737
ApiTokenCollection = "api-token"
3838
UsernameField = "username"
3939
ExpiresAtField = "expires_at"
40-
PasswordEncryptionCost = 15
40+
PasswordEncryptionCost = 8
4141
DefaultLitmusGqlGrpcEndpoint = "localhost"
4242
DefaultLitmusGqlGrpcPort = ":8000"
4343
//DefaultLitmusGqlGrpcPortHttps = ":8001" // enable when in use

chaoscenter/upgrade-agents/control-plane/versions/v0.0.0/manager.go

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package v0_0_0
22

33
import (
44
"context"
5+
56
log "github.com/sirupsen/logrus"
67
"go.mongodb.org/mongo-driver/mongo"
78
)

0 commit comments

Comments
 (0)