-
|
As I mentioned in #565 , I failed to validate the signature for an Outpost request in version SampleRequest Object (Sensitive information is masked) Request's Body AES secret (Will be changed) My manual validation steps const {hmacSha256} = require("@se-oss/sha256")
var hmac=hmacSha256("5f676d196c3e49763780162994df98e66d0917976bf0554dba9859e6d6105530", '1763038508.{"antivirus_result":"safe","bucket":"private","content_type":"image/jpeg","creation_datetime":"2008-07-31T10:38:11Z","height":68,"is_included_dimensions":true,"meta":{"DateTime":"2008:07:31 10:38:11","ExifTag":[214],"GPSTag":[978],"Make":"Canon","Model":"Canon EOS 40D","Orientation":[1],"ResolutionUnit":[2],"Software":"GIMP 2.4.5","XResolution":[{"Denominator":1,"Numerator":72}],"YCbCrPositioning":[2],"YResolution":[{"Denominator":1,"Numerator":72}]},"object_key":"c35f2bed-d5db-48b9-be46-a0d9db2cd8e4-Canon_40D.jpg","size":7958,"width":100}')
Buffer.from(hmac).toString("hex");
// d58501b1aac62d84c86ddcf020c6cad81447240ef4e248481a1f2a6ecad0f9d7 != 6ac8e778e6b2658158a479b49b71d0c19e0b9115b849c5dc4274dc3664cdad44EnvDocker Compose Config |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
|
Can you clarify what you mean by "AES secret"? If possible, would be great if you can share more about your usage & your tenant/destination setup. In Outpost, you want to create tenant & webhook destination. From there, you can see the webhook signing key from the destination. That's the key you need to use to verify signature. Excuse me if you already know this, just wasn't sure if that's the case since you mentioned AES. |
Beta Was this translation helpful? Give feedback.
-
|
ohhhh my bad, I misunderstood the docs, I just read it again and found that the secret should be found from the destination https://outpost.hookdeck.com/docs/api/destinations?lang=shell Thank you sooo much for pointing out the correct direction |
Beta Was this translation helpful? Give feedback.
-
|
Sorry for out of topic, is there any method to do health check within the container? I tried curl and wget, unfortunately, the image didn't include them. Thank you in advance. |
Beta Was this translation helpful? Give feedback.
Can you clarify what you mean by "AES secret"?
If possible, would be great if you can share more about your usage & your tenant/destination setup.
In Outpost, you want to create tenant & webhook destination. From there, you can see the webhook signing key from the destination. That's the key you need to use to verify signature. Excuse me if you already know this, just wasn't sure if that's the case since you mentioned AES.