René's URL Explorer Experiment


Title: improvement(access-control): wire tool and model permissions into copilot editing by waleedlatif1 · Pull Request #7080 · simstudioai/sim · GitHub

Open Graph Title: improvement(access-control): wire tool and model permissions into copilot editing by waleedlatif1 · Pull Request #7080 · simstudioai/sim

X Title: improvement(access-control): wire tool and model permissions into copilot editing by waleedlatif1 · Pull Request #7080 · simstudioai/sim

Description: Summary Permission groups already supported a per-tool denylist (deniedTools) and model restrictions, but only the canvas honored them — the copilot edit path gated on block type alone, so Sim could build workflows using tools and models the user is not allowed to run. The executor refused them at run time instead, so the workflow died on first run. Enforce the operation and model gates in the edit engine: a denied value is dropped and reported as a skipped item, so the block still lands and the model picks something it may use. An edit never clears a value the caller is allowed to keep. Gate agent-block tool entries by their resolved tool id, and gate the trigger-config fan-out, which redistributes a persisted aggregate without passing through input validation. Stop advertising what the viewer cannot use across all four copilot discovery surfaces — VFS stamping, list_integration_tools, the deferred callable-tool payload, and get_blocks_metadata — behind one shared projectIntegrationToolsForViewer. filterExposedIntegrationTools now requires both gates so a new surface cannot apply a partial one. Add createToolAccessGate / createModelAccessGate as the single place a denylist becomes a decision, shared by the client hook and every server path so the two cannot drift on what a tool id means. New model_not_allowed skipped-item type; regenerated the v2 OpenAPI spec and CLI API. No behavior change for a workspace without a permission group: both gates return a shared allow-all singleton, the denied-operation pass is skipped, and the VFS hands through its process-global schema cache untouched. Type of Change Bug fix Testing Tested manually. 21 new tests, each verified to fail when its gate is disabled. Full suite green (28,583 passing), bun run lint clean, all 33 audits pass including check:api-validation:strict, check:client-boundary, and check:openapi. 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 Permission groups already supported a per-tool denylist (deniedTools) and model restrictions, but only the canvas honored them — the copilot edit path gated on block type alone, so Sim cou...

X Description: Summary Permission groups already supported a per-tool denylist (deniedTools) and model restrictions, but only the canvas honored them — the copilot edit path gated on block type alone, so Sim cou...

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

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:64de19fd-acbd-93b9-7f2f-eac6b9033f81
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idBDFE:18E6DD:B7CAE7:FCCEE7:6AFB544C
html-safe-nonce1eb83b3573ee291bd41c0fc7c9b446f9d85d4aad16820acdf1723c26c2bc9f88
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCREZFOjE4RTZERDpCN0NBRTc6RkNDRUU3OjZBRkI1NDRDIiwidmlzaXRvcl9pZCI6IjQwMTc4OTczNDY5MTcxNjAwMTIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmaca27d651f9648ab5dc27ae8eed0d9295445645c240ce2d0474ed2a717c3d9e9f3
hovercard-subject-tagpull_request:4361877268
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/7080/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 Permission groups already supported a per-tool denylist (deniedTools) and model restrictions, but only the canvas honored them — the copilot edit path gated on block type alone, so Sim cou...
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/7080/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsimstudioai%2Fsim%2Fpull%2F7080%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%2F7080%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/7080/files
Reloadhttps://github.com/simstudioai/sim/pull/7080/files
Reloadhttps://github.com/simstudioai/sim/pull/7080/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
wt-copilot-tool-permshttps://github.com/simstudioai/sim/tree/wt-copilot-tool-perms
Conversation 18 https://github.com/simstudioai/sim/pull/7080
Commits 4 https://github.com/simstudioai/sim/pull/7080/commits
Checks 29 https://github.com/simstudioai/sim/pull/7080/checks
Files changed https://github.com/simstudioai/sim/pull/7080/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/7080/files
improvement(access-control): wire tool and model permissions into copilot editing https://github.com/simstudioai/sim/pull/7080/files#top
Show all changes 4 commits https://github.com/simstudioai/sim/pull/7080/files
7514ffc improvement(access-control): wire tool and model permissions into cop… waleedlatif1 Aug 25, 2026 https://github.com/simstudioai/sim/pull/7080/commits/7514ffcd920d0a850e192abcd3d4f773917acb34
0d34302 fix(access-control): use the path alias for the permission-groups typ… waleedlatif1 Aug 25, 2026 https://github.com/simstudioai/sim/pull/7080/commits/0d3430247506954529ebd8410bdfa95519d3374b
6a03859 fix(access-control): close two denied-tool leaks in copilot discovery waleedlatif1 Aug 25, 2026 https://github.com/simstudioai/sim/pull/7080/commits/6a03859523546910cc368c70915c24b7bfb46cb6
9438339 fix(access-control): key the copilot schema cache on permission policy waleedlatif1 Aug 25, 2026 https://github.com/simstudioai/sim/pull/7080/commits/94383393e0115504d4dce0482e90343e5ea7365e
Clear filters https://github.com/simstudioai/sim/pull/7080/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/7080/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/7080/files
openapi-v2-workflows.json https://github.com/simstudioai/sim/pull/7080/files#diff-811f737e7f97ec52156a37e71892822626b5b4de295efebd20992198d162149b
permission-check.ts https://github.com/simstudioai/sim/pull/7080/files#diff-d5cd99845c51815b03678e09f877000956847b0fe4e1d07e5ba01c3430698f8f
use-permission-config.ts https://github.com/simstudioai/sim/pull/7080/files#diff-9dfe45e7b42b8b77d8f35464c466c8dee54bedebb87cd7779c47776cbd5ba50f
payload.test.ts https://github.com/simstudioai/sim/pull/7080/files#diff-80cd1ca77f8236354c9fb18e96b0fda2b559b8aa3be5f12813ab01440e2e9c43
payload.ts https://github.com/simstudioai/sim/pull/7080/files#diff-8784913f594d3817f6261ccbbcc7cfb575ce191fa3cb47f4f258fc263d12123c
integration-tool-projection.test.ts https://github.com/simstudioai/sim/pull/7080/files#diff-8ca3b60246f21b8d2381f11a26e71d79b42e6516df03a289fda4f48c1f4fa7c2
integration-tool-projection.ts https://github.com/simstudioai/sim/pull/7080/files#diff-28901f801534a33d09cfcb031855c75e7fb6fcbdd94457fae38587c1d0c65387
integration-tools-invariants.test.ts https://github.com/simstudioai/sim/pull/7080/files#diff-2eefb9a68d67aacf2498cb24094069769c73b93a64e1b066b21b46d90674d4b6
integration-tools.test.ts https://github.com/simstudioai/sim/pull/7080/files#diff-437dc958c8928f3576a57668121a4e2dd16824cff712ee9039681eea8ad58250
integration-tools.ts https://github.com/simstudioai/sim/pull/7080/files#diff-a23dd1aecd2d461ec11c218541cbff2edb217dac74d69cc922e05794ea2b6746
integration-tools.ts https://github.com/simstudioai/sim/pull/7080/files#diff-cc13c2208f0803796b7506c1bdb4c85a5b7b937e09b4784403df19358badab31
get-blocks-metadata-tool.test.ts https://github.com/simstudioai/sim/pull/7080/files#diff-05ef147939c35948f2bbbcae343632c9161d81b2045f128c2397e8d4a23dc6cc
get-blocks-metadata-tool.ts https://github.com/simstudioai/sim/pull/7080/files#diff-0e44a9c085b1db6450fb193cb6237e065a0654d9b4d2c43ea79026f2c5327537
serializers.test.ts https://github.com/simstudioai/sim/pull/7080/files#diff-fa2c0dcaa46a3edf6f2c84392472df0c95819ce6fe07362eeb0a3e2ccc4ea053
serializers.ts https://github.com/simstudioai/sim/pull/7080/files#diff-7b9325a1d6ce5ccafd1491357e522366315f5c7511047eea4c69fc56ff9c663f
workspace-vfs.ts https://github.com/simstudioai/sim/pull/7080/files#diff-8e6937a8dfe45385ece110f82c25b4371a1ecb90dd552ef0a523e29201ad858b
integration-allowlist.ts https://github.com/simstudioai/sim/pull/7080/files#diff-8344ef88f9f4773e2894fa79f3864e715e91a640257d6dcf2699ff0818e88786
model-access.test.ts https://github.com/simstudioai/sim/pull/7080/files#diff-a5ad4fdf949c1e56d54a482a64f4f7646e7b3f17477806dbbb10a134bcb4798f
model-access.ts https://github.com/simstudioai/sim/pull/7080/files#diff-cee47e0f8c7181b55e571ef5080203ce2bc0ac59bdcf5c893db3a46e6c83985c
operation-access.test.ts https://github.com/simstudioai/sim/pull/7080/files#diff-fa49f93453fcfa45fa3bc5f51affff8a1751a5bba6b1b0a7be971a20b7421ebf
operation-access.ts https://github.com/simstudioai/sim/pull/7080/files#diff-b0dfb28314330c20747afda27d30f839744615d0cc9266c8c4da349f148e9c7d
builders.ts https://github.com/simstudioai/sim/pull/7080/files#diff-77372451cda55e4433dc1eec73daa7839f540be5f619e6c157a5a289ba1ef502
operations.test.ts https://github.com/simstudioai/sim/pull/7080/files#diff-6bb2b130cdc72cb4252605227c02134b7c8d196515f6426379ca6d41a2d7f1cc
operations.ts https://github.com/simstudioai/sim/pull/7080/files#diff-2bbfec18fd92146131844765ed05d83709454ef20b7f4fbcf75980fc95a954b9
types.ts https://github.com/simstudioai/sim/pull/7080/files#diff-712ff13b8353d29bba3ac0f484a3bbe5cd207ec353b0f3e2ac909ecd58cdd0db
v2-api.ts https://github.com/simstudioai/sim/pull/7080/files#diff-e856e756b18965607efb943e85bad153871936ce3ee5180ec2e8073a28dd1dd7
apps/docs/openapi-v2-workflows.jsonhttps://github.com/simstudioai/sim/pull/7080/files#diff-811f737e7f97ec52156a37e71892822626b5b4de295efebd20992198d162149b
View file https://github.com/simstudioai/sim/blob/94383393e0115504d4dce0482e90343e5ea7365e/apps/docs/openapi-v2-workflows.json
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/7080/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/7080/files#diff-811f737e7f97ec52156a37e71892822626b5b4de295efebd20992198d162149b
https://github.com/simstudioai/sim/pull/7080/files#diff-811f737e7f97ec52156a37e71892822626b5b4de295efebd20992198d162149b
apps/sim/ee/access-control/utils/permission-check.tshttps://github.com/simstudioai/sim/pull/7080/files#diff-d5cd99845c51815b03678e09f877000956847b0fe4e1d07e5ba01c3430698f8f
View file https://github.com/simstudioai/sim/blob/94383393e0115504d4dce0482e90343e5ea7365e/apps/sim/ee/access-control/utils/permission-check.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/7080/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/7080/files#diff-d5cd99845c51815b03678e09f877000956847b0fe4e1d07e5ba01c3430698f8f
https://github.com/simstudioai/sim/pull/7080/files#diff-d5cd99845c51815b03678e09f877000956847b0fe4e1d07e5ba01c3430698f8f
https://github.com/simstudioai/sim/pull/7080/files#diff-d5cd99845c51815b03678e09f877000956847b0fe4e1d07e5ba01c3430698f8f
https://github.com/simstudioai/sim/pull/7080/files#diff-d5cd99845c51815b03678e09f877000956847b0fe4e1d07e5ba01c3430698f8f
apps/sim/hooks/use-permission-config.tshttps://github.com/simstudioai/sim/pull/7080/files#diff-9dfe45e7b42b8b77d8f35464c466c8dee54bedebb87cd7779c47776cbd5ba50f
View file https://github.com/simstudioai/sim/blob/94383393e0115504d4dce0482e90343e5ea7365e/apps/sim/hooks/use-permission-config.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/7080/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/7080/files#diff-9dfe45e7b42b8b77d8f35464c466c8dee54bedebb87cd7779c47776cbd5ba50f
https://github.com/simstudioai/sim/pull/7080/files#diff-9dfe45e7b42b8b77d8f35464c466c8dee54bedebb87cd7779c47776cbd5ba50f
https://github.com/simstudioai/sim/pull/7080/files#diff-9dfe45e7b42b8b77d8f35464c466c8dee54bedebb87cd7779c47776cbd5ba50f
https://github.com/simstudioai/sim/pull/7080/files#diff-9dfe45e7b42b8b77d8f35464c466c8dee54bedebb87cd7779c47776cbd5ba50f
https://github.com/simstudioai/sim/pull/7080/files#diff-9dfe45e7b42b8b77d8f35464c466c8dee54bedebb87cd7779c47776cbd5ba50f
apps/sim/lib/copilot/chat/payload.test.tshttps://github.com/simstudioai/sim/pull/7080/files#diff-80cd1ca77f8236354c9fb18e96b0fda2b559b8aa3be5f12813ab01440e2e9c43
View file https://github.com/simstudioai/sim/blob/94383393e0115504d4dce0482e90343e5ea7365e/apps/sim/lib/copilot/chat/payload.test.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/7080/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/7080/files#diff-80cd1ca77f8236354c9fb18e96b0fda2b559b8aa3be5f12813ab01440e2e9c43
https://github.com/simstudioai/sim/pull/7080/files#diff-80cd1ca77f8236354c9fb18e96b0fda2b559b8aa3be5f12813ab01440e2e9c43
https://github.com/simstudioai/sim/pull/7080/files#diff-80cd1ca77f8236354c9fb18e96b0fda2b559b8aa3be5f12813ab01440e2e9c43
https://github.com/simstudioai/sim/pull/7080/files#diff-80cd1ca77f8236354c9fb18e96b0fda2b559b8aa3be5f12813ab01440e2e9c43
apps/sim/lib/copilot/chat/payload.tshttps://github.com/simstudioai/sim/pull/7080/files#diff-8784913f594d3817f6261ccbbcc7cfb575ce191fa3cb47f4f258fc263d12123c
View file https://github.com/simstudioai/sim/blob/94383393e0115504d4dce0482e90343e5ea7365e/apps/sim/lib/copilot/chat/payload.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/7080/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/7080/files#diff-8784913f594d3817f6261ccbbcc7cfb575ce191fa3cb47f4f258fc263d12123c
https://github.com/simstudioai/sim/pull/7080/files#diff-8784913f594d3817f6261ccbbcc7cfb575ce191fa3cb47f4f258fc263d12123c
https://github.com/simstudioai/sim/pull/7080/files#diff-8784913f594d3817f6261ccbbcc7cfb575ce191fa3cb47f4f258fc263d12123c
https://github.com/simstudioai/sim/pull/7080/files#diff-8784913f594d3817f6261ccbbcc7cfb575ce191fa3cb47f4f258fc263d12123c
https://github.com/simstudioai/sim/pull/7080/files#diff-8784913f594d3817f6261ccbbcc7cfb575ce191fa3cb47f4f258fc263d12123c
https://github.com/simstudioai/sim/pull/7080/files#diff-8784913f594d3817f6261ccbbcc7cfb575ce191fa3cb47f4f258fc263d12123c
https://github.com/simstudioai/sim/pull/7080/files#diff-8784913f594d3817f6261ccbbcc7cfb575ce191fa3cb47f4f258fc263d12123c
https://github.com/simstudioai/sim/pull/7080/files#diff-8784913f594d3817f6261ccbbcc7cfb575ce191fa3cb47f4f258fc263d12123c
https://github.com/simstudioai/sim/pull/7080/files#diff-8784913f594d3817f6261ccbbcc7cfb575ce191fa3cb47f4f258fc263d12123c
Please reload this pagehttps://github.com/simstudioai/sim/pull/7080/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/7080/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.