R
RunPod12mo 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-singh12mo ago
you can embed secret into your webhook
jax
jaxOP12mo ago
How to embed?
Solution
flash-singh
flash-singh12mo ago
you can use url query params
jax
jaxOP12mo ago
ok thanks ,is it such as webhook: https:mywebhookurl?secret=publickey?
flash-singh
flash-singh12mo ago
yes
🐧
🐧12mo 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.
Want results from more Discord servers?
Add your server