ip whitelist with httpRouter
Hello, I'm currently using the httpRouter with Clerk webhooks to sync events with convex. I was wondering if there was a easy way to setup an ip whitelist so any requests that aren't from a specific ip list are dropped?
6 Replies
Hey, not at the moment. (You should validate the request is from Clerk as per the docs)
Maybe if Convex would give us access to the ips we could implement a whitelist ourselve
maybe you can grab the ip via x-forwarded-for
seems to work
https://docs.svix.com/webhook-ips.json
Thanks for the info! I ended up just doing this:
Awesome