JumpCloud webhooks in production: duplicates, ordering, retries and timeouts
This guide covers the problems JumpCloud webhooks can cause in production and how to handle each one. What JumpCloud sends is on the JumpCloud webhooks overview, the event types are on JumpCloud webhook events, and how to check the credentials is on Verify JumpCloud webhooks.
JumpCloud's docs give the retry policy, the payload fields and the event types. They give no timeout, ordering guarantee, delivery ID or resend, so much of this guide is about a receiver that doesn't depend on them.
At a glance
| Problem | What to do | With Event Gateway |
|---|---|---|
| Timeouts | Return a 2xx straight away; process in a background job | Accepts the notification at once, then queues it for your service |
| Duplicates | Keep one record per alert_id and update it | Drops repeats based on the body fields you choose |
| Ordering | Compare update_at before applying a status | Limits the delivery rate to your service |
| Retries | Return a 5xx for temporary failures; check Directory Insights after an outage | Accepts notifications while your service is down and retries to it |
| Choosing events | Attach the channel to a rule, then route on di_event.event_type and rule_id | Filters and routes on any field in the body |
| Testing | Use Test Webhook against a public URL, then fire a real rule | Forwards to localhost and replays past requests |
| Other limits | Use HTTPS, compare priority and status without case, treat bodies as sensitive | Checks the Basic credentials on each request |
JumpCloud webhook timeouts and slow handlers
Return a 2xx as soon as you've checked the credentials and stored the body, then do the work in a background job.
Why it happens: JumpCloud doesn't state how long it waits for a response. It does retry on 408, so a slow endpoint can plausibly see the same notification again, and with no published limit you can't tell how slow is too slow.
Fix it in your handler:
- Check the credentials, store the body and return
200before anything else. - Open tickets or page people in a worker. See why to process webhooks asynchronously.
- Keep calls to other services out of the request path.
With Event Gateway: Hookdeck accepts each JumpCloud notification as it arrives, then queues it and delivers it to your service with its own retries. Your handler can take as long as it needs.
Duplicate JumpCloud webhooks
Keep one record per alert_id and update it. Many notifications can share an alert, and the body has no delivery ID.
Why it happens: Three things repeat a notification:
- A threshold rule creates one alert, then sends a notification for every new event in its monitoring window. Ten failed logins can raise one alert, and each failed login after that sends another notification for it.
- A rule with Alert Resolution or Alert Acknowledgement selected also notifies when the alert's status changes.
- A retry after a
5xx,408or429can repeat a notification your handler already finished.
Fix it in your handler:
- Upsert on
alert_id, and storestatusandupdate_aton the record. - Before you do something irreversible, skip the work if you've already handled the same
alert_id,statusandupdate_at. See our guide to webhook idempotency. - For Access Requests events, key on
di_andevent.access_ request_ id di_.event.access_ request_ state - Don't rely on
alert_idfor a rule with Generate Alerts turned off. The docs don't say what the field holds when no alert is created.
With Event Gateway: Deduplication can drop repeats based on the fields you choose, such as alert_id, status and update_at, before they reach your service.
Out-of-order JumpCloud webhooks
JumpCloud doesn't promise an order. Compare update_at with what you've stored before you apply a status.
Why it happens: The docs say nothing about ordering, and a retried notification arrives after its backoff, possibly behind newer ones. A Resolved could land before the Open that a retry is still delivering.
Fix it in your handler:
- Apply a notification only if its
update_atis newer than the one on your record. - Use
previous_alert_statusto spot a transition you never saw, then look the alert up in the Admin Portal. - Keep the older notification for your audit trail, even if you don't apply it.
With Event Gateway: A max delivery rate on your destination keeps a burst from reaching your handler all at once, and every request is stored, so you can inspect the sequence you received.
JumpCloud webhook retries and missed notifications
JumpCloud retries three times with exponential backoff on a 5xx, 408 or 429, then logs the failure in Directory Insights. It documents no resend, so an outage longer than the backoff can lose notifications.
Why it happens: The backoff intervals aren't documented, and neither is a retry for any other status. A 401 from a misconfigured receiver or a 404 from a wrong path should be treated as final. JumpCloud also doesn't say whether it disables a failing channel, so check the channel's status too.
Fix it in your handler:
- Return a
5xxwhen a temporary problem stops you storing the body, so JumpCloud retries. - Return a
4xxonly for a request you'd never accept, such as wrong credentials. - Watch Last Response and Success Rate on the Webhooks page, and look for failures in Directory Insights.
- After an outage, check Insights > Directory and the alerts dashboard for what you missed. Don't expect JumpCloud to send it again.
With Event Gateway: Hookdeck accepts each notification as JumpCloud sends it, stores it and delivers it to your service with automatic retries on a schedule you control. Issues alert you when deliveries fail, and you can replay any stored request after an outage.
Choosing JumpCloud events
A saved channel sends nothing until you attach it, and what you attach it to decides which notifications arrive. Route on di_event.event_type, and fall back to rule_id.
Why it happens: There are three routes into a channel:
- Alert rules, such as low disk space or unauthorised software, through Send Notifications on the rule.
- Insights rules, whose Conditions select Directory Insights event types.
- Access Requests, where you select the events per channel under Access > Access Requests, with no separate rule.
The type sits in di_event.event_type, and JumpCloud's docs don't show what di_event holds for a device monitoring rule. A notification that came through Access Requests is slightly different from an alert: its details, such as workflow and access_request_id, are nested under di_event.
Fix it in your handler:
- Select only the events you act on, in the rule's Conditions or the channel's Access Requests list.
- Read
di_event.event_typeif it's there, and userule_idorcategoryif it isn't. - For
association_change, read thetypefield in the event, which names the specific action. JumpCloud doesn't list its values. - Read
access_withmanagement_ access_ request_ approval di_, because that one type covers approvals and denials.event.access_ request_ state - Read fields defensively and log bodies you don't recognise. The only example is a sample that omits
alert_idand uses auser_logintype that isn't on JumpCloud's lists.
With Event Gateway: Hookdeck stores every request with its body, so you can collect real examples. Filters can route on di_event.event_type, priority or rule_id, so each service gets only what it handles.
Testing JumpCloud webhooks
Use Test Webhook on the channel to check connectivity and credentials, then fire a real rule to see a real body.
Why it happens: JumpCloud's cloud can't reach localhost, and the docs don't say what a test request's body contains, so a passing test doesn't prove your parser works. They also don't say whether Basic credentials go on the first request or only after a 401 challenge.
How to test it:
- Run
hookdeck listen 3000 jumpcloud --path /webhooks/jumpcloudand use the URL it prints as the channel's URL. - Click Test Webhook and read the simulated request and response. On a saved channel, save your changes first, or use Test on the channel's menu.
- Log the headers your endpoint receives and confirm
Authorization: Basic ...is on that first request. - Trigger a low-risk event that an Insights rule selects, such as a failed login to a test account, and keep that body as a fixture.
With Event Gateway: The Hookdeck CLI forwards requests to localhost, and you can replay stored requests without triggering the rule again.
Other JumpCloud limits
Basic credentials aren't a signature. JumpCloud doesn't sign requests. Base64 is an encoding, so anyone who reads a request can read the password, and nothing stops a captured request being replayed. Use HTTPS, give each channel its own username and password, and rotate them if they might have leaked.
priority and status differ by page. The field table has High and Open, while the Azure walk-through's sample has HIGH and OPEN. Compare them without case.
Use a certificate from a trusted CA. Verify SSL Certificate is on by default, and JumpCloud's page says that when it's enabled, self-signed certificates are allowed, the reverse of what the name suggests. A trusted certificate works either way.
Sensitive values can't be read back. Up to 10 values masked in the URL, and any header marked Sensitive Value, can't be viewed after saving. A channel can carry up to 25 headers. Keep your own copy.
No published source addresses. The Data Centers article lists LDAP and RADIUS endpoints, but no addresses that webhooks come from, so don't plan on an IP allowlist.
Bodies carry personal data. Fields such as initiated_by, and client_ip and user_remarks in di_event, identify people. Limit who can read your stored notifications, and how long you keep them.
With Event Gateway: Create a source with the JumpCloud type, enter the same Username and Password as the channel, and use the source URL as the channel's URL. Hookdeck checks the credentials on each request, and every request is listed with its headers and body, including any that fail verification. Token Authentication and custom-header channels can't be checked by this source type.
Get started with Hookdeck for free and handle JumpCloud webhooks reliably in minutes.
Keep an outage from outlasting JumpCloud's three retries.
Event Gateway checks the channel's Basic credentials, accepts each notification as it arrives, queues it and retries to your service on your schedule, so a slow or failing handler doesn't cost you a security alert.