JumpCloud webhooks in production: duplicates, ordering, retries and timeouts

Published · Updated

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

ProblemWhat to doWith Event Gateway
TimeoutsReturn a 2xx straight away; process in a background jobAccepts the notification at once, then queues it for your service
DuplicatesKeep one record per alert_id and update itDrops repeats based on the body fields you choose
OrderingCompare update_at before applying a statusLimits the delivery rate to your service
RetriesReturn a 5xx for temporary failures; check Directory Insights after an outageAccepts notifications while your service is down and retries to it
Choosing eventsAttach the channel to a rule, then route on di_event.event_type and rule_idFilters and routes on any field in the body
TestingUse Test Webhook against a public URL, then fire a real ruleForwards to localhost and replays past requests
Other limitsUse HTTPS, compare priority and status without case, treat bodies as sensitiveChecks 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:

  1. Check the credentials, store the body and return 200 before anything else.
  2. Open tickets or page people in a worker. See why to process webhooks asynchronously.
  3. 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, 408 or 429 can repeat a notification your handler already finished.

Fix it in your handler:

  1. Upsert on alert_id, and store status and update_at on the record.
  2. Before you do something irreversible, skip the work if you've already handled the same alert_id, status and update_at. See our guide to webhook idempotency.
  3. For Access Requests events, key on di_event.access_request_id and di_event.access_request_state.
  4. Don't rely on alert_id for 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:

  1. Apply a notification only if its update_at is newer than the one on your record.
  2. Use previous_alert_status to spot a transition you never saw, then look the alert up in the Admin Portal.
  3. 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:

  1. Return a 5xx when a temporary problem stops you storing the body, so JumpCloud retries.
  2. Return a 4xx only for a request you'd never accept, such as wrong credentials.
  3. Watch Last Response and Success Rate on the Webhooks page, and look for failures in Directory Insights.
  4. 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:

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:

  1. Select only the events you act on, in the rule's Conditions or the channel's Access Requests list.
  2. Read di_event.event_type if it's there, and use rule_id or category if it isn't.
  3. For association_change, read the type field in the event, which names the specific action. JumpCloud doesn't list its values.
  4. Read access_management_access_request_approval with di_event.access_request_state, because that one type covers approvals and denials.
  5. Read fields defensively and log bodies you don't recognise. The only example is a sample that omits alert_id and uses a user_login type 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:

  1. Run hookdeck listen 3000 jumpcloud --path /webhooks/jumpcloud and use the URL it prints as the channel's URL.
  2. 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.
  3. Log the headers your endpoint receives and confirm Authorization: Basic ... is on that first request.
  4. 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.

Not affiliated with JumpCloud. Facts are compiled from public sources and linked inline.