Skip to content

Commit

Permalink
add logs to debug invalid sig
Browse files Browse the repository at this point in the history
  • Loading branch information
Hitenjain14 committed Oct 26, 2024
1 parent 3dc0b63 commit 41b1748
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -563,6 +563,7 @@ func (fsh *StorageHandler) CreateConnection(ctx context.Context, r *http.Request

valid, err := verifySignatureFromRequest(allocationTx, r.Header.Get(common.ClientSignatureHeader), r.Header.Get(common.ClientSignatureHeaderV2), allocationObj.OwnerPublicKey)
if !valid || err != nil {
logging.Logger.Error("invalid_signature", zap.Any("err", err), zap.Bool("valid", valid), zap.String("allocation_tx", allocationTx), zap.String("client_signature_v2", r.Header.Get(common.ClientSignatureHeaderV2)), zap.String("base_url", node.Self.GetURLBase()), zap.String("owner_public_key", allocationObj.OwnerPublicKey))
return nil, common.NewError("invalid_signature", "Invalid signature")
}

Expand Down

0 comments on commit 41b1748

Please sign in to comment.