René's URL Explorer Experiment


Title: feat(credentials): keyless Google Workspace domain-wide delegation via IAM signJwt by waleedlatif1 · Pull Request #9933 · simstudioai/sim · GitHub

Open Graph Title: feat(credentials): keyless Google Workspace domain-wide delegation via IAM signJwt by waleedlatif1 · Pull Request #9933 · simstudioai/sim

X Title: feat(credentials): keyless Google Workspace domain-wide delegation via IAM signJwt by waleedlatif1 · Pull Request #9933 · simstudioai/sim

Description: Summary A keyless (Workload Identity Federation) Google service account credential can now use domain-wide delegation for Gmail, Google Drive, Google Docs, Google Sheets and Google Calendar, with no JSON key. The flow is: Sim token → STS → IAM Credentials signJwt (sub = the Workspace user) → jwt-bearer exchange at oauth2.googleapis.com/token. Delegation is an optional, additive delegation: { user, services } in the keyless config. The credential acts only as its stored user. A run that sets a different Impersonated Account is refused before Google is contacted (the comparison ignores case and surrounding spaces). Authorization is by scope, as Google's is. Any scope outside the delegated services' scopes is refused before Google is contacted, so Drive, Docs and Sheets, which share scopes, serve each other. A read-only scope is minted as the authorized scope that covers it: its read-write sibling (drive.readonly → drive, for the Drive picker), or gmail.modify for gmail.readonly (the Gmail label picker and the knowledge base connector). Saving proves the whole chain: one delegated mint per scope set and one cheap read per service as the user. The stray-subject pin probe also checks that signJwt is refused. Token-endpoint refusals get copy for each of Google's documented error codes: Admin-console authorization for unauthorized_client and access_denied, admin policy, a disabled or deleted service account, and neutral copy for anything else. The dialog offers keyless mode for these five services with a service picker and a Workspace user field. It works from every entry point: the block credential selector, the Integrations page and the chat connect card. The first passes a service id (gmail); the other two pass the OAuth provider id (google-email), and both are accepted. It lists the scopes to authorize in the Admin console, and its gcloud commands switch to roles/iam.serviceAccountTokenCreator, because roles/iam.workloadIdentityUser lacks iam.serviceAccounts.signJwt. A reconnect keeps the stored delegation, read through the per-provider reconnect map with no provider branch in the shared use case. Tokens are cached by credential, secret version, delegated user and scopes. The assertion exchange reuses the JSON-key transport (redirect error, bounded read, retry budget). Product update (if relevant) Workspace admins can connect Gmail, Drive, Docs, Sheets and Calendar to one Workspace user without creating a service account key, which Google's DWD best practices recommend. Docs: Google service account → keyless domain-wide delegation. Type of Change Bug fix New feature Breaking change Documentation Other: ___________ Testing Unit tests against a fake Google (STS, IAM, token endpoint, Workspace reads). They cover: the save chain and the per-service reads refused roles and grants, and the pin probe refused subject mismatch and scopes, plus scope-level authorization across Drive, Docs and Sheets read-only scope minting (Drive picker, Gmail label picker) the Impersonated Account trim per-code token-refusal copy retry, cache separation, and tolerance of a later release's services the keyless offer and the services the dialog preselects when it is opened by provider id (google-email, from the Integrations page and the chat card) Revert proof: the new tests fail on the pre-fix source. Neighbouring credential, prepare-reconnect, token-resolution and OAuth suites are green. The OpenAPI, CLI and MCP generators are current, and the boundary, client-boundary, utils and comment-hygiene audits pass. Reviewers: focus on backward compatibility. Credentials without delegation store and resolve exactly as before, BigQuery and Vertex AI are unchanged, and an old worker fails closed on a delegated secret. Also check the scope authorization in resolveGoogleWorkloadIdentityToken / delegatedMintScopes. Not yet run against a live Workspace tenant. A staging proof is needed before announcing. 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 A keyless (Workload Identity Federation) Google service account credential can now use domain-wide delegation for Gmail, Google Drive, Google Docs, Google Sheets and Google Calendar, with ...

X Description: Summary A keyless (Workload Identity Federation) Google service account credential can now use domain-wide delegation for Gmail, Google Drive, Google Docs, Google Sheets and Google Calendar, with ...

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

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:a22056ed-9750-80ab-9104-9528760b0271
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idDD4E:3EFFC5:6D30FE:9B07AF:6AFB47AB
html-safe-nonce2142ce4dd9841c2738764aa9ec0136d7189cfa686ad7e088e709531408af71cd
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERDRFOjNFRkZDNTo2RDMwRkU6OUIwN0FGOjZBRkI0N0FCIiwidmlzaXRvcl9pZCI6IjkwODkyNjI5NTYxNDIzNDgyMDMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac3d35767a9db97448db6f2500dee912d0467af15e20a1f10adc8f431e8d849266
hovercard-subject-tagpull_request:5276889257
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/9933/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 A keyless (Workload Identity Federation) Google service account credential can now use domain-wide delegation for Gmail, Google Drive, Google Docs, Google Sheets and Google Calendar, with ...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Noneacf7616d06cc051644705b379878c9bb13dc5e70ecf4ffd9b34140f8ac01d7e1
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
release26504db649b58525278f77a52b80ba5f10d5f4de
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/simstudioai/sim/pull/9933/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsimstudioai%2Fsim%2Fpull%2F9933%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%2F9933%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/9933/files
Reloadhttps://github.com/simstudioai/sim/pull/9933/files
Reloadhttps://github.com/simstudioai/sim/pull/9933/files
simstudioaihttps://github.com/simstudioai
simhttps://github.com/simstudioai/sim
Codehttps://github.com/simstudioai/sim
Issues129 (129)https://github.com/simstudioai/sim/issues
Pull requests199 (199)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/google-workspace-keyless-dwdhttps://github.com/simstudioai/sim/tree/feat/google-workspace-keyless-dwd
Conversation 14 https://github.com/simstudioai/sim/pull/9933
Commits 12 https://github.com/simstudioai/sim/pull/9933/commits
Checks 83 https://github.com/simstudioai/sim/pull/9933/checks
Files changed https://github.com/simstudioai/sim/pull/9933/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/9933/files
feat(credentials): keyless Google Workspace domain-wide delegation via IAM signJwt https://github.com/simstudioai/sim/pull/9933/files#top
Show all changes 12 commits https://github.com/simstudioai/sim/pull/9933/files
17cf10c feat(credentials): domain-wide delegation for keyless Google credentials waleedlatif1 Nov 12, 2026 https://github.com/simstudioai/sim/pull/9933/commits/17cf10c9490ca40b72fa598be0949dac2283695b
f09f4b3 feat(integrations): offer keyless domain-wide delegation in the Googl… waleedlatif1 Nov 12, 2026 https://github.com/simstudioai/sim/pull/9933/commits/f09f4b30836e0f3e7ada2018f6e53d16b993729f
02c0345 docs(integrations): document keyless Google domain-wide delegation waleedlatif1 Nov 12, 2026 https://github.com/simstudioai/sim/pull/9933/commits/02c03455797b691ad491179c589de1ff344f5a3d
7768b05 fix(credentials): mint delegated keyless tokens only for authorized s… waleedlatif1 Nov 12, 2026 https://github.com/simstudioai/sim/pull/9933/commits/7768b05be8f58aea19fd2053cc3609d5577eaa44
f2d5535 fix(integrations): keep a keyless Google credential's delegation on r… waleedlatif1 Nov 12, 2026 https://github.com/simstudioai/sim/pull/9933/commits/f2d55359753fee708b2ea17d56fbdd4326009f7e
5b69c63 docs(integrations): note keyless delegation scope limits and least-pr… waleedlatif1 Nov 12, 2026 https://github.com/simstudioai/sim/pull/9933/commits/5b69c63c7e20ab14801e7ab911db829cd6c1a7ae
c0aa3a6 fix(credentials): serve the Gmail label picker and name the right fix… waleedlatif1 Nov 12, 2026 https://github.com/simstudioai/sim/pull/9933/commits/c0aa3a653c61775e29012a0a44821caf87631ea9
e3a21d7 refactor(credentials): read reconnect fields through the per-provider… waleedlatif1 Nov 12, 2026 https://github.com/simstudioai/sim/pull/9933/commits/e3a21d72f23c6616e99ad16e666a162d25381489
5e1ace3 docs(integrations): describe scope-level keyless delegation and new r… waleedlatif1 Nov 12, 2026 https://github.com/simstudioai/sim/pull/9933/commits/5e1ace3edf3d22a2b62a101f8ab0aee348a62a8e
e0bd825 fix(integrations): offer Gmail keyless delegation from the Integratio… waleedlatif1 Nov 12, 2026 https://github.com/simstudioai/sim/pull/9933/commits/e0bd825c909ad1ec98a6b4a38c2feb15fb7937cd
7d36003 fix(credentials): mint calendar for the Calendar connector's delegate… waleedlatif1 Nov 12, 2026 https://github.com/simstudioai/sim/pull/9933/commits/7d36003744f5f9e2c06cca33748c3c93cd2ecf36
42f378a docs(integrations): note the Calendar connector's read-only events sc… waleedlatif1 Nov 12, 2026 https://github.com/simstudioai/sim/pull/9933/commits/42f378a98a32570c92d66f286706e036489a686e
Clear filters https://github.com/simstudioai/sim/pull/9933/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/9933/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/9933/files
google-service-account.mdx https://github.com/simstudioai/sim/pull/9933/files#diff-8cbc80902259a8f32b4d1aee71a8c3243aaf00e98167d294e6b4cc048faf5c1e
connect-service-account-modal.tsx https://github.com/simstudioai/sim/pull/9933/files#diff-673f1feeec21be0a8cbb89338feb58cac97495b307d17c2335a1f527df8d1b6a
google-keyless-fields.tsx https://github.com/simstudioai/sim/pull/9933/files#diff-57de838469dc58bb948484bf9df5395d824b5a291a7123d4d5786ca3e20877dc
keyless-connection.tsx https://github.com/simstudioai/sim/pull/9933/files#diff-a0125a77eb522d51614454e051638aa1cbe43250842b44f35f5e89d221b38ca3
credentials.ts https://github.com/simstudioai/sim/pull/9933/files#diff-e20031e06ae36740789df42928e1b5c9ef18f4c8d600c332cedf178914269e52
prepare-workload-identity.test.ts https://github.com/simstudioai/sim/pull/9933/files#diff-f041faea0f4c8fcf38a003336689e7d05ffdcb44887b510c10baad65b227a39a
prepare-workload-identity.ts https://github.com/simstudioai/sim/pull/9933/files#diff-8c66235e92f17563a5c9684c570fa6d9c248cc91b187c29fe4755143f6310a7e
google-workload-identity.server.test.ts https://github.com/simstudioai/sim/pull/9933/files#diff-66b809e0216090980f854c874e0f08d0bf61d2d8dd398be25e1a9f75ea14b05c
google-workload-identity.server.ts https://github.com/simstudioai/sim/pull/9933/files#diff-3d68c41b635133041dcfe20e956a895720f67db9ac7a20722a5356a85d823b08
google-workload-identity.test.ts https://github.com/simstudioai/sim/pull/9933/files#diff-f968146b5f8a580ea307382ff31fe77fddd4619d173c55f94eb4b54580f383ba
google-workload-identity.ts https://github.com/simstudioai/sim/pull/9933/files#diff-16a06d2b2f146f3f83ed025318ff49356c15b13eb665deb1842280efd8564712
service-account-secret.ts https://github.com/simstudioai/sim/pull/9933/files#diff-29c086fc7771ce21199c9cf7ff1d19c9e250189709b49769e3497b6db4018ca5
audiences.ts https://github.com/simstudioai/sim/pull/9933/files#diff-f8deb90b5c5be8cff6a8d7f267fe08ac60e7ed3961b6a0b1fa81d5d55fde5712
credential-service.ts https://github.com/simstudioai/sim/pull/9933/files#diff-effb7c3ce97c223dad84239d969592e6300167d635dab9fdfc4bb30120ec3c47
google-service-account-transport.ts https://github.com/simstudioai/sim/pull/9933/files#diff-b13290168dd55b420bd43f3178bda3d874d7d9f408f839b3ab980bc5497497a5
token-resolution.ts https://github.com/simstudioai/sim/pull/9933/files#diff-eb45a826aabd65f6aaa1eab17273a322d0fc9cc70dd8ff857a02019552df52e4
utils.ts https://github.com/simstudioai/sim/pull/9933/files#diff-e036fbd5b48db2c6adae004365c42cf926d0eafaa92e424cf063f4861ce6efbb
apps/docs/content/docs/integrations/google-service-account.mdxhttps://github.com/simstudioai/sim/pull/9933/files#diff-8cbc80902259a8f32b4d1aee71a8c3243aaf00e98167d294e6b4cc048faf5c1e
View file https://github.com/simstudioai/sim/blob/42f378a98a32570c92d66f286706e036489a686e/apps/docs/content/docs/integrations/google-service-account.mdx
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/9933/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/9933/files#diff-8cbc80902259a8f32b4d1aee71a8c3243aaf00e98167d294e6b4cc048faf5c1e
https://github.com/simstudioai/sim/pull/9933/files#diff-8cbc80902259a8f32b4d1aee71a8c3243aaf00e98167d294e6b4cc048faf5c1e
https://github.com/simstudioai/sim/pull/9933/files#diff-8cbc80902259a8f32b4d1aee71a8c3243aaf00e98167d294e6b4cc048faf5c1e
https://github.com/simstudioai/sim/pull/9933/files#diff-8cbc80902259a8f32b4d1aee71a8c3243aaf00e98167d294e6b4cc048faf5c1e
https://github.com/simstudioai/sim/pull/9933/files#diff-8cbc80902259a8f32b4d1aee71a8c3243aaf00e98167d294e6b4cc048faf5c1e
...]/integrations/components/connect-service-account-modal/connect-service-account-modal.tsxhttps://github.com/simstudioai/sim/pull/9933/files#diff-673f1feeec21be0a8cbb89338feb58cac97495b307d17c2335a1f527df8d1b6a
View file https://github.com/simstudioai/sim/blob/42f378a98a32570c92d66f286706e036489a686e/apps/sim/app/workspace/%5BworkspaceId%5D/integrations/components/connect-service-account-modal/connect-service-account-modal.tsx
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/9933/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/9933/files#diff-673f1feeec21be0a8cbb89338feb58cac97495b307d17c2335a1f527df8d1b6a
https://github.com/simstudioai/sim/pull/9933/files#diff-673f1feeec21be0a8cbb89338feb58cac97495b307d17c2335a1f527df8d1b6a
https://github.com/simstudioai/sim/pull/9933/files#diff-673f1feeec21be0a8cbb89338feb58cac97495b307d17c2335a1f527df8d1b6a
https://github.com/simstudioai/sim/pull/9933/files#diff-673f1feeec21be0a8cbb89338feb58cac97495b307d17c2335a1f527df8d1b6a
https://github.com/simstudioai/sim/pull/9933/files#diff-673f1feeec21be0a8cbb89338feb58cac97495b307d17c2335a1f527df8d1b6a
https://github.com/simstudioai/sim/pull/9933/files#diff-673f1feeec21be0a8cbb89338feb58cac97495b307d17c2335a1f527df8d1b6a
https://github.com/simstudioai/sim/pull/9933/files#diff-673f1feeec21be0a8cbb89338feb58cac97495b307d17c2335a1f527df8d1b6a
https://github.com/simstudioai/sim/pull/9933/files#diff-673f1feeec21be0a8cbb89338feb58cac97495b307d17c2335a1f527df8d1b6a
https://github.com/simstudioai/sim/pull/9933/files#diff-673f1feeec21be0a8cbb89338feb58cac97495b307d17c2335a1f527df8d1b6a
https://github.com/simstudioai/sim/pull/9933/files#diff-673f1feeec21be0a8cbb89338feb58cac97495b307d17c2335a1f527df8d1b6a
https://github.com/simstudioai/sim/pull/9933/files#diff-673f1feeec21be0a8cbb89338feb58cac97495b307d17c2335a1f527df8d1b6a
https://github.com/simstudioai/sim/pull/9933/files#diff-673f1feeec21be0a8cbb89338feb58cac97495b307d17c2335a1f527df8d1b6a
https://github.com/simstudioai/sim/pull/9933/files#diff-673f1feeec21be0a8cbb89338feb58cac97495b307d17c2335a1f527df8d1b6a
https://github.com/simstudioai/sim/pull/9933/files#diff-673f1feeec21be0a8cbb89338feb58cac97495b307d17c2335a1f527df8d1b6a
Please reload this pagehttps://github.com/simstudioai/sim/pull/9933/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/9933/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.