René's URL Explorer Experiment


Title: feat(byok): support multiple keys per provider with round-robin rotation by waleedlatif1 · Pull Request #4963 · simstudioai/sim · GitHub

Open Graph Title: feat(byok): support multiple keys per provider with round-robin rotation by waleedlatif1 · Pull Request #4963 · simstudioai/sim

X Title: feat(byok): support multiple keys per provider with round-robin rotation by waleedlatif1 · Pull Request #4963 · simstudioai/sim

Description: Summary Workspaces can now store multiple BYOK keys per provider (capped at 10); requests round-robin across the pool in creation order Dropped the (workspace_id, provider_id) unique index, added a plain composite lookup index and a nullable name label column — existing rows need no backfill Rotation lives entirely inside getBYOKKey (in-process cursor, decrypt-failure skips to the next key), so all call sites are untouched POST/DELETE on /api/workspaces/[id]/byok-keys take an optional keyId: with it they update/delete that key, without it they keep the old add / delete-all-for-provider semantics BYOK settings UI gains a per-provider Manage modal (key list, optional labels, per-key update/delete, add up to the cap); the mothership tab keeps the single-key mode unchanged Type of Change New feature Testing Added unit tests for rotation (cycle order, per-provider cursors, decrypt fallback) and route semantics (add vs update-by-keyId, cap, delete one/all, authz) — 24 tests passing. Typecheck and check:api-validation pass. 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 Workspaces can now store multiple BYOK keys per provider (capped at 10); requests round-robin across the pool in creation order Dropped the (workspace_id, provider_id) unique index, added ...

X Description: Summary Workspaces can now store multiple BYOK keys per provider (capped at 10); requests round-robin across the pool in creation order Dropped the (workspace_id, provider_id) unique index, added ...

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

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:3299f0bb-e16d-9573-0067-b07ada70c1d7
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id8E74:1D33A1:AEFD60:F08412:6AFB5147
html-safe-noncee11c8b45e92386a77cb608a6d4bbcaccbefa7b0a2eaec4ce713cf1c15616a63b
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RTc0OjFEMzNBMTpBRUZENjA6RjA4NDEyOjZBRkI1MTQ3IiwidmlzaXRvcl9pZCI6IjY5ODUwODAxOTM0NjMwNDY0NzEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac27b864d49887c54809779d7f4cf91e93becbca71152e9eccfb826b81cb0364c8
hovercard-subject-tagpull_request:3844241643
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/4963/files
twitter:imagehttps://avatars.githubusercontent.com/u/40672544?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/40672544?s=400&v=4
og:image:altSummary Workspaces can now store multiple BYOK keys per provider (capped at 10); requests round-robin across the pool in creation order Dropped the (workspace_id, provider_id) unique index, added ...
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/4963/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsimstudioai%2Fsim%2Fpull%2F4963%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%2F4963%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/4963/files
Reloadhttps://github.com/simstudioai/sim/pull/4963/files
Reloadhttps://github.com/simstudioai/sim/pull/4963/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
waleedlatif1https://github.com/waleedlatif1
staginghttps://github.com/simstudioai/sim/tree/staging
feat/byok-multiple-keyshttps://github.com/simstudioai/sim/tree/feat/byok-multiple-keys
Conversation 17 https://github.com/simstudioai/sim/pull/4963
Commits 4 https://github.com/simstudioai/sim/pull/4963/commits
Checks 13 https://github.com/simstudioai/sim/pull/4963/checks
Files changed https://github.com/simstudioai/sim/pull/4963/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/4963/files
feat(byok): support multiple keys per provider with round-robin rotation https://github.com/simstudioai/sim/pull/4963/files#top
Show all changes 4 commits https://github.com/simstudioai/sim/pull/4963/files
0c4bed6 feat(byok): support multiple keys per provider with round-robin rotation waleedlatif1 Jun 11, 2026 https://github.com/simstudioai/sim/pull/4963/commits/0c4bed6b09482a6ecd53c9dabe6a5bf5b8802b85
a27cc9c fix(byok): address review feedback — serialize cap check, defer encry… waleedlatif1 Jun 11, 2026 https://github.com/simstudioai/sim/pull/4963/commits/a27cc9cc4d2d0ee907c56f12c22f50760ee05849
3f6e3e7 fix(byok): drop ON CONFLICT on removed unique index in legacy key mig… waleedlatif1 Jun 11, 2026 https://github.com/simstudioai/sim/pull/4963/commits/3f6e3e75dafa401db491b92fa21c00cf72c9c252
3843234 improvement(byok): guard double-submit, Enter-to-save on key field, c… waleedlatif1 Jun 11, 2026 https://github.com/simstudioai/sim/pull/4963/commits/38432344be212705cb6237440294196f1390d205
Clear filters https://github.com/simstudioai/sim/pull/4963/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/4963/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/4963/files
route.test.ts https://github.com/simstudioai/sim/pull/4963/files#diff-a8bde001aa972b757e689e21f3e060cced5e73ed2b66db9962c0804146bbd952
route.ts https://github.com/simstudioai/sim/pull/4963/files#diff-f9ff81663bde0c910a7661d4aa9335a67253c66b87638aa97b0fef629f431d17
byok-key-manager.tsx https://github.com/simstudioai/sim/pull/4963/files#diff-05d4d1b7db7674c22b1548d3abefe428ae9b9f6e81b21b1618dda384b2db1325
byok-provider-keys-modal.tsx https://github.com/simstudioai/sim/pull/4963/files#diff-254276326496ca0383d8df944174109c4e83899dd9043690f45603f323fa8baf
byok.tsx https://github.com/simstudioai/sim/pull/4963/files#diff-e946fa2c5a88e3daae6dc6cf880006fa3d456088838b1066e005b5f0bf7b90c4
byok-keys.ts https://github.com/simstudioai/sim/pull/4963/files#diff-6f4f7d1ddaab453fe16cf361d0820a2534ddb4b945f9be11c79d779f6f6c08fe
byok.test.ts https://github.com/simstudioai/sim/pull/4963/files#diff-f841c517cb545c304bef290f4a0f46843d8d6f9379ef43d69a8bb04605e4bb3e
byok.ts https://github.com/simstudioai/sim/pull/4963/files#diff-c005b3d5176372adb521b659913d6ef6fed32b3380cfb8b20b33f7e7c7490c69
byok-keys.ts https://github.com/simstudioai/sim/pull/4963/files#diff-854487f923924fdef28627b30572d311684f281f4a6203ab4d5729a2a96343af
0232_byok_multiple_keys.sql https://github.com/simstudioai/sim/pull/4963/files#diff-d6bd177ad3ba57abbf14344f20b370d2d4c019efba33a673d078ac2a83cd88fc
0232_snapshot.json https://github.com/simstudioai/sim/pull/4963/files#diff-4b1fc1f69e202540573624a633a9b0f28aa607b9e1319308c73dd5564ee5168e
_journal.json https://github.com/simstudioai/sim/pull/4963/files#diff-37150cc65ad16ee6fbc5fa318fc096be7730e16d63eaf863e3df5521b7030649
schema.ts https://github.com/simstudioai/sim/pull/4963/files#diff-9a959e2ce3cb4c86957bbae021d06eae364f7b0cb18964f5873bab53220af928
migrate-block-api-keys-to-byok.ts https://github.com/simstudioai/sim/pull/4963/files#diff-c23d5f8e32d6f14f1a4664c07f773007d33ac7def1917a125e133957ce0a5624
apps/sim/app/api/workspaces/[id]/byok-keys/route.test.tshttps://github.com/simstudioai/sim/pull/4963/files#diff-a8bde001aa972b757e689e21f3e060cced5e73ed2b66db9962c0804146bbd952
View file https://github.com/simstudioai/sim/blob/38432344be212705cb6237440294196f1390d205/apps/sim/app/api/workspaces/%5Bid%5D/byok-keys/route.test.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/4963/{{ revealButtonHref }}
Please reload this pagehttps://github.com/simstudioai/sim/pull/4963/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/4963/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.