WorkOS Status · History · Incident #168357
RESOLVEDElevated latency and errors for AuthKit and User Management API
Major · Started Nov 24, 2026 · 12:41 AM
WorkOS Status · History · Incident #168357
RESOLVEDMajor · Started Nov 24, 2026 · 12:41 AM
Duration
1h 16m
Severity
Major
Detection lead
—
User reports
—
Summary
# Elevated latency and errors for AuthKit and User Management API **Date:** 11/24/2026 **Duration:** 05:14–05:33 UTC \(19 minutes\) **Status:** Resolved ## Summary On November 24, 2026, from 05:14 to 05:33 UTC, WorkOS experienced elevated latency and errors in AuthKit and the User Management API. Customers saw slow or failed sign-ins, failed session refreshes and token exchanges, and failed or slow User Management API requests. SSO requests made directly through the SSO API and Directory Sync were not affected. A database column had recently been added to a high-traffic table with a different index pattern than its siblings, designed to improve performance. A production deployment referencing the new column landed before the table had statistics available for the change, causing the database to choose an inefficient plan involving a sequential scan. Each lookup took up to about 30 seconds, which exhausted the database connections available to the service and caused unrelated requests to queue and fail. On-call engineers were alerted to the latency spike and we rolled back the deployment. Service returned to normal by 05:33 UTC. This was caused by a change we shipped to a critical sign-in path. We take responsibility for the impact and for the delay in updating our status page. ## Background When a user signs in with a social or enterprise identity provider, AuthKit looks up which user is linked to that provider profile. Adding support for new providers involves adding new database columns. ## What Happened ### Affected products * **AuthKit:** Sign-in, sign-up, session refresh and token exchange, including OAuth and MCP clients that rely on refresh tokens. * **User Management API:** Requests served by the same service, including user info and invitation requests. * **Not affected:** SSO connections made directly through the SSO API, and Directory Sync. ### Customer impact * **Scope:** Between 05:14 and 05:33 UTC, measured at our edge, 46% of User Management API requests failed or timed out \(18% returned server errors and 27% were abandoned by the client after waiting\), and 32% of AuthKit requests failed or timed out \(9% returned server errors and 23% were abandoned by the client after waiting\). There were no comparable errors in the period before the deployment. * **Symptoms:** Requests either failed with HTTP 5xx errors or took tens of seconds. 75th-percentile latency rose from about 60 milliseconds before the deployment to about 45 seconds at the worst point. * **Scale:** Some customers saw almost all of their refresh-token exchanges fail during the window, which signed out some of their users and connected clients. Failed or abandoned request rates measured at our edge, per minute, from 04:50 to 06:00 UTC. Errors began at 05:14 UTC and returned to baseline at 05:33 UTC:   Failed or abandoned requests by endpoint, listed by traffic, highest first:  ### Root cause The deployment added support for a new OAuth provider, updating the sign-in lookup to check a new column. The column had been created in the database about thirteen hours before the code change landed. 1. **No statistics for the new column.** Automatic statistics collection had not yet run on the table after the column was added. 2. **A slow query plan.** The new column's index covered only rows with a value, a pattern we chose to make reads and writes faster. Until statistics existed for the new column, the database couldn't use that index to tell that a match was unique. It estimated a large number of matching rows, rather than one or zero, and chose to scan the table instead of using the index. Each lookup took up to ~30 seconds. 3. **Connection exhaustion.** Each slow lookup held a database connection until it finished or timed out. The service ran out of database connections, so requests that didn't use this lookup also queued, then failed or timed out. Fresh statistics on the column or a full index would each have avoided the slow plan. ### Why it wasn't caught earlier * **Staging was too small to surface the problem.** The impacted lookup ran during staging environment testing before the release, but it finished in under a second and was not flagged by human review. * **The release reached all traffic during a short period.** The change went to all of the service's traffic in a single deployment, rather than a gradual rollout that could have limited impact to a small share of requests. ### Detection, recovery and communication An automated latency alert triggered at 05:15 UTC, one minute after the deployment, and posted to Slack at 05:17 UTC. A paging latency alert triggered at 05:19 UTC, and the page reached the on-call engineer at 05:21 UTC. Responders linked the impact to the deployment and started a rollback at 05:26 UTC. The previous release was serving all traffic by 05:29 UTC. Queued requests then drained, and latency returned to normal by 05:33 UTC. The time between the deployment and the page was too long, and we were too slow to update our status page. The public incident was opened at 05:41 UTC, 20 minutes after the on-call engineer was paged and after the customer-facing impact had ended. Many customers learned about the incident from their own monitoring first. ## Timeline All times are UTC on November 24, 2026. * **05:14** — The deployment reaches production. Latency and server errors begin to rise. * **05:15** — The first full-table-scan plans for the new lookup are recorded. * **05:15** — An automated latency alert triggers; it posts to Slack at 05:17. * **05:17** — An automated error-spike alert is reported via Slack. * **05:19** — The latency alert that pages the on-call engineer triggers. * **05:21** — The page reaches the on-call engineer, and an incident is declared. * **05:22** — Responders identify the in-progress deployment as the likely cause. * **05:24** — Responders confirm the errors are limited to the new release and decide to roll back. * **05:26** — Rollback to the previous release begins. * **05:27** — On-call responders escalate to other team members for help with the status page. * **05:29** — The last requests are served by the affected release. * **05:33** — Latency and error rates return to normal as queued requests drain. * **05:34** — Database connection pools return to normal. * **05:41** — The public status-page incident is opened. * **05:49** — The query change is confirmed as the cause, and a revert is prepared. * **06:57** — The status-page incident is marked resolved after monitoring. ## Remediation ### Immediate Fixes Completed: * **Restored service:** Rolled back the service to the previous release and monitored recovery as queued requests drained. * **Reverted the change:** Reverted the change from our main branch and held production deployments until the revert merged, so the next release could not ship the same query again. ### Near-term Improvements The following work is in progress: * **Remove the reliance on column statistics before reintroducing the change:** Refactor the implicated query, and queries of similar shape, to perform well without relying on fresh column statistics. The following work is planned: * **Faster rollbacks:** Shorten the time it takes to restore the last known-good release of this service. * **Gradual rollouts:** Prioritize canary and progressive deployments for the service that handles AuthKit and User Management traffic, so a regression reaches only a small share of requests before it is caught. ### Preventive Measures * **Faster detection:** Audit alert coverage for AuthKit and the User Management API to find how we could have alerted on this problem sooner than seven minutes after the deployment. * **Refresh statistics after schema changes:** **A**dd procedural checks to ensure that new columns have populated statistics before including them in hot queries. * **Status-page updates:** Train every on-call responder to publish status-page updates promptly, including before the cause is known. * **Automate customer messaging**: Expedite an initiative to automate status page updates so that responders can focus on fixing the disruption as quickly as possible. ## Conclusion We recognize the impact this incident had on you and your users, especially on sign-in and session refresh, which your applications depend on. We apologize for the disruption and for the delay in our status-page communication. We are committed to preventing future issues and reducing the impact of unexpected problems when they do occur.
Started
Nov 24, 2026 · 12:41 AM
Resolved
Nov 24, 2026 · 1:57 AM
Duration
1h 16m
Severity
Major
Event timeline
Investigating
Nov 24 · 12:41 AM WorkOSUpdate (Identified): We've identified the cause of elevated latency and errors affecting AuthKit sign-ins and the User Management API, starting at 05:14 UTC. Some requests are slow, and some are failing with timeouts or 5xx errors. End users may see errors when signing in. A recent change is responsible, and we're rolling it back now. SSO connections made directly through the SSO API and Directory Sync are unaffected. We'll post another update once the rollback completes, within 30 minutes at the latest.
Monitoring
Nov 24 · 12:54 AM WorkOSWe've resolved the issue that caused elevated latency and errors for AuthKit sign-ins and the User Management API. We're continuing to monitor and will post another update soon.
Resolved
Nov 24 · 1:57 AM WorkOSBetween 05:14 UTC and 05:33 UTC on November 24 we saw elevated latency and errors in AuthKit and the User Management API, including slow or failed sign-ins, session refreshes, and API requests. We identified the cause, rolled back the change, and all services have been operating normally since 05:33 UTC. We’re sorry for the disruption this caused you and your users. We’ll share a full root cause analysis once our investigation is complete.
Postmortem
Nov 24 · 11:18 AM WorkOS# Elevated latency and errors for AuthKit and User Management API **Date:** 11/24/2026 **Duration:** 05:14–05:33 UTC \(19 minutes\) **Status:** Resolved ## Summary On November 24, 2026, from 05:14 to 05:33 UTC, WorkOS experienced elevated latency and errors in AuthKit and the User Management API. Customers saw slow or failed sign-ins, failed session refreshes and token exchanges, and failed or slow User Management API requests. SSO requests made directly through the SSO API and Directory Sync were not affected. A database column had recently been added to a high-traffic table with a different index pattern than its siblings, designed to improve performance. A production deployment referencing the new column landed before the table had statistics available for the change, causing the database to choose an inefficient plan involving a sequential scan. Each lookup took up to about 30 seconds, which exhausted the database connections available to the service and caused unrelated requests to queue and fail. On-call engineers were alerted to the latency spike and we rolled back the deployment. Service returned to normal by 05:33 UTC. This was caused by a change we shipped to a critical sign-in path. We take responsibility for the impact and for the delay in updating our status page. ## Background When a user signs in with a social or enterprise identity provider, AuthKit looks up which user is linked to that provider profile. Adding support for new providers involves adding new database columns. ## What Happened ### Affected products * **AuthKit:** Sign-in, sign-up, session refresh and token exchange, including OAuth and MCP clients that rely on refresh tokens. * **User Management API:** Requests served by the same service, including user info and invitation requests. * **Not affected:** SSO connections made directly through the SSO API, and Directory Sync. ### Customer impact * **Scope:** Between 05:14 and 05:33 UTC, measured at our edge, 46% of User Management API requests failed or timed out \(18% returned server errors and 27% were abandoned by the client after waiting\), and 32% of AuthKit requests failed or timed out \(9% returned server errors and 23% were abandoned by the client after waiting\). There were no comparable errors in the period before the deployment. * **Symptoms:** Requests either failed with HTTP 5xx errors or took tens of seconds. 75th-percentile latency rose from about 60 milliseconds before the deployment to about 45 seconds at the worst point. * **Scale:** Some customers saw almost all of their refresh-token exchanges fail during the window, which signed out some of their users and connected clients. Failed or abandoned request rates measured at our edge, per minute, from 04:50 to 06:00 UTC. Errors began at 05:14 UTC and returned to baseline at 05:33 UTC:   Failed or abandoned requests by endpoint, listed by traffic, highest first:  ### Root cause The deployment added support for a new OAuth provider, updating the sign-in lookup to check a new column. The column had been created in the database about thirteen hours before the code change landed. 1. **No statistics for the new column.** Automatic statistics collection had not yet run on the table after the column was added. 2. **A slow query plan.** The new column's index covered only rows with a value, a pattern we chose to make reads and writes faster. Until statistics existed for the new column, the database couldn't use that index to tell that a match was unique. It estimated a large number of matching rows, rather than one or zero, and chose to scan the table instead of using the index. Each lookup took up to ~30 seconds. 3. **Connection exhaustion.** Each slow lookup held a database connection until it finished or timed out. The service ran out of database connections, so requests that didn't use this lookup also queued, then failed or timed out. Fresh statistics on the column or a full index would each have avoided the slow plan. ### Why it wasn't caught earlier * **Staging was too small to surface the problem.** The impacted lookup ran during staging environment testing before the release, but it finished in under a second and was not flagged by human review. * **The release reached all traffic during a short period.** The change went to all of the service's traffic in a single deployment, rather than a gradual rollout that could have limited impact to a small share of requests. ### Detection, recovery and communication An automated latency alert triggered at 05:15 UTC, one minute after the deployment, and posted to Slack at 05:17 UTC. A paging latency alert triggered at 05:19 UTC, and the page reached the on-call engineer at 05:21 UTC. Responders linked the impact to the deployment and started a rollback at 05:26 UTC. The previous release was serving all traffic by 05:29 UTC. Queued requests then drained, and latency returned to normal by 05:33 UTC. The time between the deployment and the page was too long, and we were too slow to update our status page. The public incident was opened at 05:41 UTC, 20 minutes after the on-call engineer was paged and after the customer-facing impact had ended. Many customers learned about the incident from their own monitoring first. ## Timeline All times are UTC on November 24, 2026. * **05:14** — The deployment reaches production. Latency and server errors begin to rise. * **05:15** — The first full-table-scan plans for the new lookup are recorded. * **05:15** — An automated latency alert triggers; it posts to Slack at 05:17. * **05:17** — An automated error-spike alert is reported via Slack. * **05:19** — The latency alert that pages the on-call engineer triggers. * **05:21** — The page reaches the on-call engineer, and an incident is declared. * **05:22** — Responders identify the in-progress deployment as the likely cause. * **05:24** — Responders confirm the errors are limited to the new release and decide to roll back. * **05:26** — Rollback to the previous release begins. * **05:27** — On-call responders escalate to other team members for help with the status page. * **05:29** — The last requests are served by the affected release. * **05:33** — Latency and error rates return to normal as queued requests drain. * **05:34** — Database connection pools return to normal. * **05:41** — The public status-page incident is opened. * **05:49** — The query change is confirmed as the cause, and a revert is prepared. * **06:57** — The status-page incident is marked resolved after monitoring. ## Remediation ### Immediate Fixes Completed: * **Restored service:** Rolled back the service to the previous release and monitored recovery as queued requests drained. * **Reverted the change:** Reverted the change from our main branch and held production deployments until the revert merged, so the next release could not ship the same query again. ### Near-term Improvements The following work is in progress: * **Remove the reliance on column statistics before reintroducing the change:** Refactor the implicated query, and queries of similar shape, to perform well without relying on fresh column statistics. The following work is planned: * **Faster rollbacks:** Shorten the time it takes to restore the last known-good release of this service. * **Gradual rollouts:** Prioritize canary and progressive deployments for the service that handles AuthKit and User Management traffic, so a regression reaches only a small share of requests before it is caught. ### Preventive Measures * **Faster detection:** Audit alert coverage for AuthKit and the User Management API to find how we could have alerted on this problem sooner than seven minutes after the deployment. * **Refresh statistics after schema changes:** **A**dd procedural checks to ensure that new columns have populated statistics before including them in hot queries. * **Status-page updates:** Train every on-call responder to publish status-page updates promptly, including before the cause is known. * **Automate customer messaging**: Expedite an initiative to automate status page updates so that responders can focus on fixing the disruption as quickly as possible. ## Conclusion We recognize the impact this incident had on you and your users, especially on sign-in and session refresh, which your applications depend on. We apologize for the disruption and for the delay in our status-page communication. We are committed to preventing future issues and reducing the impact of unexpected problems when they do occur.
Add it as a dependency monitor. The Free plan includes one.
Stay online, all the time, with Pulsetic's uptime prime.
By Designmodo
Designmodo Inc. 169 Madison Ave, #79627, New York, NY 10016, United States
Copyright © 2010-2026. Pulsetic® is a registered trademark.