Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

fix: invalid service key (#4250)

ecmadao21908a9c5c89
diff --git a/server/principal.go b/server/principal.go
index af5289e3a4..b2e0c9a83e 100644
--- a/server/principal.go
+++ b/server/principal.go
@@ -58,7 +58,7 @@ func (s *Server) registerPrincipalRoutes(g *echo.Group) {
}
// Only return the token if the user is ServiceAccount
if principal.Type == api.ServiceAccount {
- principal.ServiceKey = principalCreate.Password
+ principal.ServiceKey = password
}
c.Response().Header().Set(echo.HeaderContentType, echo.MIMEApplicationJSONCharsetUTF8)