|
|
@@ -15,6 +15,7 @@ import (
|
|
|
"time"
|
|
|
|
|
|
"github.com/pkg/errors"
|
|
|
+ "github.com/smallstep/certificates/logging"
|
|
|
"github.com/smallstep/certificates/templates"
|
|
|
"github.com/smallstep/certificates/webhook"
|
|
|
"go.step.sm/linkedca"
|
|
|
@@ -169,6 +170,11 @@ retry:
|
|
|
return nil, err
|
|
|
}
|
|
|
|
|
|
+ requestID, ok := logging.GetRequestID(ctx)
|
|
|
+ if ok {
|
|
|
+ req.Header.Set("X-Request-ID", requestID)
|
|
|
+ }
|
|
|
+
|
|
|
secret, err := base64.StdEncoding.DecodeString(w.Secret)
|
|
|
if err != nil {
|
|
|
return nil, err
|