René's URL Explorer Experiment


Title: feat(auth): enforce domain and account bans on sign-in and workflow executions by TheodoreSpeaks · Pull Request #4948 · simstudioai/sim · GitHub

Open Graph Title: feat(auth): enforce domain and account bans on sign-in and workflow executions by TheodoreSpeaks · Pull Request #4948 · simstudioai/sim

X Title: feat(auth): enforce domain and account bans on sign-in and workflow executions by TheodoreSpeaks · Pull Request #4948 · simstudioai/sim

Description: Summary domains in the appconfig blockedSignupDomains list now block existing accounts too, not just signups: sign-in is rejected across all providers (email/password, OAuth, SSO via a session.create.before gate) and every workflow execution is blocked new blockedEmails list in the same appconfig profile (env fallback BLOCKED_EMAILS) bans specific email addresses with identical enforcement: signup, sign-in, executions, inbox new lib/auth/ban.ts helper resolves effective ban status (active DB ban honoring banExpires, or blocked email/domain) in one query preprocessExecution gains a Step 3.5 ban gate covering all execution entry points (manual, API, webhooks, schedules, deployed chats, resume/HITL, table columns, async jobs); checks the billing actor, the workflow owner, and the caller-provided user, fails closed on lookup errors Mothership inbox tasks from blocked senders or for banned users are marked failed without running (and without emailing the suspended account) moved isEmailInDenylist to access-control.ts so the ban helper doesn't pull the better-auth init into background workers drive-by: fixed a pre-existing biome error in use-inline-rename.ts that was failing lint:check Note: every domain already in the prod blocked-domains list starts hard-blocking its existing users on deploy. Already-signed-in users keep UI access for up to ~24h (session cookie cache) but executions/API keys/billing are cut immediately. Type of Change New feature Testing New unit tests for the ban helpers, access-control parsing, and the preprocessing gate (403, fail-closed 500, candidate-id dedup); 175 tests passing across touched dirs. bun run lint:check, tsc --noEmit, and check:api-validation:strict all green. Checklist Code follows project style guidelines Self-reviewed my changes Tests added/updated and passing No new warnings introduced I confirm that I have read and agree to the terms outlined in the Contributor License Agreement (CLA)

Open Graph Description: Summary domains in the appconfig blockedSignupDomains list now block existing accounts too, not just signups: sign-in is rejected across all providers (email/password, OAuth, SSO via a session.cre...

X Description: Summary domains in the appconfig blockedSignupDomains list now block existing accounts too, not just signups: sign-in is rejected across all providers (email/password, OAuth, SSO via a session.cre...

Opengraph URL: https://github.com/simstudioai/sim/pull/4948

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:ebddf308-2271-d937-1cb8-e309422a520b
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idE292:14C9D4:22CCEF:30D23D:6AFB5171
html-safe-nonce2b9f9b019760b1ada07d5859ca2871cbac063400cdb2c3571ea691807c881aeb
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMjkyOjE0QzlENDoyMkNDRUY6MzBEMjNEOjZBRkI1MTcxIiwidmlzaXRvcl9pZCI6IjEyMDk1Njc5Mzc0NDI4Mjg2NTgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac6d7aaed2ef70c4d14455a273012d3feac8421139aae88d01e6dc28b64df98730
hovercard-subject-tagpull_request:3842271946
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/simstudioai/sim/pull/4948/files
twitter:imagehttps://avatars.githubusercontent.com/u/19564703?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/19564703?s=400&v=4
og:image:altSummary domains in the appconfig blockedSignupDomains list now block existing accounts too, not just signups: sign-in is rejected across all providers (email/password, OAuth, SSO via a session.cre...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None7122bb414b542dba14d71a3f0b9f6fd2abce715b9f5912d082800563e6c806d1
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/simstudioai/sim git https://github.com/simstudioai/sim.git
octolytics-dimension-user_id199344406
octolytics-dimension-user_loginsimstudioai
octolytics-dimension-repository_id912559512
octolytics-dimension-repository_nwosimstudioai/sim
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id912559512
octolytics-dimension-repository_network_root_nwosimstudioai/sim
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
releasecbf66c024bb6d10e6955baa7413c54cf13a201bb
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/simstudioai/sim/pull/4948/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsimstudioai%2Fsim%2Fpull%2F4948%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%2Fsimstudioai%2Fsim%2Fpull%2F4948%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=simstudioai%2Fsim
Reloadhttps://github.com/simstudioai/sim/pull/4948/files
Reloadhttps://github.com/simstudioai/sim/pull/4948/files
Reloadhttps://github.com/simstudioai/sim/pull/4948/files
simstudioaihttps://github.com/simstudioai
simhttps://github.com/simstudioai/sim
Codehttps://github.com/simstudioai/sim
Issues129 (129)https://github.com/simstudioai/sim/issues
Pull requests197 (197)https://github.com/simstudioai/sim/pulls
Actionshttps://github.com/simstudioai/sim/actions
Projectshttps://github.com/simstudioai/sim/projects
Security and qualityhttps://github.com/simstudioai/sim/security
Insightshttps://github.com/simstudioai/sim/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fsimstudioai%2Fsim%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fsimstudioai%2Fsim%2Fissues%2Fnew%2Fchoose
TheodoreSpeakshttps://github.com/TheodoreSpeaks
staginghttps://github.com/simstudioai/sim/tree/staging
feat/ban-blocks-accounthttps://github.com/simstudioai/sim/tree/feat/ban-blocks-account
Conversation 21 https://github.com/simstudioai/sim/pull/4948
Commits 7 https://github.com/simstudioai/sim/pull/4948/commits
Checks 14 https://github.com/simstudioai/sim/pull/4948/checks
Files changed https://github.com/simstudioai/sim/pull/4948/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/4948/files
feat(auth): enforce domain and account bans on sign-in and workflow executions https://github.com/simstudioai/sim/pull/4948/files#top
Show all changes 7 commits https://github.com/simstudioai/sim/pull/4948/files
21d7927 feat(auth): enforce domain and account bans on sign-in and workflow e… TheodoreSpeaks Jun 10, 2026 https://github.com/simstudioai/sim/pull/4948/commits/21d7927c41eab6df3fc69516b5916f9f520b21de
3188ee9 fix(mothership): fail inbox ban checks closed without emailing, gate … TheodoreSpeaks Jun 10, 2026 https://github.com/simstudioai/sim/pull/4948/commits/3188ee913b8979802bdaf935e58e00c9bbb51372
590653e fix(mothership): also block inbox senders whose own account is banned TheodoreSpeaks Jun 10, 2026 https://github.com/simstudioai/sim/pull/4948/commits/590653e2682dc1e77f4eaef11b31969c00f866e9
b41c0fe fix(execution): always ban-check the workflow owner so schedules are … TheodoreSpeaks Jun 10, 2026 https://github.com/simstudioai/sim/pull/4948/commits/b41c0fecaa87c141f228e18be930c99940a30358
56d974f feat(auth): support banning specific emails via appconfig blockedEmai… TheodoreSpeaks Jun 11, 2026 https://github.com/simstudioai/sim/pull/4948/commits/56d974f97d90c54fe62d1b2bb1a71bb19023a1ff
5e5c03e Merge remote-tracking branch 'origin/staging' into feat/ban-blocks-ac… TheodoreSpeaks Jun 11, 2026 https://github.com/simstudioai/sim/pull/4948/commits/5e5c03e84d3cdcffd1394e93de84e6a0d66dc6cf
f460845 fix(mothership): ban-check the workspace billed account on inbox tasks TheodoreSpeaks Jun 11, 2026 https://github.com/simstudioai/sim/pull/4948/commits/f460845cd13fd5ed4198b96e8ca365b76fa0c3f4
Clear filters https://github.com/simstudioai/sim/pull/4948/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/4948/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/4948/files
access-control.test.ts https://github.com/simstudioai/sim/pull/4948/files#diff-cb22a559874f3851565d9f6a16e50a06989c5b2ad60e47f68d3fee68201a1bb9
access-control.ts https://github.com/simstudioai/sim/pull/4948/files#diff-a77e668edd169029a52aed1bf512bb928900b6e380bff3d0efa7bf213c2cff7d
auth.test.ts https://github.com/simstudioai/sim/pull/4948/files#diff-fc3bf0d6e69567563c49537599dd5f783ecf509b50748a6eb1d7feb69132e89f
auth.ts https://github.com/simstudioai/sim/pull/4948/files#diff-1196450729bfda994f3823921eacd28e3200408dbb562d8481108db9abe4a0e2
ban.test.ts https://github.com/simstudioai/sim/pull/4948/files#diff-07057e398327db4a656fd97c043a35aa6a2004fca0ed550888631a95f7f75247
ban.ts https://github.com/simstudioai/sim/pull/4948/files#diff-ebee162eceecd93aa331b3d6d81f389e6d6650d59480911b2e341f177b6f2153
env.ts https://github.com/simstudioai/sim/pull/4948/files#diff-7db3fc610ff89cf819c4eb69b43ec37ae18530e1861f6c322faeb62f8f48f298
preprocessing.test.ts https://github.com/simstudioai/sim/pull/4948/files#diff-bf810ff832cf89c1bf98cfe2ecb746f021b88001dc8a0bd0732de89cb289089a
preprocessing.ts https://github.com/simstudioai/sim/pull/4948/files#diff-302a95657ffed9f4b7bf818f94d31f82065f79bda02a09a46da02a6a3411aa21
executor.ts https://github.com/simstudioai/sim/pull/4948/files#diff-c33f60778aa0c14a73019c4f39d873ee087fec05114374d21a5914e5376ac91b
apps/sim/lib/auth/access-control.test.tshttps://github.com/simstudioai/sim/pull/4948/files#diff-cb22a559874f3851565d9f6a16e50a06989c5b2ad60e47f68d3fee68201a1bb9
View file https://github.com/simstudioai/sim/blob/f460845cd13fd5ed4198b96e8ca365b76fa0c3f4/apps/sim/lib/auth/access-control.test.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/4948/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/4948/files#diff-cb22a559874f3851565d9f6a16e50a06989c5b2ad60e47f68d3fee68201a1bb9
https://github.com/simstudioai/sim/pull/4948/files#diff-cb22a559874f3851565d9f6a16e50a06989c5b2ad60e47f68d3fee68201a1bb9
https://github.com/simstudioai/sim/pull/4948/files#diff-cb22a559874f3851565d9f6a16e50a06989c5b2ad60e47f68d3fee68201a1bb9
https://github.com/simstudioai/sim/pull/4948/files#diff-cb22a559874f3851565d9f6a16e50a06989c5b2ad60e47f68d3fee68201a1bb9
https://github.com/simstudioai/sim/pull/4948/files#diff-cb22a559874f3851565d9f6a16e50a06989c5b2ad60e47f68d3fee68201a1bb9
https://github.com/simstudioai/sim/pull/4948/files#diff-cb22a559874f3851565d9f6a16e50a06989c5b2ad60e47f68d3fee68201a1bb9
apps/sim/lib/auth/access-control.tshttps://github.com/simstudioai/sim/pull/4948/files#diff-a77e668edd169029a52aed1bf512bb928900b6e380bff3d0efa7bf213c2cff7d
View file https://github.com/simstudioai/sim/blob/f460845cd13fd5ed4198b96e8ca365b76fa0c3f4/apps/sim/lib/auth/access-control.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/4948/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/4948/files#diff-a77e668edd169029a52aed1bf512bb928900b6e380bff3d0efa7bf213c2cff7d
https://github.com/simstudioai/sim/pull/4948/files#diff-a77e668edd169029a52aed1bf512bb928900b6e380bff3d0efa7bf213c2cff7d
https://github.com/simstudioai/sim/pull/4948/files#diff-a77e668edd169029a52aed1bf512bb928900b6e380bff3d0efa7bf213c2cff7d
https://github.com/simstudioai/sim/pull/4948/files#diff-a77e668edd169029a52aed1bf512bb928900b6e380bff3d0efa7bf213c2cff7d
apps/sim/lib/auth/auth.test.tshttps://github.com/simstudioai/sim/pull/4948/files#diff-fc3bf0d6e69567563c49537599dd5f783ecf509b50748a6eb1d7feb69132e89f
View file https://github.com/simstudioai/sim/blob/9efb7b45f445625999895e9c9cd29dd710c4203e/apps/sim/lib/auth/auth.test.ts
Open in desktop https://desktop.github.com
Please reload this pagehttps://github.com/simstudioai/sim/pull/4948/files
apps/sim/lib/auth/auth.tshttps://github.com/simstudioai/sim/pull/4948/files#diff-1196450729bfda994f3823921eacd28e3200408dbb562d8481108db9abe4a0e2
View file https://github.com/simstudioai/sim/blob/f460845cd13fd5ed4198b96e8ca365b76fa0c3f4/apps/sim/lib/auth/auth.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/4948/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/4948/files#diff-1196450729bfda994f3823921eacd28e3200408dbb562d8481108db9abe4a0e2
https://github.com/simstudioai/sim/pull/4948/files#diff-1196450729bfda994f3823921eacd28e3200408dbb562d8481108db9abe4a0e2
https://github.com/simstudioai/sim/pull/4948/files#diff-1196450729bfda994f3823921eacd28e3200408dbb562d8481108db9abe4a0e2
https://github.com/simstudioai/sim/pull/4948/files#diff-1196450729bfda994f3823921eacd28e3200408dbb562d8481108db9abe4a0e2
https://github.com/simstudioai/sim/pull/4948/files#diff-1196450729bfda994f3823921eacd28e3200408dbb562d8481108db9abe4a0e2
https://github.com/simstudioai/sim/pull/4948/files#diff-1196450729bfda994f3823921eacd28e3200408dbb562d8481108db9abe4a0e2
https://github.com/simstudioai/sim/pull/4948/files#diff-1196450729bfda994f3823921eacd28e3200408dbb562d8481108db9abe4a0e2
https://github.com/simstudioai/sim/pull/4948/files#diff-1196450729bfda994f3823921eacd28e3200408dbb562d8481108db9abe4a0e2
https://github.com/simstudioai/sim/pull/4948/files#diff-1196450729bfda994f3823921eacd28e3200408dbb562d8481108db9abe4a0e2
https://github.com/simstudioai/sim/pull/4948/files#diff-1196450729bfda994f3823921eacd28e3200408dbb562d8481108db9abe4a0e2
Please reload this pagehttps://github.com/simstudioai/sim/pull/4948/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/4948/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.