Replies: 6 comments 6 replies
-
ensuring that all libraries across all frameworks produce the correct-reproducible way of serialization will be very hard and will end up with library/framework specific + version specific behaviour issues to debug. It might be a good idea for having a common tech resources where code can be shared by NPs for helping out others for popular language frameworks (such as: python-flask, java-springboot) |
Beta Was this translation helpful? Give feedback.
-
I agree with @mherle |
Beta Was this translation helpful? Give feedback.
-
@BLR-0118 I understand your concerns, and your approach will work if all the network participants send the exact stringified json used for signing with each request. Is it possible that someone could use different formats in the sent request body and calculating signature? That is the only possibility for issues I can see with your prescribed approach. |
Beta Was this translation helpful? Give feedback.
-
Agree with @mherle. @1upkd - what's the issue you were mentioning today? |
Beta Was this translation helpful? Give feedback.
-
@yaikhomba - what's the issue you're facing? |
Beta Was this translation helpful? Give feedback.
-
Standardizing a JSON format and serialization imperatives will be very difficult to implement as each language has its own way of formatting JSON data. Idea is to calculate hash of the request/response body before overlaying it on HTTP and then sign it. Whole HTTP request will be one monolithic combination of HTTP body and HTTP header that will ensure standardized implementation of Signing algorithm. This boils down to two fundamental principles of Encrypting the hash:
@mherle @BLR-0118 @yaikhomba @1upkd |
Beta Was this translation helpful? Give feedback.
-
This was raised in the Community Call today by some participants about defining a canonical format for stringifying JSON payload for signing & verification. Is this really required? Irrespective of how the JSON payload is stringified, if the stringified JSON payload is signed and also used as the raw payload to verify the signature, there should not be any auth failures.
@1upkd @yaikhomba @mherle @NajeebMohammed @navdeep710 @kishorgandham @nitinmish
Beta Was this translation helpful? Give feedback.
All reactions