René's URL Explorer Experiment


Title: feat(database,rbac): add multiple environment API key foundations by carderne · Pull Request #4388 · triggerdotdev/trigger.dev · GitHub

Open Graph Title: feat(database,rbac): add multiple environment API key foundations by carderne · Pull Request #4388 · triggerdotdev/trigger.dev

X Title: feat(database,rbac): add multiple environment API key foundations by carderne · Pull Request #4388 · triggerdotdev/trigger.dev

Description: Summary Adds the storage model and authorization contracts needed for multiple environment API keys. Credentials are represented by hashed values, revocation and expiration state, and persisted effective scopes. The built-in authorization fallback exposes full-access policy preparation, while optional authorization extensions can supply additional presets and task-aware scope generation. This change does not create, display, or authenticate additional keys. Feature notes Keys outlive their creator's org membership. i.e. when a team member is removed, we have onDelete: SetNull so the API key will persist with no Created By. Deployment notes Apply the database migration before deploying code that authenticates or creates additional keys. The new table and contracts are otherwise inert, so this can be deployed and verified without changing existing root-key or public-token behavior. Follow-ups Confirm the migration has completed before deploying additional-key authentication. Confirm the fallback only prepares explicit full-access policies when no authorization extension is installed.

Open Graph Description: Summary Adds the storage model and authorization contracts needed for multiple environment API keys. Credentials are represented by hashed values, revocation and expiration state, and persisted eff...

X Description: Summary Adds the storage model and authorization contracts needed for multiple environment API keys. Credentials are represented by hashed values, revocation and expiration state, and persisted eff...

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

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:5eaa8ead-8b15-51b7-e1e9-c726a8fbc66a
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idB88A:35962D:8103:B615:6AFB08B2
html-safe-nonce642763352512bbb30be363864baf05171ee4982f225eb8bcb4c8f86062aefdf2
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCODhBOjM1OTYyRDo4MTAzOkI2MTU6NkFGQjA4QjIiLCJ2aXNpdG9yX2lkIjoiOTE1NjUwNjUyNzQ5NjYwMzgyNiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac20c65720170efe9179f81df4066fe3f2b311debe0f2bde476a97b8d22259abf9
hovercard-subject-tagpull_request:4141534083
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/4388/files
twitter:imagehttps://avatars.githubusercontent.com/u/19817302?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/19817302?s=400&v=4
og:image:altSummary Adds the storage model and authorization contracts needed for multiple environment API keys. Credentials are represented by hashed values, revocation and expiration state, and persisted eff...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None76fb13cb43f1834708971f45a9cfcab5df3177a7582086613d7cdc6e98c4bfde
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
releaseafc998826cdd963c8f91a96ae5372809ab5e296b
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/triggerdotdev/trigger.dev/pull/4388/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Ftriggerdotdev%2Ftrigger.dev%2Fpull%2F4388%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%2F4388%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/4388/files
Reloadhttps://github.com/triggerdotdev/trigger.dev/pull/4388/files
Reloadhttps://github.com/triggerdotdev/trigger.dev/pull/4388/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
cardernehttps://github.com/carderne
mainhttps://github.com/triggerdotdev/trigger.dev/tree/main
feat/multi-keys-foundationshttps://github.com/triggerdotdev/trigger.dev/tree/feat/multi-keys-foundations
Conversation 7 https://github.com/triggerdotdev/trigger.dev/pull/4388
Commits 6 https://github.com/triggerdotdev/trigger.dev/pull/4388/commits
Checks 51 https://github.com/triggerdotdev/trigger.dev/pull/4388/checks
Files changed https://github.com/triggerdotdev/trigger.dev/pull/4388/files
Please reload this pagehttps://github.com/triggerdotdev/trigger.dev/pull/4388/files
feat(database,rbac): add multiple environment API key foundations https://github.com/triggerdotdev/trigger.dev/pull/4388/files#top
Show all changes 6 commits https://github.com/triggerdotdev/trigger.dev/pull/4388/files
af05aea fix(core,sdk): correct public token expirationTime docs carderne Jul 27, 2026 https://github.com/triggerdotdev/trigger.dev/pull/4388/commits/af05aeab8e795a4f71348c687f1e50c15f8d268b
e15a789 feat(database,rbac): add multiple environment API key foundations carderne Jul 27, 2026 https://github.com/triggerdotdev/trigger.dev/pull/4388/commits/e15a7893fc235b41d6e8dd775d787b3b7884d813
0d0f794 refactor(rbac): make API key policy methods optional on the controller carderne Jul 27, 2026 https://github.com/triggerdotdev/trigger.dev/pull/4388/commits/0d0f794118453de1c42107b7fa3bba4114e967f3
51e1189 fix(webapp): use _sk_ additional API key infix carderne Jul 27, 2026 https://github.com/triggerdotdev/trigger.dev/pull/4388/commits/51e11890198575312f99ba7b41582f8ffdb20425
89167bc add changeset carderne Jul 27, 2026 https://github.com/triggerdotdev/trigger.dev/pull/4388/commits/89167bcad26900ac077ca59a5e4ddd75620a340c
3d5d745 delete core changeset carderne Jul 29, 2026 https://github.com/triggerdotdev/trigger.dev/pull/4388/commits/3d5d7459b2243e67174b72cf738e217b5763564d
Clear filters https://github.com/triggerdotdev/trigger.dev/pull/4388/files
Please reload this pagehttps://github.com/triggerdotdev/trigger.dev/pull/4388/files
Please reload this pagehttps://github.com/triggerdotdev/trigger.dev/pull/4388/files
public-token-expiration-seconds.md https://github.com/triggerdotdev/trigger.dev/pull/4388/files#diff-b0795c435cefc225072c307ad6bb8176230b0dafbab7597cbd3f31c1e7f38a06
apiKeys.test.ts https://github.com/triggerdotdev/trigger.dev/pull/4388/files#diff-f399e3689293e38cf08689a9e6fc03422c8a9b66dc1a63ac5df6fa20c20d7349
apiKeys.ts https://github.com/triggerdotdev/trigger.dev/pull/4388/files#diff-76674b79a63ff38f065f95f16a99c6b6864d9a44f453b581b8b325f174b49281
migration.sql https://github.com/triggerdotdev/trigger.dev/pull/4388/files#diff-230f5592143200ce71b4825337e3fa92e78528bd5a59a5cfb59489454112d837
schema.prisma https://github.com/triggerdotdev/trigger.dev/pull/4388/files#diff-6b8eefc1da429865c9493bbac9d2c4d00d1cfe2f2231f6474b9692f13b88e419
ability.test.ts https://github.com/triggerdotdev/trigger.dev/pull/4388/files#diff-6c660c03d28d4c23d32ee4aeb5f50d3bed12a092096394d4559e8ff2fc775a7f
ability.ts https://github.com/triggerdotdev/trigger.dev/pull/4388/files#diff-d6245dbc9bbdd97f589b20daaee53e407f1549c865babded1c0201282548345a
apiKeyPolicyDefaults.test.ts https://github.com/triggerdotdev/trigger.dev/pull/4388/files#diff-6e793eff3043f4754d02d78b8a0e42b243a01d6b7508f3b6786b424572fbe4b3
fallback.ts https://github.com/triggerdotdev/trigger.dev/pull/4388/files#diff-12041af1e75d07288542adc4af014e6546f84817456dc41516a0eb8b9128ee43
index.ts https://github.com/triggerdotdev/trigger.dev/pull/4388/files#diff-a62b017cb56eaac99ac79f07b450ff3aa0beebc6bcdc38567d81ce3ec542c478
jwt.ts https://github.com/triggerdotdev/trigger.dev/pull/4388/files#diff-49be3ed8d9c6d75e2f49ee4779ceaf5a899624bae36f383081b18b5404d4fddb
index.ts https://github.com/triggerdotdev/trigger.dev/pull/4388/files#diff-640d5deb6139bf2c59b759b99f0c2e9e5cb4d3fbaacff57e6097bae6f653bb35
rbac.ts https://github.com/triggerdotdev/trigger.dev/pull/4388/files#diff-cff56c408c4a87da7b5ffeb381f8670d8853ab09ca3bc20af8cd7e2e71b1b741
.changeset/public-token-expiration-seconds.mdhttps://github.com/triggerdotdev/trigger.dev/pull/4388/files#diff-b0795c435cefc225072c307ad6bb8176230b0dafbab7597cbd3f31c1e7f38a06
View file https://github.com/triggerdotdev/trigger.dev/blob/3d5d7459b2243e67174b72cf738e217b5763564d/.changeset/public-token-expiration-seconds.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/triggerdotdev/trigger.dev/pull/4388/{{ revealButtonHref }}
apps/webapp/app/utils/apiKeys.test.tshttps://github.com/triggerdotdev/trigger.dev/pull/4388/files#diff-f399e3689293e38cf08689a9e6fc03422c8a9b66dc1a63ac5df6fa20c20d7349
View file https://github.com/triggerdotdev/trigger.dev/blob/3d5d7459b2243e67174b72cf738e217b5763564d/apps/webapp/app/utils/apiKeys.test.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/triggerdotdev/trigger.dev/pull/4388/{{ revealButtonHref }}
apps/webapp/app/utils/apiKeys.tshttps://github.com/triggerdotdev/trigger.dev/pull/4388/files#diff-76674b79a63ff38f065f95f16a99c6b6864d9a44f453b581b8b325f174b49281
View file https://github.com/triggerdotdev/trigger.dev/blob/3d5d7459b2243e67174b72cf738e217b5763564d/apps/webapp/app/utils/apiKeys.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/triggerdotdev/trigger.dev/pull/4388/{{ revealButtonHref }}
Please reload this pagehttps://github.com/triggerdotdev/trigger.dev/pull/4388/files
...packages/database/prisma/migrations/20260723112558_add_environment_api_keys/migration.sqlhttps://github.com/triggerdotdev/trigger.dev/pull/4388/files#diff-230f5592143200ce71b4825337e3fa92e78528bd5a59a5cfb59489454112d837
View file https://github.com/triggerdotdev/trigger.dev/blob/3d5d7459b2243e67174b72cf738e217b5763564d/internal-packages/database/prisma/migrations/20260723112558_add_environment_api_keys/migration.sql
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/triggerdotdev/trigger.dev/pull/4388/{{ revealButtonHref }}
internal-packages/database/prisma/schema.prismahttps://github.com/triggerdotdev/trigger.dev/pull/4388/files#diff-6b8eefc1da429865c9493bbac9d2c4d00d1cfe2f2231f6474b9692f13b88e419
View file https://github.com/triggerdotdev/trigger.dev/blob/3d5d7459b2243e67174b72cf738e217b5763564d/internal-packages/database/prisma/schema.prisma
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/triggerdotdev/trigger.dev/pull/4388/{{ revealButtonHref }}
https://github.com/triggerdotdev/trigger.dev/pull/4388/files#diff-6b8eefc1da429865c9493bbac9d2c4d00d1cfe2f2231f6474b9692f13b88e419
https://github.com/triggerdotdev/trigger.dev/pull/4388/files#diff-6b8eefc1da429865c9493bbac9d2c4d00d1cfe2f2231f6474b9692f13b88e419
https://github.com/triggerdotdev/trigger.dev/pull/4388/files#diff-6b8eefc1da429865c9493bbac9d2c4d00d1cfe2f2231f6474b9692f13b88e419
https://github.com/triggerdotdev/trigger.dev/pull/4388/files#diff-6b8eefc1da429865c9493bbac9d2c4d00d1cfe2f2231f6474b9692f13b88e419
https://github.com/triggerdotdev/trigger.dev/pull/4388/files#diff-6b8eefc1da429865c9493bbac9d2c4d00d1cfe2f2231f6474b9692f13b88e419
internal-packages/rbac/src/ability.test.tshttps://github.com/triggerdotdev/trigger.dev/pull/4388/files#diff-6c660c03d28d4c23d32ee4aeb5f50d3bed12a092096394d4559e8ff2fc775a7f
View file https://github.com/triggerdotdev/trigger.dev/blob/3d5d7459b2243e67174b72cf738e217b5763564d/internal-packages/rbac/src/ability.test.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/triggerdotdev/trigger.dev/pull/4388/{{ revealButtonHref }}
https://github.com/triggerdotdev/trigger.dev/pull/4388/files#diff-6c660c03d28d4c23d32ee4aeb5f50d3bed12a092096394d4559e8ff2fc775a7f
https://github.com/triggerdotdev/trigger.dev/pull/4388/files#diff-6c660c03d28d4c23d32ee4aeb5f50d3bed12a092096394d4559e8ff2fc775a7f
https://github.com/triggerdotdev/trigger.dev/pull/4388/files#diff-6c660c03d28d4c23d32ee4aeb5f50d3bed12a092096394d4559e8ff2fc775a7f
https://github.com/triggerdotdev/trigger.dev/pull/4388/files#diff-6c660c03d28d4c23d32ee4aeb5f50d3bed12a092096394d4559e8ff2fc775a7f
internal-packages/rbac/src/ability.tshttps://github.com/triggerdotdev/trigger.dev/pull/4388/files#diff-d6245dbc9bbdd97f589b20daaee53e407f1549c865babded1c0201282548345a
View file https://github.com/triggerdotdev/trigger.dev/blob/3d5d7459b2243e67174b72cf738e217b5763564d/internal-packages/rbac/src/ability.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/triggerdotdev/trigger.dev/pull/4388/{{ revealButtonHref }}
https://github.com/triggerdotdev/trigger.dev/pull/4388/files#diff-d6245dbc9bbdd97f589b20daaee53e407f1549c865babded1c0201282548345a
https://github.com/triggerdotdev/trigger.dev/pull/4388/files#diff-d6245dbc9bbdd97f589b20daaee53e407f1549c865babded1c0201282548345a
internal-packages/rbac/src/apiKeyPolicyDefaults.test.tshttps://github.com/triggerdotdev/trigger.dev/pull/4388/files#diff-6e793eff3043f4754d02d78b8a0e42b243a01d6b7508f3b6786b424572fbe4b3
View file https://github.com/triggerdotdev/trigger.dev/blob/3d5d7459b2243e67174b72cf738e217b5763564d/internal-packages/rbac/src/apiKeyPolicyDefaults.test.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/triggerdotdev/trigger.dev/pull/4388/{{ revealButtonHref }}
internal-packages/rbac/src/fallback.tshttps://github.com/triggerdotdev/trigger.dev/pull/4388/files#diff-12041af1e75d07288542adc4af014e6546f84817456dc41516a0eb8b9128ee43
View file https://github.com/triggerdotdev/trigger.dev/blob/3d5d7459b2243e67174b72cf738e217b5763564d/internal-packages/rbac/src/fallback.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/triggerdotdev/trigger.dev/pull/4388/{{ revealButtonHref }}
https://github.com/triggerdotdev/trigger.dev/pull/4388/files#diff-12041af1e75d07288542adc4af014e6546f84817456dc41516a0eb8b9128ee43
https://github.com/triggerdotdev/trigger.dev/pull/4388/files#diff-12041af1e75d07288542adc4af014e6546f84817456dc41516a0eb8b9128ee43
https://github.com/triggerdotdev/trigger.dev/pull/4388/files#diff-12041af1e75d07288542adc4af014e6546f84817456dc41516a0eb8b9128ee43
https://github.com/triggerdotdev/trigger.dev/pull/4388/files#diff-12041af1e75d07288542adc4af014e6546f84817456dc41516a0eb8b9128ee43
Please reload this pagehttps://github.com/triggerdotdev/trigger.dev/pull/4388/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.