Latest / Ship It Weekly - DevOps, SRE, Platform and Cloud Engineering News / Ship It Conversations: Jay Lark of Hookbridge on Webhook Reliability, Retries, Idempotency, Replay, HMAC Security, Local Testing, and Operating Webhooks in Production
Transcript
- 0:00Webhooks might be the simplest distributed system
- 0:02most teams underestimate. You give a service
- 0:06a URL. It sends an HTTP POST when something happens.
- 0:11Done. Until your endpoint is down during a deploy.
- 0:15Or the sender retries and you process the same
- 0:19event twice. Or events arrive out of order. Or
- 0:23a valid request triggers something it should
- 0:26not. Or you discover the provider stopped retrying
- 0:30hours ago and nobody noticed. Suddenly, that
- 0:33simple HTTP POST needs queues, idempotency,
- 0:38signature verification, replay, observability,
- 0:42retention, and someone willing to own it when
- 0:45it breaks. That is the strange thing about webhooks.
- 0:49The interface is simple. The operational contract
- 0:52is not. I'm Brian Teller from Teller's Tech.
- 0:55And this is Ship It Weekly. Welcome back to Ship
- 1:15It Weekly, where I filter the noise and focus
- 1:18on what matters when you are the one running
- 1:20infrastructure and owning reliability. Most weeks,
- 1:23it's a quick DevOps, SRE, platform, cloud, and
- 1:28security news recap. In between those, I do conversation
- 1:31episodes with people building and operating the
- 1:35systems we all depend on. Today I'm joined by
- 1:38Jay Lark, Principal DevOps Engineer and the founder
- 1:42of Hookbridge. Jay has spent years dealing with
- 1:45the operational problems hiding behind webhooks.
- 1:49Failed deliveries, duplicate events, retry behavior,
- 1:53signature verification, replay, payload visibility,
- 1:57and the awkward process of testing webhook integrations
- 2:01locally. We talk about what at-least-once delivery
- 2:05actually means, why the receiver usually carries
- 2:09most of the reliability burden, what teams need
- 2:12to log without accidentally storing sensitive
- 2:15data, and why replay feels optional right up
- 2:19until the first incident. Jay also explains why
- 2:23polling may be more useful than engineers give
- 2:26it credit for, and why every team probably does
- 2:29not need to build its own webhook delivery platform.
- 2:33All right, let's jump in. Today I'm joined by Jay
- 2:41Lark, principal DevOps engineer and founder of
- 2:43Hookbridge. We're talking about webhooks, why
- 2:46they became the default way services talk to
- 2:48each other, why they're harder than they look,
- 2:51and what teams need to understand before relying
- 2:54on them in production. Jay, thank you for joining
- 2:57me. Thanks for having me. Glad to be here. So
- 3:00I guess let's start at the top. What are webhooks?
- 3:05Yeah, we should define it so we all know what
- 3:08we're talking about here. They're deceptively
- 3:09simple. At least they seem like they're simple
- 3:13until they're not. But basically, it's an HTTP
- 3:16POST request from one website to another website,
- 3:20one app to another. Just a real simple example.
- 3:23If you want to, say, get a notification when
- 3:28something happens on GitHub, like your PR merges
- 3:30in or something, you can give GitHub a URL. And
- 3:34when your PR merges in, GitHub will send an HTTP
- 3:37POST to the URL you gave it with a little JSON
- 3:41body saying PR merge or whatever. And that's
- 3:43it. It's real simple. HTTP POST. Why are they
- 3:47harder than they look? There's a whole bunch
- 3:49of things that can happen. If the receiver is
- 3:52down, what happens then? Many webhooks don't
- 3:56retry. They just kind of sit there. And some
- 3:59webhook providers give you an option to go manually
- 4:02hit the retry button, but many don't. A lot of
- 4:05the big webhook providers will send webhooks
- 4:10kind of out of order. So you might get an order
- 4:13updated before order created, and your system
- 4:17receiving it might not be able to update an order
- 4:21that it doesn't have yet. There are latency issues.
- 4:24If your servers are slow to say, yes, I received
- 4:28this webhook, the sending party may decide, hey,
- 4:33they didn't get that. There's an error. Let me
- 4:34send it again. And now all of a sudden you have
- 4:36duplicates. There's a whole host of things that
- 4:38can go wrong in the whole transaction. So on
- 4:41paper, a webhook is just an HTTP POST, as you
- 4:44said. Why is that mental model the source of so
- 4:48much pain? Probably because it seems so simple.
- 4:51So people write kind of the happy path in their
- 4:55code, right? It's one or two lines of code
- 4:56to send an HTTP POST. But all of the things that
- 5:00you would have to do when it fails, and, you know,
- 5:03you're wishing you did a little bit more than
- 5:05the one or two lines of code. All of the things
- 5:07that you end up having to do to kind of catch
- 5:11all those edge cases, it's pretty significant.
- 5:14Separating events by different IDs, deduplicating
- 5:17events if you get the same one, and verifying
- 5:19that the webhook came in from whoever you expect
- 5:23it to. It's a whole set of things that you really
- 5:26need to account for and to build for. A lot of
- 5:30people don't. And then there's at-least-once delivery.
- 5:34What does that actually mean for the person receiving
- 5:36the webhook? Yeah, that's good wording, isn't
- 5:38it? The big webhook senders, like
- 5:41Stripe or PayPal, say, at-least-once
- 5:45delivery: We will send you the event at least
- 5:47once. We might send it 10 times. We might send
- 5:50it more, yeah. So, you know, if the webhook is
- 5:53charging your credit card for an order, you certainly
- 5:56don't want to process that 10 times. So you're
- 5:59going to want to make sure you only process it
- 6:01that once. Okay, so there's an asymmetry with webhooks.
- 6:05The sender fires an event, but the receiver has
- 6:08to expose an endpoint, keep it available, verify
- 6:11it, process it, and not lose anything. Is that
- 6:14a fair burden to put on every consumer? Fair?
- 6:17That's a tough call. That's the way it is now.
- 6:21You know, before webhooks became the main thing,
- 6:24we used to poll for events. So if you go back
- 6:27to our example of a GitHub PR merge, you could
- 6:30change your app to check every five minutes or
- 6:33every 10 minutes, or maybe every minute: Has
- 6:35that PR merged in? Has that PR merged
- 6:38in? And most of the time you're going to get nothing
- 6:41back. The thing didn't happen, so it's pretty
- 6:43wasteful. And also then, on GitHub's end, they're
- 6:46getting hammered by you every minute and then
- 6:49like a million other people. And I'm not blaming
- 6:53GitHub; literally everybody does this. But
- 6:55they've switched the contract now, right?
- 6:58We'll just send it to you as it
- 7:00happens. So it's good for you. You get the event
- 7:02as soon as it happens. But yes, there's
- 7:06a huge burden on you now. You have to be up all
- 7:09the time. You can't go down, or like we said,
- 7:12they may not retry. You might never get it. You
- 7:14have to do all these deduplications. The
- 7:16events may not come in in the order you
- 7:19expect, so you have to maybe queue them somewhere
- 7:21and wait for event number one in a chain to arrive
- 7:26before you process events two, three,
- 7:28and four. Then you have to do all the verification
- 7:31and all those types of things. So is it fair?
- 7:34Maybe. I mean, it's your data you're looking
- 7:36for, really. Maybe. But it is just a fact. That's
- 7:41how the modern web works now. If you're optimizing
- 7:43for like six nines with like 31 seconds per year
- 7:47or whatever, if it happens to go down during
- 7:49that 31 seconds, you lose out on that webhook,
- 7:52right? I mean... For a lot of providers,
- 7:54yeah. Somebody like Stripe has a web console
- 7:57you can go in and you can hit retry and it'll
- 8:00resend it to you. But you have to know that you
- 8:02missed it. You don't know that somebody submitted
- 8:05an order and you didn't get it. So you're building
- 8:08it. Then you're building some checker to go on
- 8:09to Stripe's API and check for a missed order.
- 8:11Like, wow, you could have built the redundancy
- 8:14into your system in the first place. So I guess
- 8:17that leads to debugging the failed webhooks.
- 8:20That's been miserable for so long. Is there
- 8:23a way to combat that? How do we improve it?
- 8:26Yeah, it's very, very difficult. A lot
- 8:31of the time, if you've ever debugged a failed webhook
- 8:34that GitHub sends you, it's this big red
- 8:36failed message in the GitHub console, but
- 8:39there's not a lot of detail about what happened.
- 8:40You might get the HTTP error code back that your
- 8:43system sent, but there's really not that
- 8:45much there. So really, if you're building
- 8:48this yourself, if you're receiving
- 8:50webhooks, you have to build in a whole bunch
- 8:52of logging to find out what happened. Did the
- 8:55signature verification go wrong? Is there just
- 8:59too much of a latency? A lot of webhook senders
- 9:02will just fail pretty fast if you don't respond
- 9:04and acknowledge and process the data quickly enough.
- 9:07A whole host of things can go wrong. So you need
- 9:10that detailed logging and information to be able
- 9:13to debug it. And most senders don't give you
- 9:17what you need. How do we get around the latency
- 9:20requirements or the availability requirements
- 9:23without just throwing a ton of infrastructure
- 9:26at it, right? Yeah, it's tough. It's a tough
- 9:29call. We have a lot of customers that use n8n
- 9:32to receive webhooks. It's a great product, really
- 9:36easy to use. And a lot of the workflows get kicked
- 9:38off by webhooks. I think a lot of people use
- 9:41n8n, and it's hard for me to say, because it's
- 9:44cheap, and they end up putting it on pretty
- 9:47under-specced servers, which just take a little bit
- 9:49longer to respond. And a lot of providers time
- 9:52out really fast on that. So the answer to your
- 9:55question is that you have to give it enough horsepower.
- 9:58That's just the fact of the matter. Going down
- 10:01for deployments and things like that, you have
- 10:04to build in that redundancy. So however many
- 10:06listeners you have up, they have to stay up while
- 10:10the new ones come take their place. It's not all
- 10:13that different from kind of rotating on a web
- 10:16server underneath a load balancer, but it's just
- 10:18something you do have to account for when you're
- 10:21receiving webhooks because you have no idea when
- 10:23they might come in. Whose problem is it when
- 10:26there is a failure? Is it on the sender? Is it
- 10:28on the receiver? Is it, I guess, case by case?
- 10:30Yeah, I mean, it can be both, right? Depending
- 10:32on why. Ultimately, it's kind of the receiver's
- 10:35problem to deal with, right? They want the
- 10:38data. They have to kind of figure it out, and
- 10:41whether that's creating a whole bunch of support
- 10:42tickets with the upstream provider and, you know,
- 10:45maybe someday getting a response, or beefing up your
- 10:48infrastructure and, you know, solving whatever
- 10:50problem is causing the delivery problem.
- 10:52Ultimately, I think it comes down on the person
- 10:55receiving the webhook. That's fair. And I guess
- 10:58before we even know, right, we don't know if
- 11:01there was an issue if the webhook didn't go through
- 11:03if it was a latency drop-off, if our servers just
- 11:08didn't receive the webhook for whatever reason
- 11:09during that time that it was sent. How much visibility
- 11:13should a provider have or service have to look
- 11:18into webhook calls? Like what's a standard as
- 11:21far as visibility? Yeah, I think you need a lot
- 11:24there. You need good logging, like I said, between
- 11:26the whole TCP handshake to see whether
- 11:29things are getting cut off because of latency.
- 11:31You need visibility into where that might be
- 11:34dying. You need the request and the response
- 11:38headers. Maybe the signature verification is
- 11:41just not working. A lot of people, at first,
- 11:43if they're actually trying to do signature verification,
- 11:46actually verify on the wrong part of the message.
- 11:49And that's going to be pretty clear if you're
- 11:52looking at the headers of the response, but sometimes
- 11:54you just don't get those. So you're going to
- 11:57need the full request and response headers.
- 12:00You really need everything except for probably
- 12:03the body of the message, right? There's some
- 12:05privacy and security issues with seeing
- 12:08whatever might be sent in that body. But other
- 12:11than that, you really need a pretty comprehensive
- 12:13observability view into that transaction. So
- 12:18that was actually going to be my next question
- 12:19on the privacy compliance angle. Is it just the
- 12:23body? Is that the only thing that we're really
- 12:26concerned with, I guess, with PII? I mean, well,
- 12:29that's a huge one. People use webhooks for anything.
- 12:32So there's no telling what could be in the body.
- 12:35Obviously, listeners out there, they'll know
- 12:37what their app does. Maybe there's nothing super
- 12:40sensitive in a PR merged message, but typically
- 12:44there's going to be something more sensitive
- 12:45in there. But it's not only the body. Tokens
- 12:48and signature verification data
- 12:51can be in the headers. Those can also be intercepted
- 12:55and used for nefarious purposes if somebody has
- 12:58access to things they shouldn't. What about replayability?
- 13:01Is that a core requirement, or does that feel
- 13:04optional until the first incident? It probably
- 13:07feels optional to a lot of people at first. Because
- 13:11going back to the idea of sending an HTTP POST,
- 13:13it's usually one or two lines of code, right?
- 13:15You just do it. The first time you have an incident,
- 13:18you're going to want to be able to replay things.
- 13:21And the fact is a lot of providers just don't
- 13:24allow that. But yeah, you can, especially if
- 13:27you are receiving a webhook and your system is
- 13:32sending a 200 response back, yeah, I got it.
- 13:34But something internal to your system broke and
- 13:38you didn't process the message correctly. It
- 13:40might be gone now from the sender. So, you know,
- 13:43maybe you'll fix your back end and say, oh, things
- 13:45work now, but you need to be able to go and replay
- 13:47those messages. Okay, so we have observability.
- 13:50We have webhooks being received. We maybe have
- 13:53the ability to replay them. Now from the security
- 13:55side of things, the trust boundary: Once you expose
- 13:59that public endpoint for incoming events,
- 14:02what are the security basics that people should
- 14:05get right from the get-go? Yeah, this isn't
- 14:07everywhere, but most providers now are going
- 14:10to give you a cryptographic signature that you
- 14:13can verify that the sender is who you expect.
- 14:16It's them sending it. So if the provider
- 14:19you're receiving webhooks from offers that,
- 14:21please do that. Verify it. But there's a second
- 14:25part that I definitely see people ignoring is
- 14:28just because the webhook came from
- 14:32a trusted source doesn't mean whatever the payload
- 14:36is asking you to do in your system is okay. Like
- 14:39you need to verify the business logic and say,
- 14:42okay, yeah, this order can go to this or this
- 14:45thing is owned by this project ID. So it's not
- 14:48just blind trust. It's a trusted message, but still
- 14:51do all the things you would normally do
- 14:53on an HTML form or something, you know,
- 14:56in your app. What does HMAC signing actually
- 14:59prove? Like more than just like tokens or? Yeah,
- 15:02so they'll give you a key and then they'll sign
- 15:06their message and your system can compare, make
- 15:09sure that the message is signed by them with
- 15:12the key that they give you. So if you're doing
- 15:16this signature verification with Stripe, the
- 15:18messages that are coming in, you can verify those
- 15:20are coming from Stripe. Okay. Like I said, you
- 15:23still want to make sure that, you know, the
- 15:25orders, or probably more importantly, refunds, are
- 15:28going to the right accounts and you know you're
- 15:30somebody's not spamming you with refunds
- 15:33to one credit card. But that's all it does. It
- 15:35verifies that the message is coming from the
- 15:38person you expect it to come from. And in regard
- 15:41to security models, how do replay attacks work
- 15:46in this context? Yeah, so this is a big
- 15:50problem. I don't know if it's a big problem.
- 15:52I don't know if people are intercepting a lot
- 15:53of webhook messages, but it's a security precaution
- 15:56that you need to take. With signature verification,
- 15:58you need to be able to kind of dedupe messages.
- 16:03So if a refund is coming in, hopefully your provider
- 16:07has an event ID attached to it. Some providers
- 16:10don't do event IDs or anything like that. So,
- 16:12you use an event ID so you only process that
- 16:15message once, and probably attach timestamps
- 16:18to it. So a timestamp will say, okay, this, you
- 16:21know, maybe you have some rules that say only
- 16:23process this message within a certain window
- 16:25of the timestamp. So you can do these things
- 16:28to protect yourself from somebody who has
- 16:32access to those keys or whatever, so they can't
- 16:35not spamming you with webhooks you shouldn't
- 16:37follow. Okay. And so moving from that, I guess,
- 16:39into like local development. So we have security
- 16:42in place. I want to do local testing of my webhooks.
- 16:48Why is that so painful? It is a very painful
- 16:52thing. Because in our earlier example, if you
- 16:56want to monitor, if you want a message from GitHub
- 16:58when a PR merges, you have to go into GitHub
- 17:00and you have to put in, like, a URL of where
- 17:03you want GitHub to send that message. GitHub's
- 17:05not going to be able to send a message directly
- 17:07to your laptop, your localhost environment.
- 17:10Maybe you have some sort of tunneling program.
- 17:12There's all sorts of them out there. Set up some
- 17:14secure connection that pops your laptop out to
- 17:17the web with a unique URL. But 99% of those
- 17:21programs, the URL changes like literally every
- 17:24time. So every time you boot up your laptop,
- 17:27you've got to go into GitHub and change something.
- 17:29I mean, the other option is deploying to your
- 17:34staging environment or your testing environment
- 17:35somewhere up in the cloud where you can receive
- 17:38webhooks, but every single time you change,
- 17:41even if it's a simple spelling mistake, you've got to
- 17:44do this whole CI deployment pipeline, and it
- 17:46just takes time. So the time spent deploying up
- 17:50to the cloud or every single time going up and
- 17:53changing this URL, it's annoying. It's a lot
- 17:56of friction. I'm assuming you thought about this
- 17:58too while building Hookbridge. So how did you
- 18:00build that out for local development? Yeah, so
- 18:03even developing a product like Hookbridge, because
- 18:06we ran into this firsthand. So we built a little
- 18:10program, a little binary you can run on your
- 18:13computer. You go into our Hookbridge app and
- 18:16you create a one-time URL to hand to GitHub
- 18:18or whoever you want. And you put that in the
- 18:20app and that URL never changes. And then you
- 18:23run this little binary on your computer, and
- 18:25it'll create a secure tunnel from your laptop
- 18:27up to our system. And our system will just kind
- 18:30of forward those webhooks through to your laptop.
- 18:34So GitHub can send it to us, and then we'll send
- 18:36it down to your laptop. You set it up once, just
- 18:38like any other webhook, and then that URL is
- 18:41live forever. Interesting. So when you started
- 18:43building webhook infrastructure. What kind
- 18:47of things surprised you the most? Just how many
- 18:50ways it can break and how, you know, not our
- 18:53system, just webhooks in general. Just our whole
- 18:57conversation, how many things you have to account
- 18:59for on something that seems so simple. And it
- 19:04really turns into this huge distributed thing
- 19:06that you have to build to account for all the
- 19:09ways things can go wrong. And that was kind of
- 19:12the inspiration for building Hookbridge.
- 19:14I've been in the industry for quite
- 19:16a while now, and I've seen this play
- 19:18out over and over everywhere I've
- 19:21been that has accepted webhooks. You
- 19:23have to do it right. You do it right at the
- 19:25beginning or eventually you learn, you have to
- 19:27do it, but you have to eventually build this
- 19:29huge thing to accept something that seems so
- 19:32simple. Yeah, it's just a cURL command,
- 19:35right? It's simple. Yeah, it's deceptively simple
- 19:38for sure. Okay, so if a platform team is building
- 19:41or buying a webhook infrastructure, what would
- 19:45you say are the most non-negotiables that
- 19:47they should look for or should be table stakes?
- 19:50Yeah, I mean, table stakes, obviously, a lot
- 19:53of the security stuff that we talked about, I
- 19:55mean, I'm obsessed with security. So you have
- 19:59to be able to do the signature verification and
- 20:01things like that. But you need the tools to be
- 20:04able to troubleshoot when there are problems. All the
- 20:07observability and logging that we talked about, and
- 20:10inspecting all the request and response
- 20:14headers. That's
- 20:18what I'm trying to say. You just need to be able
- 20:19to see the whole chain to see where it's going
- 20:22wrong because it doesn't matter if you're sending
- 20:24webhooks or if you're receiving them. The other
- 20:27party is usually not very helpful in troubleshooting
- 20:31the problem. And then obviously all the other
- 20:33problems that we talked about, like you got to
- 20:34be up all the time, that kind of thing. So what
- 20:38prompted you to build Hookbridge to solve this?
- 20:40Yeah, because literally every place that I've
- 20:43been that uses webhooks runs into these exact
- 20:45same problems. And finally, I'm like,
- 20:48just going to build it. Build it once and we
- 20:50can use it forever. And what kind of users are
- 20:55you seeing use Hookbridge and what kind of problems
- 20:58are they solving? Yeah, a lot of it is the
- 21:01n8n users, like I talked about. We'll just act
- 21:04as an intermediary in front of their n8n box.
- 21:08We'll keep retrying for as long as they want,
- 21:10and we'll try a little bit longer, and we won't
- 21:12time out as fast as maybe some
- 21:15providers that are having issues with
- 21:17n8n. But an interesting newish thing is, I
- 21:22mean, I'm sure we've all heard about OpenClaw
- 21:24and all these other claws, all the home AI automation
- 21:27things that are out there. A lot of people are
- 21:30setting up systems, tools at home that are great,
- 21:33do a lot of different things. A lot of them are
- 21:35requiring to receive data through webhooks. Don't
- 21:39let OpenClaw open holes in your router
- 21:42to send them to your laptop. So one thing that
- 21:45one thing we've added to Hookbridge
- 21:47that's really caught on is we call it a pull
- 21:50endpoint, where you go into Hookbridge, you add
- 21:52an endpoint, a webhook-receiving endpoint, just
- 21:55like you would normally. You hand that to Stripe
- 21:57or whoever is sending you webhooks and they send
- 21:59webhooks normally. But we don't forward them
- 22:02onto you. We just hold them and then OpenClaw,
- 22:05whatever system you have that wants to receive
- 22:08webhooks, they can just hit our API and they
- 22:11can pull down the events from us when you want
- 22:14them. So you don't have to open up any firewall
- 22:16holes or anything like that. It also solves some
- 22:19issues with ordering and things. So you can
- 22:22pull down by event ID if you want all the
- 22:24orders first and then all the updates and things
- 22:26like that. So the out-of-order processing
- 22:28and process-once issues kind of go away when
- 22:32you're pulling things with an
- 22:34API instead of just receiving them whenever
- 22:36they might happen. Yeah, that's cool. Okay, so if
- 22:40I wasn't ready to start with a
- 22:43platform yet, but I want to shore up or fix
- 22:46my webhook issues so I don't run into these
- 22:49problems, what are the top three things
- 22:52that we should do right off the bat?
- 22:54We kind of talked a little bit about this, but
- 22:56is it HMAC? What is it? My
- 22:59number one thing is always going to be the HMAC
- 23:01signature. Like everyone should do that. Just
- 23:03don't accept random webhooks from whoever's pretending
- 23:07to be somebody else. Beef up your observability
- 23:09platform. Whatever you have now, just make sure
- 23:13that you can diagnose any problems, whether they're
- 23:17on your end receiving, or as much as you can
- 23:20kind of gain insight from whoever's sending you,
- 23:22or if you're sending webhooks, you know, the
- 23:24responses you're getting back from the person
- 23:26you're trying to send to. Just make sure that
- 23:28your observability platform is as good as it
- 23:31could possibly be. Have you noticed, we talked
- 23:34a little bit, you talked a little bit about OpenClaw.
- 23:36Fable is now back online after being taken away
- 23:41for a couple weeks. Have you noticed any trends
- 23:44on the security side? There's been a lot of RCEs,
- 23:47I know, outside of just webhooks, but there's
- 23:49been a lot of CVEs out there lately. Have you
- 23:53noticed anything with the platform, like from
- 23:55your customers or from other friends in the industry
- 23:59around webhooks, trends related to AI or related
- 24:03to just infiltration in general, like trends
- 24:06that are happening? Maybe AI is making that easier,
- 24:09but maybe it's not even AI related. Yeah, a couple.
- 24:11Like I said, the people running OpenClaw at
- 24:14home that need to receive webhooks. That was
- 24:16kind of an unexpected surprise. It's nice.
- 24:18It's more people than you might think, too, that
- 24:21are all of a sudden like, I need to receive webhooks
- 24:23to my iMac. That's weird. Okay, I get it. I get
- 24:27a lot of, and this has always happened, even
- 24:30when I didn't run the business. Just being
- 24:33on the DevOps team, you do occasionally get these
- 24:35emails, but there's a lot of people now that
- 24:38have access to OpenClaw or AnyClaw, any AI, whatever,
- 24:41who are security researchers. And they send you
- 24:45all sorts of emails: "I found whatever vulnerability.
- 24:48I'll tell you about it for whatever fee," you
- 24:51know, so you get a lot of that. And I think that
- 24:54has probably increased since the dawn of AI.
- 24:57I don't think they're finding legitimate things.
- 25:01The couple that I've asked, oh, hey, can you
- 25:02show me some proof? And maybe I'll give you the
- 25:04bounty. They're not finding real things, at least
- 25:07from what I've seen. Locally, personally, I'm
- 25:08using it. Yeah, it gives me good confidence when
- 25:11I can run the code through multiple AI models
- 25:14and say, give me a thorough security review.
- 25:17And we can definitely find things that way. Yeah,
- 25:20out on the open web, I haven't seen a whole lot
- 25:24coming our way yet. Fingers crossed, because
- 25:27I know some communities are really under fire
- 25:29from it. And what kind of customers primarily
- 25:33do you have or users do you have in the platform?
- 25:36And what are they using Hookbridge for? Like,
- 25:39what problems are they solving? Yeah, big one
- 25:41is the n8n users. Someday I'll be able to say
- 25:45that well. But a lot of them are the opposite
- 25:47of what we've been talking about. We've mostly
- 25:52been talking about how to build a system if
- 25:54you are going to receive webhooks. And it's a
- 25:56big thing, like we discussed. You've got to have
- 25:59a queue to hold all these messages and make sure
- 26:00you process them in the right way and do all
- 26:02this signature stuff. A lot of people don't
- 26:04do it. So if you are sending webhooks and the
- 26:06person you are sending to doesn't have a system
- 26:09that is reliable and can receive webhooks and
- 26:12things, you need to kind of build the reverse
- 26:14of it, be able to retry and stuff. So instead
- 26:17of having to do that, people just use us because
- 26:21we will queue the message, keep retrying
- 26:23it, sign it for you, and do all that kind
- 26:26of stuff. So yeah, everything
- 26:28we talked about receiving, you kind of have to
- 26:30do it on the reverse too. It's interesting. So
- 26:33okay, wrapping up, is there any webhook opinion
- 26:36that you have that maybe other engineers might
- 26:40disagree with? Well, as the owner of Hookbridge, I'll
- 26:43probably say, you know, most teams shouldn't
- 26:45build their own webhook infrastructure. I would
- 26:47say a controversial webhook take is to not use
- 26:50webhooks. I would say polling is an underrated
- 26:53thing. Polling still has a place. Like, obviously,
- 26:56be a good citizen. Don't hammer someone. Or,
- 26:59you know, this wasn't my intention, but again,
- 27:02use the Hookbridge pull endpoint. Poll us.
- 27:05We don't care. Let's say someone was looking
- 27:06into growing their webhook journey and they
- 27:11don't want to do all of this themselves. What
- 27:13can Hookbridge offer them and what does it cost
- 27:16to get started? What's the barrier to entry?
- 27:19Yeah, I don't blame you if you don't want to
- 27:21build this huge thing because it's a lot. We
- 27:24have a free plan. You can sign up. All the features
- 27:27are there. There's no big thing that you can't
- 27:29do with the free plan. I think you can send like
- 27:32a thousand webhooks over a month. That should hopefully
- 27:35plenty to test something out. And for a lot of
- 27:37our users, that's enough for their home OpenClaw
- 27:39installs, like we talked about. A thousand
- 27:42a month is fine, and they can just send and
- 27:44receive that many for free. But then obviously
- 27:46we have paid plans if you need to send more messages
- 27:50per month or you need a whole bunch of endpoints
- 27:51and things like that. The paid plans have long
- 27:54retention periods. So if you're receiving webhooks
- 27:57and you're down or actually you're probably going
- 27:59to want to get your own site up really fast too.
- 28:00But you have no control over your customers,
- 28:02right? If the people you're sending to are down
- 28:05for a lengthy amount of time, we'll hold the
- 28:08message and we'll keep retrying it for a long
- 28:10time. And our paid plans have kind of lengthy
- 28:12retry periods, retention periods there. Very
- 28:16cool. So where can people find out more about
- 28:17you and Hookbridge? Hookbridge is at www.hookbridge.io.
- 28:21Send me an email, jay@hookbridge.io,
- 28:24J-A-Y. Happy to talk about webhooks. Happy
- 28:27to talk about anything. Yeah, let us know what
- 28:29you think. Let us know your pain points with
- 28:32webhooks, because I know there are tons of
- 28:34them out there, and we are happy to discuss new
- 28:36use cases and how you might use
- 28:40webhooks or how Hookbridge could work for you.
- 28:43Very cool. Thanks so much, Jay, for coming on.
- 28:45Really appreciate your time. Thank you. That
- 28:47was my conversation with Jay Lark, Principal
- 28:50DevOps Engineer and founder of Hookbridge. The
- 28:54biggest takeaway for me is that webhooks are
- 28:56not unreliable because HTTP is unreliable or
- 29:00because the basic pattern is bad. They become
- 29:03unreliable when teams build only the happy path
- 29:06and treat delivery like a single request instead
- 29:09of a distributed workflow. Once a webhook matters
- 29:12to your business, you need to assume duplicates
- 29:16will happen. Events may arrive out of order.
- 29:19Endpoints will occasionally be unavailable. And
- 29:22something inside your own system may fail after
- 29:25you already acknowledged the request. That changes
- 29:29what success means. A 200 response does not necessarily
- 29:33mean the event was processed correctly. A valid
- 29:37signature does not mean the requested business
- 29:39action is safe. And a retry does not help much
- 29:43if nobody can see what failed or replay the event
- 29:47later. I also liked Jay's point about the burden
- 29:51placed on the receiver. The sender gets to fire
- 29:54the request and move on, while the receiving
- 29:57team has to expose a public endpoint, keep it
- 30:00available, validate the sender, protect the business
- 30:04logic, deduplicate events, and build enough observability
- 30:08to figure out what happened when something goes
- 30:12wrong. And sometimes the answer really might
- 30:14be polling, not hammering someone's API every
- 30:17second, but using polling intentionally when
- 30:21it gives you better control over timing, ordering,
- 30:24or infrastructure exposure. So if you are building
- 30:27a webhook integration, start with the failure
- 30:30path. Verify signatures. Use event IDs for idempotency.
- 30:34Acknowledge requests quickly. Retain
- 30:38enough information to debug failures. And make
- 30:41sure you have a replay story before you need
- 30:44one. You can learn more about Jay and Hookbridge
- 30:46at hookbridge.io. I'll have that and anything
- 30:50else we mentioned linked in the show notes. If
- 30:53you enjoyed this conversation, follow or subscribe
- 30:55to Ship It Weekly wherever you listen to podcasts.
- 30:58You can find the show, previous episodes, and
- 31:02the weekly DevOps and SRE news recaps at shipitweekly.fm.
- 31:06Thanks for listening, and I'll see you later
- 31:09this week.