R
RunPod14mo ago
jax

serverless webhook support secret?

serverless webhook get status should set secret, otherwise anyone can change my db.
Solution:
you can use url query params
Jump to solution
6 Replies
flash-singh
flash-singh14mo ago
you can embed secret into your webhook
jax
jaxOP14mo ago
How to embed?
Solution
flash-singh
flash-singh14mo ago
you can use url query params
jax
jaxOP14mo ago
ok thanks ,is it such as webhook: https:mywebhookurl?secret=publickey?
flash-singh
flash-singh14mo ago
yes
🐧
🐧14mo ago
Just be aware that query params can be logged/viewed. If you data is sensitive, another way could be to expose the private key as an env var in your serverless. Then, sign each webhook response and pass the signature along with the response. Your backend would have the same private key so can validate the signature. I haven't tested it but it should work.

Did you find this page helpful?