Title: feat(credentials): saved credentials and credential-only block versions, with keyless AWS/Databricks OIDC by waleedlatif1 · Pull Request #9763 · simstudioai/sim · GitHub
Open Graph Title: feat(credentials): saved credentials and credential-only block versions, with keyless AWS/Databricks OIDC by waleedlatif1 · Pull Request #9763 · simstudioai/sim
X Title: feat(credentials): saved credentials and credential-only block versions, with keyless AWS/Databricks OIDC by waleedlatif1 · Pull Request #9763 · simstudioai/sim
Description: Summary
79 blocks that took secrets typed into the block now have a credential-only version that signs in with a saved, shareable credential instead: all 19 AWS blocks, Databricks, and 59 single-token services (Tavily, Mem0, Zep, Discord, Cloudflare, Intercom, …). A block that already had a _v2 moves to _v3.
AWS and Databricks credentials can be keyless: Sim runs its own OIDC issuer (/oidc/workload), so a credential assumes a customer's AWS role (AssumeRoleWithWebIdentity) or federates into a Databricks service principal (RFC 8693) with no stored secret. Key and secret modes remain (AWS access keys, access keys that assume a role; Databricks PAT, service principal secret).
Each token service gets a credential type with a cheap vendor check on save (tokenCheckValidator), a policy that maps the credential onto the tools' inline params, and a connect form.
Existing workflows don't change
Legacy blocks are identical to staging apart from hideFromToolbar: true and sunset: { status: 'legacy', replacedBy }. Placed blocks keep running and editing as before, with an upgrade badge. Nothing is migrated or rewritten.
Where a legacy params builder validated or trimmed the secret, it was extracted into a function the legacy block still calls with its original checks (blocks/legacy-builders.test.ts pins the same errors and pass-through).
serializer/saved-credentials.test.ts checks every legacy block still serializes and requires its inline secret, and every successor serializes per operation with only a credential.
Without an authorized credential, AWS operations receive the identical request; S3 get_object inline signatures are byte-identical to staging (golden test).
Without WORKLOAD_IDENTITY_SIGNING_KEY (or with a malformed one), the issuer returns 404 and the dialogs don't offer keyless.
How successors are built
A successor spreads its legacy block; withSavedCredential swaps the secret fields for a credential picker in the same place (inheriting the secret's condition and required), points dependent fields and selectors at the credential, and leaves trigger fields alone. Its replaced fields come from the same SAVED_CREDENTIAL_OAUTH table the tools use.
Tools declare oauth.credentialSuppliedParams (and credentialParams for token credentials). The executor overwrites mapped params only after authorizing the credential and fails closed; serializer validation, agent tool-input fields, and v2 execute skip credential-supplied params by the one shared rule.
check-block-registry enforces the contract for every successor: provider and kind match the picker, every supplied param is filled, and every param that steers the request host is filled by the credential (probed against each tool's real URL builder), so a shared credential can't be sent to a host the caller picks.
The docs generator resolves multi-level spreads and same-file params builders; other blocks' docs are unchanged.
Security
Keyless subjects are per credential and HMAC-signed for the preparing user and workspace. Saving a keyless AWS role is refused unless the role denies a random subject, so a trust policy that skips sub can't be assumed from another workspace.
The credential reaches AWS operations through trusted operation context, never tool input, and is re-bound to the run's workspace. Tokens last 5 minutes, carry a per-relying-party audience, and never reach outputs or the model.
Validators refuse redirects and cap response bodies; a 403 counts as a scoped-but-valid key only where the vendor uses it that way, and never when the body names a bad key.
Deploy notes
Set WORKLOAD_IDENTITY_SIGNING_KEY (RSA PKCS#8 PEM) per environment, including Trigger workers. Rotate by moving the old key to WORKLOAD_IDENTITY_PREVIOUS_KEY.
The issuer defaults to
Open Graph Description: Summary 79 blocks that took secrets typed into the block now have a credential-only version that signs in with a saved, shareable credential instead: all 19 AWS blocks, Databricks, and 59 single-t...
X Description: Summary 79 blocks that took secrets typed into the block now have a credential-only version that signs in with a saved, shareable credential instead: all 19 AWS blocks, Databricks, and 59 single-t...
Opengraph URL: https://github.com/simstudioai/sim/pull/9763
X: @github
Domain: github.com
| react-profiling | 0 |
| react-import-map | react,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-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:4dc82c9b-776f-8b57-ef5b-fe034a3bfa36 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | B19E:14C9D4:6F872F:9CF8E6:6AFB67C6 |
| html-safe-nonce | 1ff824f65d4b8c08b6a95ace5f9165a3d0facc97bce39516a29b960223d18048 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMTlFOjE0QzlENDo2Rjg3MkY6OUNGOEU2OjZBRkI2N0M2IiwidmlzaXRvcl9pZCI6IjIzMDkyMjQ2MTA1NTkzODc1OTAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 9ef98b70a5aefc83c863909142f9768c173e20b48025886eb0dd6dd125e30b4f |
| hovercard-subject-tag | pull_request:5197508911 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/simstudioai/sim/pull/9763/files |
| twitter:image | https://avatars.githubusercontent.com/u/40672544?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/40672544?s=400&v=4 |
| og:image:alt | Summary 79 blocks that took secrets typed into the block now have a credential-only version that signs in with a saved, shareable credential instead: all 19 AWS blocks, Databricks, and 59 single-t... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | ea33d13c96d0ff66bd8fa906b193d2213536b78cb06b0c50a4632c58b1418f94 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/simstudioai/sim git https://github.com/simstudioai/sim.git |
| octolytics-dimension-user_id | 199344406 |
| octolytics-dimension-user_login | simstudioai |
| octolytics-dimension-repository_id | 912559512 |
| octolytics-dimension-repository_nwo | simstudioai/sim |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 912559512 |
| octolytics-dimension-repository_network_root_nwo | simstudioai/sim |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 59ef97164c52cf59bd10558ddec9c4f482763988 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width