Skip to content

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

fix: set user in context in onboarding (#10532)

p0ny09769acd6f57
diff --git a/backend/server/onboard.go b/backend/server/onboard.go
index 8dd0e144e6..ef68fd9a2e 100644
--- a/backend/server/onboard.go
+++ b/backend/server/onboard.go
@@ -224,6 +224,7 @@ func (s *Server) generateOnboardingData(ctx context.Context, user *store.UserMes
// Use new CI/CD API.
childCtx := context.WithValue(ctx, common.PrincipalIDContextKey, user.ID)
+ childCtx = context.WithValue(childCtx, common.UserContextKey, user)
plan, err := s.rolloutService.CreatePlan(childCtx, &v1pb.CreatePlanRequest{
Parent: fmt.Sprintf("projects/%s", project.ResourceID),
Plan: &v1pb.Plan{