Skip to content

Commit

Permalink
try fixing context usage
Browse files Browse the repository at this point in the history
  • Loading branch information
fritterhoff committed Nov 25, 2024
1 parent 216f42a commit 2e56fb9
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions cas/sectigocas/sectigocas.go
Original file line number Diff line number Diff line change
Expand Up @@ -161,8 +161,8 @@ func (s *SectigoCAS) signCertificate(ctx context.Context, cr *x509.CertificateRe
if acc == nil {
return nil, nil, errors.New("No account passed!")
}
ctx := wrapSentryTrace(ctx)
user, err := s.eabClient.ResolveAccountId(ctx, &pb.ResolveAccountIdRequest{AccountId: acc.ID})
ctxResolve := wrapSentryTrace(ctx)
user, err := s.eabClient.ResolveAccountId(ctxResolve, &pb.ResolveAccountIdRequest{AccountId: acc.ID})
if err != nil {
return nil, nil, errors.WithMessage(err, "Error resolving user account!")
}
Expand All @@ -171,7 +171,8 @@ func (s *SectigoCAS) signCertificate(ctx context.Context, cr *x509.CertificateRe

}

certificates, err := s.sslServiceClient.IssueCertificate(ctx, &pb.IssueSslRequest{
ctxSign := wrapSentryTrace(ctx)
certificates, err := s.sslServiceClient.IssueCertificate(ctxSign, &pb.IssueSslRequest{
Issuer: issuer,
SubjectAlternativeNames: sans,
Source: "ACME",
Expand Down

0 comments on commit 2e56fb9

Please sign in to comment.