René's URL Explorer Experiment


Title: feat(webapp): gate SSO on an entitlement instead of the Enterprise plan by matt-aitken · Pull Request #4393 · triggerdotdev/trigger.dev · GitHub

Open Graph Title: feat(webapp): gate SSO on an entitlement instead of the Enterprise plan by matt-aitken · Pull Request #4393 · triggerdotdev/trigger.dev

X Title: feat(webapp): gate SSO on an entitlement instead of the Enterprise plan by matt-aitken · Pull Request #4393 · triggerdotdev/trigger.dev

Description: The SSO & Directory Sync settings page decided access by comparing the organization's plan code against the literal string "enterprise". The webapp now reads a hasSso entitlement from plan limits. Changes settings.sso route — planAllowsSso reads limits.hasSso rather than the plan code; the loader and the action gate on a shared getSsoEntitlement helper. platform.v3.server — new getSsoEntitlement(orgId) returning entitled | not_entitled | unknown, behind a new SWR cache namespace (60s fresh / 120s stale, memory + Redis). This replaces an uncached billing round-trip that previously ran on every settings load, so the page gets cheaper than it was. directorySyncEffects — the entitlement is now checked before applying membership effects, per organization and memoised across a batch. @trigger.dev/platform 1.2.0 → 1.3.0 — required, see below. Behaviour worth reviewing Revocation now stops SCIM. Previously the plan check existed only on the settings page, so an org that lost access kept receiving directory-sync pushes indefinitely; only the config UI froze. Provision and deprovision are gated, so a revoked entitlement can't remove members either. An unreadable entitlement throws instead of skipping. Effects are idempotent and the worker retries, so retrying is lossless where dropping would silently lose a directory change. It's raised at warn level so a transient billing blip doesn't page anyone. The login path is deliberately untouched. A hard entitlement check there turns a billing outage into a login outage. Consequence: an org that loses the entitlement keeps its existing SSO logins working until the connection is removed. Gating sign-in is a separate decision. Self-hosted is unaffected. With no billing service configured the helper returns entitled, leaving plugin presence and the kill switch as the only gates — a self-hoster who installed the plugin isn't locked out of it. The dependency bump is load-bearing The Limits schema is a plain z.object, so it strips unknown keys. On 1.2.0 the hasSso field was silently discarded during parsing and read as undefined no matter what billing sent — a structural accessor would not have helped. Verified against both builds: 1.2.0 → parsed: true | hasSso survives: false 1.3.0 → parsed: true | hasSso survives: true This PR therefore cannot merge before 1.3.0 is published, which it now is. Testing apps/webapp/test/directorySyncEffects.server.test.ts — 7 tests over the gate: applies when entitled, skips provision and deprovision when not, throws a warn-level retryable error when unreadable, resolves once per org across a batch, and gates per org so one unentitled org doesn't block another. pnpm run typecheck --filter webapp passes (18/18), oxfmt and oxlint clean.

Open Graph Description: The SSO & Directory Sync settings page decided access by comparing the organization's plan code against the literal string "enterprise". The webapp now reads a hasSso entitlement ...

X Description: The SSO & Directory Sync settings page decided access by comparing the organization's plan code against the literal string "enterprise". The webapp now reads a has...

Opengraph URL: https://github.com/triggerdotdev/trigger.dev/pull/4393

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:8625efe5-4417-9413-1e96-096717ed25ce
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id9F92:2C8A8F:745E2C:AC2D1D:6AFAF678
html-safe-nonceb6102a5fd20449bef198f93278ac61c583a70a23f958eb95c071e8099f4b6753
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RjkyOjJDOEE4Rjo3NDVFMkM6QUMyRDFEOjZBRkFGNjc4IiwidmlzaXRvcl9pZCI6IjI3Nzk0ODIwOTU5MjE4NTQwNzIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacbda40de9c9a9daf5bfc1d4ca4304bbbcfd19e0cee7a6e154b7e1db90c5d58880
hovercard-subject-tagpull_request:4141784941
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/triggerdotdev/trigger.dev/pull/4393/files
twitter:imagehttps://avatars.githubusercontent.com/u/10635986?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/10635986?s=400&v=4
og:image:altThe SSO & Directory Sync settings page decided access by comparing the organization's plan code against the literal string "enterprise". The webapp now reads a hasSso entitlement ...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None0178036d8230524a18422872393ab7e708443ae4c2047f758560a2db870c1913
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/triggerdotdev/trigger.dev git https://github.com/triggerdotdev/trigger.dev.git
octolytics-dimension-user_id95297378
octolytics-dimension-user_logintriggerdotdev
octolytics-dimension-repository_id572570113
octolytics-dimension-repository_nwotriggerdotdev/trigger.dev
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id572570113
octolytics-dimension-repository_network_root_nwotriggerdotdev/trigger.dev
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasea85e96a83bed7871993e6b1ffda24105928eee17
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/triggerdotdev/trigger.dev/pull/4393/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Ftriggerdotdev%2Ftrigger.dev%2Fpull%2F4393%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Ftriggerdotdev%2Ftrigger.dev%2Fpull%2F4393%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=triggerdotdev%2Ftrigger.dev
Reloadhttps://github.com/triggerdotdev/trigger.dev/pull/4393/files
Reloadhttps://github.com/triggerdotdev/trigger.dev/pull/4393/files
Reloadhttps://github.com/triggerdotdev/trigger.dev/pull/4393/files
triggerdotdevhttps://github.com/triggerdotdev
trigger.devhttps://github.com/triggerdotdev/trigger.dev
Codehttps://github.com/triggerdotdev/trigger.dev
Issues203 (203)https://github.com/triggerdotdev/trigger.dev/issues
Pull requests67 (67)https://github.com/triggerdotdev/trigger.dev/pulls
Discussionshttps://github.com/triggerdotdev/trigger.dev/discussions
Actionshttps://github.com/triggerdotdev/trigger.dev/actions
Projectshttps://github.com/triggerdotdev/trigger.dev/projects
Security and quality39 (39)https://github.com/triggerdotdev/trigger.dev/security
Insightshttps://github.com/triggerdotdev/trigger.dev/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Ftriggerdotdev%2Ftrigger.dev%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Ftriggerdotdev%2Ftrigger.dev%2Fissues%2Fnew%2Fchoose
matt-aitkenhttps://github.com/matt-aitken
mainhttps://github.com/triggerdotdev/trigger.dev/tree/main
feat/sso-entitlement-gatehttps://github.com/triggerdotdev/trigger.dev/tree/feat/sso-entitlement-gate
Conversation 18 https://github.com/triggerdotdev/trigger.dev/pull/4393
Commits 5 https://github.com/triggerdotdev/trigger.dev/pull/4393/commits
Checks 53 https://github.com/triggerdotdev/trigger.dev/pull/4393/checks
Files changed https://github.com/triggerdotdev/trigger.dev/pull/4393/files
Please reload this pagehttps://github.com/triggerdotdev/trigger.dev/pull/4393/files
feat(webapp): gate SSO on an entitlement instead of the Enterprise plan https://github.com/triggerdotdev/trigger.dev/pull/4393/files#top
Show all changes 5 commits https://github.com/triggerdotdev/trigger.dev/pull/4393/files
d6f9224 feat(webapp): gate SSO on the hasSso entitlement instead of the Enter… matt-aitken Jul 25, 2026 https://github.com/triggerdotdev/trigger.dev/pull/4393/commits/d6f922407ffc447f90ceed0794abaa59524b3500
a4a15d9 test(webapp): cover the SSO entitlement gate on directory sync matt-aitken Jul 27, 2026 https://github.com/triggerdotdev/trigger.dev/pull/4393/commits/a4a15d94d2b65f33dbd75e15552ed6748f87b43d
f616908 fix(webapp): drive the SSO upsell from the loader's entitlement decision matt-aitken Jul 27, 2026 https://github.com/triggerdotdev/trigger.dev/pull/4393/commits/f616908ab644ea26ded15b3c609ff3d0e7a58884
6818be9 docs(webapp): clarify the SSO release note matt-aitken Jul 27, 2026 https://github.com/triggerdotdev/trigger.dev/pull/4393/commits/6818be9529b7b1f3611a2079d24d20fc1f67b1fd
5bb49da fix(webapp): bust the SSO entitlement cache on plan changes matt-aitken Jul 27, 2026 https://github.com/triggerdotdev/trigger.dev/pull/4393/commits/5bb49da44fa78872b112e6cb3fb8363987301120
Clear filters https://github.com/triggerdotdev/trigger.dev/pull/4393/files
Please reload this pagehttps://github.com/triggerdotdev/trigger.dev/pull/4393/files
Please reload this pagehttps://github.com/triggerdotdev/trigger.dev/pull/4393/files
sso-entitlement.md https://github.com/triggerdotdev/trigger.dev/pull/4393/files#diff-70f9d55b528c7df4f66acdab61249c79a4f29a2dc9419edb198afbd48e0a898e
route.tsx https://github.com/triggerdotdev/trigger.dev/pull/4393/files#diff-e2899a2ad140b22feca87d6cea97c0c38c2138719c85c03c55996a2938c62f05
directorySyncEffects.server.ts https://github.com/triggerdotdev/trigger.dev/pull/4393/files#diff-f7d8c0e28089f6c86ca4887bec57cda44883005a4de1be79d04d60f96eed9898
platform.v3.server.ts https://github.com/triggerdotdev/trigger.dev/pull/4393/files#diff-698844281217fa383f3b6befd6a7986d43554f8d4d5eca67b3a585a1c0d65a26
package.json https://github.com/triggerdotdev/trigger.dev/pull/4393/files#diff-7f07c1a8c7d8bf8a62c48e4913ae22619918c9d72fc3b12aa75aa5c03217612b
directorySyncEffects.server.test.ts https://github.com/triggerdotdev/trigger.dev/pull/4393/files#diff-763b1ab5019cbc61a2a82b4a772364770e87322d1406b0d9afab927c6f9d342d
pnpm-lock.yaml https://github.com/triggerdotdev/trigger.dev/pull/4393/files#diff-32824c984905bb02bc7ffcef96a77addd1f1602cff71a11fbbfdd7f53ee026bb
.server-changes/sso-entitlement.mdhttps://github.com/triggerdotdev/trigger.dev/pull/4393/files#diff-70f9d55b528c7df4f66acdab61249c79a4f29a2dc9419edb198afbd48e0a898e
View file https://github.com/triggerdotdev/trigger.dev/blob/5bb49da44fa78872b112e6cb3fb8363987301120/.server-changes/sso-entitlement.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/triggerdotdev/trigger.dev/pull/4393/{{ revealButtonHref }}
apps/webapp/app/routes/_app.orgs.$organizationSlug.settings.sso/route.tsxhttps://github.com/triggerdotdev/trigger.dev/pull/4393/files#diff-e2899a2ad140b22feca87d6cea97c0c38c2138719c85c03c55996a2938c62f05
View file https://github.com/triggerdotdev/trigger.dev/blob/5bb49da44fa78872b112e6cb3fb8363987301120/apps/webapp/app/routes/_app.orgs.%24organizationSlug.settings.sso/route.tsx
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/triggerdotdev/trigger.dev/pull/4393/{{ revealButtonHref }}
https://github.com/triggerdotdev/trigger.dev/pull/4393/files#diff-e2899a2ad140b22feca87d6cea97c0c38c2138719c85c03c55996a2938c62f05
https://github.com/triggerdotdev/trigger.dev/pull/4393/files#diff-e2899a2ad140b22feca87d6cea97c0c38c2138719c85c03c55996a2938c62f05
https://github.com/triggerdotdev/trigger.dev/pull/4393/files#diff-e2899a2ad140b22feca87d6cea97c0c38c2138719c85c03c55996a2938c62f05
https://github.com/triggerdotdev/trigger.dev/pull/4393/files#diff-e2899a2ad140b22feca87d6cea97c0c38c2138719c85c03c55996a2938c62f05
Please reload this pagehttps://github.com/triggerdotdev/trigger.dev/pull/4393/files
https://github.com/triggerdotdev/trigger.dev/pull/4393/files#diff-e2899a2ad140b22feca87d6cea97c0c38c2138719c85c03c55996a2938c62f05
https://github.com/triggerdotdev/trigger.dev/pull/4393/files#diff-e2899a2ad140b22feca87d6cea97c0c38c2138719c85c03c55996a2938c62f05
https://github.com/triggerdotdev/trigger.dev/pull/4393/files#diff-e2899a2ad140b22feca87d6cea97c0c38c2138719c85c03c55996a2938c62f05
https://github.com/triggerdotdev/trigger.dev/pull/4393/files#diff-e2899a2ad140b22feca87d6cea97c0c38c2138719c85c03c55996a2938c62f05
https://github.com/triggerdotdev/trigger.dev/pull/4393/files#diff-e2899a2ad140b22feca87d6cea97c0c38c2138719c85c03c55996a2938c62f05
apps/webapp/app/services/directorySyncEffects.server.tshttps://github.com/triggerdotdev/trigger.dev/pull/4393/files#diff-f7d8c0e28089f6c86ca4887bec57cda44883005a4de1be79d04d60f96eed9898
View file https://github.com/triggerdotdev/trigger.dev/blob/5bb49da44fa78872b112e6cb3fb8363987301120/apps/webapp/app/services/directorySyncEffects.server.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/triggerdotdev/trigger.dev/pull/4393/{{ revealButtonHref }}
https://github.com/triggerdotdev/trigger.dev/pull/4393/files#diff-f7d8c0e28089f6c86ca4887bec57cda44883005a4de1be79d04d60f96eed9898
https://github.com/triggerdotdev/trigger.dev/pull/4393/files#diff-f7d8c0e28089f6c86ca4887bec57cda44883005a4de1be79d04d60f96eed9898
https://github.com/triggerdotdev/trigger.dev/pull/4393/files#diff-f7d8c0e28089f6c86ca4887bec57cda44883005a4de1be79d04d60f96eed9898
apps/webapp/app/services/platform.v3.server.tshttps://github.com/triggerdotdev/trigger.dev/pull/4393/files#diff-698844281217fa383f3b6befd6a7986d43554f8d4d5eca67b3a585a1c0d65a26
View file https://github.com/triggerdotdev/trigger.dev/blob/5bb49da44fa78872b112e6cb3fb8363987301120/apps/webapp/app/services/platform.v3.server.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/triggerdotdev/trigger.dev/pull/4393/{{ revealButtonHref }}
https://github.com/triggerdotdev/trigger.dev/pull/4393/files#diff-698844281217fa383f3b6befd6a7986d43554f8d4d5eca67b3a585a1c0d65a26
Please reload this pagehttps://github.com/triggerdotdev/trigger.dev/pull/4393/files
https://github.com/triggerdotdev/trigger.dev/pull/4393/files#diff-698844281217fa383f3b6befd6a7986d43554f8d4d5eca67b3a585a1c0d65a26
Please reload this pagehttps://github.com/triggerdotdev/trigger.dev/pull/4393/files
https://github.com/triggerdotdev/trigger.dev/pull/4393/files#diff-698844281217fa383f3b6befd6a7986d43554f8d4d5eca67b3a585a1c0d65a26
https://github.com/triggerdotdev/trigger.dev/pull/4393/files#diff-698844281217fa383f3b6befd6a7986d43554f8d4d5eca67b3a585a1c0d65a26
https://github.com/triggerdotdev/trigger.dev/pull/4393/files#diff-698844281217fa383f3b6befd6a7986d43554f8d4d5eca67b3a585a1c0d65a26
https://github.com/triggerdotdev/trigger.dev/pull/4393/files#diff-698844281217fa383f3b6befd6a7986d43554f8d4d5eca67b3a585a1c0d65a26
https://github.com/triggerdotdev/trigger.dev/pull/4393/files#diff-698844281217fa383f3b6befd6a7986d43554f8d4d5eca67b3a585a1c0d65a26
https://github.com/triggerdotdev/trigger.dev/pull/4393/files#diff-698844281217fa383f3b6befd6a7986d43554f8d4d5eca67b3a585a1c0d65a26
apps/webapp/package.jsonhttps://github.com/triggerdotdev/trigger.dev/pull/4393/files#diff-7f07c1a8c7d8bf8a62c48e4913ae22619918c9d72fc3b12aa75aa5c03217612b
View file https://github.com/triggerdotdev/trigger.dev/blob/5bb49da44fa78872b112e6cb3fb8363987301120/apps/webapp/package.json
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/triggerdotdev/trigger.dev/pull/4393/{{ revealButtonHref }}
https://github.com/triggerdotdev/trigger.dev/pull/4393/files#diff-7f07c1a8c7d8bf8a62c48e4913ae22619918c9d72fc3b12aa75aa5c03217612b
https://github.com/triggerdotdev/trigger.dev/pull/4393/files#diff-7f07c1a8c7d8bf8a62c48e4913ae22619918c9d72fc3b12aa75aa5c03217612b
apps/webapp/test/directorySyncEffects.server.test.tshttps://github.com/triggerdotdev/trigger.dev/pull/4393/files#diff-763b1ab5019cbc61a2a82b4a772364770e87322d1406b0d9afab927c6f9d342d
View file https://github.com/triggerdotdev/trigger.dev/blob/5bb49da44fa78872b112e6cb3fb8363987301120/apps/webapp/test/directorySyncEffects.server.test.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/triggerdotdev/trigger.dev/pull/4393/{{ revealButtonHref }}
Please reload this pagehttps://github.com/triggerdotdev/trigger.dev/pull/4393/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.