Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Netlify Function - Cloudinary Custom Remote Function: Signature verification #27

Open
AlexBeznoss opened this issue May 22, 2023 · 2 comments

Comments

@AlexBeznoss
Copy link

Hey
Thanks for these examples, they are incredibly helpful.
I'm building a custom remote function, and it works perfectly, but in my case, I would like to verify "x-cld-signature" to ensure that the request is coming from Cloudinary.
Did you ever try it? According to Cloudinary documentation, it should be a SHA-1 Hex-Digest of body + timestamp + API secret, but in my case, as a signature, I'm receiving 128 characters long string. I can't even imagine how to make SHA1 Hex 128 characters long :)

@colbyfayock
Copy link
Collaborator

hey @AlexBeznoss thanks for flagging this, it looks like the docs need to be updated as i was told its actually sha512 of timestamp + api_secret, im told that doesn't include a body as the docs state

ill try to get around to including this in an example

@AlexBeznoss
Copy link
Author

Wow, it works and is so simple.
Thanks 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants