René's URL Explorer Experiment


Title: feat(secrets): show where a secret is referenced, beside its usage log by icecrasher321 · Pull Request #6947 · simstudioai/sim · GitHub

Open Graph Title: feat(secrets): show where a secret is referenced, beside its usage log by icecrasher321 · Pull Request #6947 · simstudioai/sim

X Title: feat(secrets): show where a secret is referenced, beside its usage log by icecrasher321 · Pull Request #6947 · simstudioai/sim

Description: Why See usage answered who has run something with this key. It could not answer the question a rotation actually starts from — where is this wired in — because a secret four blocks depend on but nothing has executed yet has no usage rows at all. The panel read "This secret has not been used yet" for a live key. What The usage view now carries two tabs: Logs — the existing trail, unchanged, and still the default (that is what the header action has always opened). References — the blocks that name the secret as {{KEY}}, grouped under their workflow, then the custom tools and MCP servers whose own bodies carry it. Every row navigates: block rows to the workflow, cascade rows to the resource's settings detail. Reusing the fork detection remapSubBlocks already walks nested tool-input params, resolves canonical basic/advanced pairs, and skips dormant and condition-hidden members — so calling it per block inherits every rule a fork already obeys. Only the aggregation is new: scanWorkflowReferences collapses its output to unique (kind, sourceId) pairs and discards the workflow, which is right for building a mapping table and wrong for locating a key. Nothing under ee/workspace-forking/ changed, and its own suite is in the test run below to prove it. Decisions worth a reviewer's attention strpos, not LIKE. _ is a LIKE single-character wildcard and nearly every env key contains one, so LIKE '%SB_ACTION_ROUTER_SECRET%' would match text the key does not occur in. The prefilter can over-match but never under-match; the scanner is the authority. Query plan is an index scan on workflow by workspace, nested-looped into workflow_blocks — cost tracks the workspace, not the table. scope gates the read but does not narrow it. A {{KEY}} names a key, not a scope, so the same sites answer for a workspace secret and the personal one it shadows. Narrowing would report a personal secret as unreferenced the moment a workspace variable of the same name existed. One field per block, not a list. The remapper dedupes a block's references by (kind, sourceId), so a block naming the secret twice yields one entry. The type says so and a test pins it, because the row renders that field as its whole description. Live state, not deployed. A draft workflow referencing the key must show. The fork scanner reads deployed state; this deliberately does not. Same authorization as Logs. The existing usage gate, renamed requireSecretTrailReadAccess and shared verbatim, so the two tabs can never disagree about who may look. Caps are reported, not silent. Hitting a scan cap sets truncated and the panel says so rather than trimming the list quietly. UI Existing primitives only — ChipModalTabs for the strip (credential-group-detail.tsx:239), DetailSection per workflow over RESOURCE_LIST_STACK rows (byok-key-manager.tsx:328), IntegrationTile for the block glyph so a block reads here exactly as it does on an integrations row, SettingsEmptyState for the gates. No new component, no new CSS class, no styling change to any shared primitive. Testing 176 tests pass, including 14 new ones and ee/workspace-forking/lib/remap's full suite. tsc, biome, and 9 CI checks: api-validation (strict), react-query, client-boundary, tool-registry-boundary, import-specifiers, route-verbs, sql-date-binding, utils, boundaries. Against a real database: the plan is verified, and a scan of a real workspace returned 16 blocks in one workflow with the right fields (botToken on Slack blocks, headers on API blocks), matching the raw SQL exactly. The live route 401s unauthenticated, with auth running before parsing. Not verified: the rendered pixels. No browser was available in the authoring environment, so the two client modules were checked by tsc, biome, and import resolution rather than by looking at them. Worth a click-through against Members (N) on the same page. 🤖 Generated with Claude Code

Open Graph Description: Why See usage answered who has run something with this key. It could not answer the question a rotation actually starts from — where is this wired in — because a secret four blocks depend on but no...

X Description: Why See usage answered who has run something with this key. It could not answer the question a rotation actually starts from — where is this wired in — because a secret four blocks depend on but no...

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

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:91156477-9d4f-caae-b416-c5ce0dc5acd7
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idA918:F138D:AC8236:EC5698:6AFB50E2
html-safe-nonce11ba379eb9f3850c044a5df3509075cb5e8df9db8d29443097dc0e69980c85f9
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBOTE4OkYxMzhEOkFDODIzNjpFQzU2OTg6NkFGQjUwRTIiLCJ2aXNpdG9yX2lkIjoiNjg2MjY0NjM0ODE4OTc0OTQ3NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac2743a3ef218850bc15866fee465e7ac60b82ca4189c66303c810197c65236b19
hovercard-subject-tagpull_request:4334947458
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/6947/files
twitter:imagehttps://avatars.githubusercontent.com/u/17950982?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/17950982?s=400&v=4
og:image:altWhy See usage answered who has run something with this key. It could not answer the question a rotation actually starts from — where is this wired in — because a secret four blocks depend on but no...
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/6947/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsimstudioai%2Fsim%2Fpull%2F6947%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%2F6947%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/6947/files
Reloadhttps://github.com/simstudioai/sim/pull/6947/files
Reloadhttps://github.com/simstudioai/sim/pull/6947/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
icecrasher321https://github.com/icecrasher321
staginghttps://github.com/simstudioai/sim/tree/staging
feat/secret-references-tabhttps://github.com/simstudioai/sim/tree/feat/secret-references-tab
Conversation 67 https://github.com/simstudioai/sim/pull/6947
Commits 10 https://github.com/simstudioai/sim/pull/6947/commits
Checks 30 https://github.com/simstudioai/sim/pull/6947/checks
Files changed https://github.com/simstudioai/sim/pull/6947/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/6947/files
feat(secrets): show where a secret is referenced, beside its usage log https://github.com/simstudioai/sim/pull/6947/files#top
Show all changes 10 commits https://github.com/simstudioai/sim/pull/6947/files
3e69d25 feat(secrets): show where a secret is referenced, beside its usage log Aug 21, 2026 https://github.com/simstudioai/sim/pull/6947/commits/3e69d2544f6bffd7523e021dec9d2dd872b186b2
4a9248a fix(secrets): close the reference-scan scope bypass and bound its output Aug 21, 2026 https://github.com/simstudioai/sim/pull/6947/commits/4a9248a41318609f1338b35f280b99b2f79e0ac0
fda586f fix(secrets): cover unicode whitespace, legacy keys, and the shadowed… Aug 21, 2026 https://github.com/simstudioai/sim/pull/6947/commits/fda586f1073302b65a811622d4bf09e90c20c4ec
1ebee83 fix(secrets): re-check the reference gate's volatile input after the … Aug 21, 2026 https://github.com/simstudioai/sim/pull/6947/commits/1ebee8367aa02e07d060950841c214f3c8dd1f04
157339e fix(secrets): accept JSON-escaped whitespace in the reference prefilter Aug 21, 2026 https://github.com/simstudioai/sim/pull/6947/commits/157339e12ab168ddd2fcc6606eec5d85658e530a
619d3f1 feat(secrets): land the References link on the block, and name its field Aug 21, 2026 https://github.com/simstudioai/sim/pull/6947/commits/619d3f16570a18f97621d3f1eca7d2c447cd7406
bb347cf fix(secrets): make the reference prefilter exactly as tight as the au… Aug 21, 2026 https://github.com/simstudioai/sim/pull/6947/commits/bb347cf8aa6971b6649c2a4dae5b889ab11124ca
39c5167 fix(secrets): cap the reference scan on results, not candidates Aug 21, 2026 https://github.com/simstudioai/sim/pull/6947/commits/39c51673053e20fdf49a47554bdd24c6f23acdee
f0a61d9 fix(secrets): drop the paging that caused drift, and stop false trunc… Aug 21, 2026 https://github.com/simstudioai/sim/pull/6947/commits/f0a61d907bed22f594ec31ec17d1bffbcfcb2b89
83afe7c fix(secrets): gate the deep-link release on the workflow being ready Aug 21, 2026 https://github.com/simstudioai/sim/pull/6947/commits/83afe7c935a45160b927e8ddcbd9c245c6e5f8e8
Clear filters https://github.com/simstudioai/sim/pull/6947/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/6947/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/6947/files
route.test.ts https://github.com/simstudioai/sim/pull/6947/files#diff-1fd3ec9c79474907a018f535fcc4c592e61519dd1ab76827dbc9f4e7f06001c3
route.ts https://github.com/simstudioai/sim/pull/6947/files#diff-e92d861609678b334b7bb38d5a5c61c7c3269d14e08f929479b48814c5a2e77d
credential-detail-layout.tsx https://github.com/simstudioai/sim/pull/6947/files#diff-f22effd71062ce3dbde93e7acd4d4047227f5d7bb3b38dfc9853322b0fd43036
index.ts https://github.com/simstudioai/sim/pull/6947/files#diff-5255ea02b5e555c3f13a08ce727c06d19cf37acfb503f25ceb8a97acac3515bd
secret-references-panel.tsx https://github.com/simstudioai/sim/pull/6947/files#diff-64c4e534b66b25eb640381a0aa8261ccccf935228b578d4ec8119406c4f4e590
search-params.ts https://github.com/simstudioai/sim/pull/6947/files#diff-34c7789f466845d71a5f7369bb6306a24d4354994b540f45186e5d5081073e51
secret-detail.tsx https://github.com/simstudioai/sim/pull/6947/files#diff-05c9a4a38bbd123a916760324cf7b1b90b8979c447aa9cdf80ae0c4b1f568aa7
focus-block-deep-link.tsx https://github.com/simstudioai/sim/pull/6947/files#diff-021bf2c028d9e4b5eb0c15b82f23e5e29de82060abc4ba5d4ffcaffe018549df
index.ts https://github.com/simstudioai/sim/pull/6947/files#diff-6cd29df18b4e64ed2b852e3765631e4f57617215388d3ec84cb45ca3710300fc
search-params.ts https://github.com/simstudioai/sim/pull/6947/files#diff-bae200ae30d7b1f857821053ca21faec98c1b19583b47af15afd865be459f538
workflow.tsx https://github.com/simstudioai/sim/pull/6947/files#diff-633646152e985737e5fd12931da50f7d1f2b76bc3fbb589f7ce3fcf26f69da01
credentials.ts https://github.com/simstudioai/sim/pull/6947/files#diff-ca7307d0241b48ad5a75a8869ddc986abb13d00b3170a21896285cdacf8d7492
credential-keys.ts https://github.com/simstudioai/sim/pull/6947/files#diff-0d935af467bd20593e0209c51ae25cd18b83b39afc6eb9b5540a793b927d34a9
secrets.ts https://github.com/simstudioai/sim/pull/6947/files#diff-84a56023cad6909c0a3f4293f7c44ab67da7d09beef8b82c3ab1797f0e4745e6
environment.ts https://github.com/simstudioai/sim/pull/6947/files#diff-410fe6b2c7c0fdce4b2c736619f349af53cf8e7f7a227f0a7b1565283b7dde10
operations.ts https://github.com/simstudioai/sim/pull/6947/files#diff-9b47bcb9e11edd842d359e295237e55162382f8fa2e84652411339ebfb1216ea
use-cases.test.ts https://github.com/simstudioai/sim/pull/6947/files#diff-5a2c4a664193b2a811c8436f39c0819146f797b8ea3d5a556ab26f3d28411d04
use-cases.ts https://github.com/simstudioai/sim/pull/6947/files#diff-bb860cf688af974d583331c9112c37875a7ff2752630906152d2d83d05193416
scan.test.ts https://github.com/simstudioai/sim/pull/6947/files#diff-3210d9d727b0984b0d295a34c899ebb02d5ad1dcd83d6542b75c786acd6afbc1
scan.ts https://github.com/simstudioai/sim/pull/6947/files#diff-e6237c86ecfebb44624b985034c591024d592c31d4ec02f0ce4d8983beb24f75
check-api-validation-contracts.ts https://github.com/simstudioai/sim/pull/6947/files#diff-48ae6a4d0c1f820d5b644522d25742bb29af758bc8350f1a3cf3f8afa0bd00b0
apps/sim/app/api/secrets/references/route.test.tshttps://github.com/simstudioai/sim/pull/6947/files#diff-1fd3ec9c79474907a018f535fcc4c592e61519dd1ab76827dbc9f4e7f06001c3
View file https://github.com/simstudioai/sim/blob/83afe7c935a45160b927e8ddcbd9c245c6e5f8e8/apps/sim/app/api/secrets/references/route.test.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/6947/{{ revealButtonHref }}
apps/sim/app/api/secrets/references/route.tshttps://github.com/simstudioai/sim/pull/6947/files#diff-e92d861609678b334b7bb38d5a5c61c7c3269d14e08f929479b48814c5a2e77d
View file https://github.com/simstudioai/sim/blob/83afe7c935a45160b927e8ddcbd9c245c6e5f8e8/apps/sim/app/api/secrets/references/route.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/6947/{{ revealButtonHref }}
...kspace/[workspaceId]/components/credential-detail/components/credential-detail-layout.tsxhttps://github.com/simstudioai/sim/pull/6947/files#diff-f22effd71062ce3dbde93e7acd4d4047227f5d7bb3b38dfc9853322b0fd43036
View file https://github.com/simstudioai/sim/blob/83afe7c935a45160b927e8ddcbd9c245c6e5f8e8/apps/sim/app/workspace/%5BworkspaceId%5D/components/credential-detail/components/credential-detail-layout.tsx
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/6947/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/6947/files#diff-f22effd71062ce3dbde93e7acd4d4047227f5d7bb3b38dfc9853322b0fd43036
https://github.com/simstudioai/sim/pull/6947/files#diff-f22effd71062ce3dbde93e7acd4d4047227f5d7bb3b38dfc9853322b0fd43036
https://github.com/simstudioai/sim/pull/6947/files#diff-f22effd71062ce3dbde93e7acd4d4047227f5d7bb3b38dfc9853322b0fd43036
...[workspaceId]/settings/secrets/[credentialId]/components/secret-references-panel/index.tshttps://github.com/simstudioai/sim/pull/6947/files#diff-5255ea02b5e555c3f13a08ce727c06d19cf37acfb503f25ceb8a97acac3515bd
View file https://github.com/simstudioai/sim/blob/83afe7c935a45160b927e8ddcbd9c245c6e5f8e8/apps/sim/app/workspace/%5BworkspaceId%5D/settings/secrets/%5BcredentialId%5D/components/secret-references-panel/index.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/6947/{{ revealButtonHref }}
Please reload this pagehttps://github.com/simstudioai/sim/pull/6947/files
...ngs/secrets/[credentialId]/components/secret-references-panel/secret-references-panel.tsxhttps://github.com/simstudioai/sim/pull/6947/files#diff-64c4e534b66b25eb640381a0aa8261ccccf935228b578d4ec8119406c4f4e590
View file https://github.com/simstudioai/sim/blob/83afe7c935a45160b927e8ddcbd9c245c6e5f8e8/apps/sim/app/workspace/%5BworkspaceId%5D/settings/secrets/%5BcredentialId%5D/components/secret-references-panel/secret-references-panel.tsx
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/6947/{{ revealButtonHref }}
Please reload this pagehttps://github.com/simstudioai/sim/pull/6947/files
apps/sim/app/workspace/[workspaceId]/settings/secrets/[credentialId]/search-params.tshttps://github.com/simstudioai/sim/pull/6947/files#diff-34c7789f466845d71a5f7369bb6306a24d4354994b540f45186e5d5081073e51
View file https://github.com/simstudioai/sim/blob/83afe7c935a45160b927e8ddcbd9c245c6e5f8e8/apps/sim/app/workspace/%5BworkspaceId%5D/settings/secrets/%5BcredentialId%5D/search-params.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/6947/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/6947/files#diff-34c7789f466845d71a5f7369bb6306a24d4354994b540f45186e5d5081073e51
Please reload this pagehttps://github.com/simstudioai/sim/pull/6947/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/6947/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.