fix(sess): grab kms wrapper before tx (#6052)

This commit is contained in:
Irena Rindos authored and GitHub committed 2025-09-15 13:42:47 -04:00
1 parent ea6ff60d1e
commit b6849b1c15
3 files changed
+13 -11

No files matched your search

@@ -805,7 +805,7 @@ func (s Service) AuthorizeSession(ctx context.Context, req *pbs.AuthorizeSession
if err != nil {
return nil, err
}
t, err := repo.LookupTargetForSessionAuthorization(ctx, roundTripTarget.GetPublicId(), target.WithAlias(targetAlias))
t, err := repo.LookupTargetForSessionAuthorization(ctx, roundTripTarget.GetPublicId(), roundTripTarget.GetProjectId(), target.WithAlias(targetAlias))
if err != nil {
if errors.IsNotFoundError(err) {
return nil, handlers.NotFoundErrorf("Target %q not found.", roundTripTarget.GetPublicId())