René's URL Explorer Experiment


Title: fix(files): preserve principals when serving generated documents by TheodoreSpeaks · Pull Request #6654 · simstudioai/sim · GitHub

Open Graph Title: fix(files): preserve principals when serving generated documents by TheodoreSpeaks · Pull Request #6654 · simstudioai/sim

X Title: fix(files): preserve principals when serving generated documents by TheodoreSpeaks · Pull Request #6654 · simstudioai/sim

Description: Summary authenticate workspace file serve requests as session or executor Principals and read the canonical file through the workspace-file application boundary preserve the Principal through v2 downloads, workspace ZIPs, and Copilot function mounts so referenced images can be authorized publish an authorized pointer to dependency-bound compiled artifacts so public shares can serve generated documents without minting workspace authority fail fast when a private referenced-document resolver loses its Principal Validation local test suite not run per request staged files passed the repository pre-commit Biome hook

Open Graph Description: Summary authenticate workspace file serve requests as session or executor Principals and read the canonical file through the workspace-file application boundary preserve the Principal through v2 d...

X Description: Summary authenticate workspace file serve requests as session or executor Principals and read the canonical file through the workspace-file application boundary preserve the Principal through v2 d...

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

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:603e78fb-ee68-0698-4744-cd4dbe3b1a52
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idA7CC:22FE8E:A063C7:E373B6:6AFB5332
html-safe-noncee7990f50c3b0595b1465689cc819584ae68fdb08e72203f3b981f2a3b570ff7a
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBN0NDOjIyRkU4RTpBMDYzQzc6RTM3M0I2OjZBRkI1MzMyIiwidmlzaXRvcl9pZCI6IjU0ODQ3NzYxNDYyMDMyNjc4OTAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac03e6cbfbc03f7a64d76af04c44e18434406bf1935be80b858940f659bdbdb0b2
hovercard-subject-tagpull_request:4267502582
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/6654/files
twitter:imagehttps://avatars.githubusercontent.com/u/19564703?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/19564703?s=400&v=4
og:image:altSummary authenticate workspace file serve requests as session or executor Principals and read the canonical file through the workspace-file application boundary preserve the Principal through v2 d...
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/6654/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsimstudioai%2Fsim%2Fpull%2F6654%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%2F6654%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/6654/files
Reloadhttps://github.com/simstudioai/sim/pull/6654/files
Reloadhttps://github.com/simstudioai/sim/pull/6654/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
TheodoreSpeakshttps://github.com/TheodoreSpeaks
staginghttps://github.com/simstudioai/sim/tree/staging
fix/copilot-principal-lifecyclehttps://github.com/simstudioai/sim/tree/fix/copilot-principal-lifecycle
Conversation 17 https://github.com/simstudioai/sim/pull/6654
Commits 2 https://github.com/simstudioai/sim/pull/6654/commits
Checks 30 https://github.com/simstudioai/sim/pull/6654/checks
Files changed https://github.com/simstudioai/sim/pull/6654/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/6654/files
fix(files): preserve principals when serving generated documents https://github.com/simstudioai/sim/pull/6654/files#top
Show all changes 2 commits https://github.com/simstudioai/sim/pull/6654/files
62b012d fix(files): preserve principals when serving documents TheodoreSpeaks Aug 13, 2026 https://github.com/simstudioai/sim/pull/6654/commits/62b012de6351788ab8ccda1e589c1ed8962ee31e
6c64353 fix(files): address principal serve review findings TheodoreSpeaks Aug 13, 2026 https://github.com/simstudioai/sim/pull/6654/commits/6c643531fcf57b0192243a161c1454f6417a1d21
Clear filters https://github.com/simstudioai/sim/pull/6654/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/6654/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/6654/files
route.test.ts https://github.com/simstudioai/sim/pull/6654/files#diff-aaa040f5cf2c4f4a89280a9560728fcb6c688e410ee0f6945faee6a913a8634f
route.ts https://github.com/simstudioai/sim/pull/6654/files#diff-2e1bb2cb6d37718fb0edc1164a1eea09d303379d4717f3844d00ac38e92d8ae9
auth.test.ts https://github.com/simstudioai/sim/pull/6654/files#diff-4e9bcf71f77f4f5b55b27d372b9653b91241b3bf229a3a43055c43eabf3691f9
auth.ts https://github.com/simstudioai/sim/pull/6654/files#diff-9da18269fd8b12862531cbe9c284ac19ace7838be677cda04fa7b4fe4523906a
route.test.ts https://github.com/simstudioai/sim/pull/6654/files#diff-b54b227a4f0056aeb3cd9a452ee2a7d12c3e842546e584932a2adef27f5cb97c
route.ts https://github.com/simstudioai/sim/pull/6654/files#diff-e6b64afa5144ec6796154b004bc1322ddc9fcf82f9c4fc961ca13c3cc07ee4b0
middleware.test.ts https://github.com/simstudioai/sim/pull/6654/files#diff-844914da3ba6667a333ecd270a410535768371b82e7de4c84e75f7624b9f40db
middleware.ts https://github.com/simstudioai/sim/pull/6654/files#diff-92f74d9ee4f123e429cd83a651c51fe276952d40ddd7fea7b0cb32bc48593ffe
function-execute.test.ts https://github.com/simstudioai/sim/pull/6654/files#diff-1fe7e00695e323704783e3bb5f37d935df382f45420622d7bd4c480eccbf29d1
function-execute.ts https://github.com/simstudioai/sim/pull/6654/files#diff-e6d4d4c49c334453d57aa77c7e31d792717e1d0c94b39df8d6021b98a561c91c
doc-compile.test.ts https://github.com/simstudioai/sim/pull/6654/files#diff-1351de746fcacb4198247f1f532df83a5135c527c4eb8fbc5cc377c833f84219
doc-compile.ts https://github.com/simstudioai/sim/pull/6654/files#diff-b744bbfdd06f81c703753596e7e7e90c15997083a6cadc23f0fc2031f6d63a70
doc-compiled-store.test.ts https://github.com/simstudioai/sim/pull/6654/files#diff-721fc2a17f043ac35673ad2da880e29f4da263f4d585c0a69635956a646ca02d
doc-compiled-store.ts https://github.com/simstudioai/sim/pull/6654/files#diff-26082356b4eccd6090ec3bbb0b94d10b4bb1728a82a69c2801cc9581e542fb4b
doc-servable.test.ts https://github.com/simstudioai/sim/pull/6654/files#diff-f053c1d08e53539171c87f319fcd9671b674a48fee10f7233293cb7ed0de1081
file-utils.server.test.ts https://github.com/simstudioai/sim/pull/6654/files#diff-637971eb2be5d28173a2ee83de689fa941b24546954c7b60df4fbc86578f5e87
file-utils.server.ts https://github.com/simstudioai/sim/pull/6654/files#diff-56073f04957682936465d04d9660e33d45b8f6151b8ce0947b9cfd6ad3e3533e
index.ts https://github.com/simstudioai/sim/pull/6654/files#diff-dfe108bc01e6210efc155213fe1efbefc9b8ff1249bcf8649ed0806979c8b774
route-policies.ts https://github.com/simstudioai/sim/pull/6654/files#diff-b770b6b9c49ec8170bd0414024408a8de75cbb8442185f6b72179aff26e741e2
download-workspace-file-items.test.ts https://github.com/simstudioai/sim/pull/6654/files#diff-f3e6abb10824733a3f309959aa707ec1a13f46503fdd5e8ff111abd080f1df5e
download-workspace-file-items.ts https://github.com/simstudioai/sim/pull/6654/files#diff-2d5567fae70d0628de4463ff24d17d591d9c60e4bb8a88374d361184bce6f7f5
download-workspace-file.test.ts https://github.com/simstudioai/sim/pull/6654/files#diff-4149a498e154898f2048f9393f3dd7f50c6f9c6381edda4df18430e9e8b56074
download-workspace-file.ts https://github.com/simstudioai/sim/pull/6654/files#diff-6f2441601aac3bdfc13ceb847faa4f9d558f33b56b8390a6a130f6b8650a12a1
fetch-servable-workspace-file-buffer.ts https://github.com/simstudioai/sim/pull/6654/files#diff-8537ecd85bff6bad9fb8be7bfd3e7b5c68f39d8f522b812914156e11bf7884e4
read-workspace-file-content-by-key.test.ts https://github.com/simstudioai/sim/pull/6654/files#diff-e3cb17f13140617cfe283046f3e8de094e05038b6a15c7a7a5ed18fb8c93c702
read-workspace-file-content-by-key.ts https://github.com/simstudioai/sim/pull/6654/files#diff-a324d5560266dbed457cc9e4e8c21e709097dfbad0ca640776a0e987b76c3cbd
apps/sim/app/api/files/serve/[...path]/route.test.tshttps://github.com/simstudioai/sim/pull/6654/files#diff-aaa040f5cf2c4f4a89280a9560728fcb6c688e410ee0f6945faee6a913a8634f
View file https://github.com/simstudioai/sim/blob/6c643531fcf57b0192243a161c1454f6417a1d21/apps/sim/app/api/files/serve/%5B...path%5D/route.test.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/6654/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/6654/files#diff-aaa040f5cf2c4f4a89280a9560728fcb6c688e410ee0f6945faee6a913a8634f
https://github.com/simstudioai/sim/pull/6654/files#diff-aaa040f5cf2c4f4a89280a9560728fcb6c688e410ee0f6945faee6a913a8634f
https://github.com/simstudioai/sim/pull/6654/files#diff-aaa040f5cf2c4f4a89280a9560728fcb6c688e410ee0f6945faee6a913a8634f
https://github.com/simstudioai/sim/pull/6654/files#diff-aaa040f5cf2c4f4a89280a9560728fcb6c688e410ee0f6945faee6a913a8634f
https://github.com/simstudioai/sim/pull/6654/files#diff-aaa040f5cf2c4f4a89280a9560728fcb6c688e410ee0f6945faee6a913a8634f
https://github.com/simstudioai/sim/pull/6654/files#diff-aaa040f5cf2c4f4a89280a9560728fcb6c688e410ee0f6945faee6a913a8634f
https://github.com/simstudioai/sim/pull/6654/files#diff-aaa040f5cf2c4f4a89280a9560728fcb6c688e410ee0f6945faee6a913a8634f
https://github.com/simstudioai/sim/pull/6654/files#diff-aaa040f5cf2c4f4a89280a9560728fcb6c688e410ee0f6945faee6a913a8634f
apps/sim/app/api/files/serve/[...path]/route.tshttps://github.com/simstudioai/sim/pull/6654/files#diff-2e1bb2cb6d37718fb0edc1164a1eea09d303379d4717f3844d00ac38e92d8ae9
View file https://github.com/simstudioai/sim/blob/6c643531fcf57b0192243a161c1454f6417a1d21/apps/sim/app/api/files/serve/%5B...path%5D/route.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/6654/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/6654/files#diff-2e1bb2cb6d37718fb0edc1164a1eea09d303379d4717f3844d00ac38e92d8ae9
https://github.com/simstudioai/sim/pull/6654/files#diff-2e1bb2cb6d37718fb0edc1164a1eea09d303379d4717f3844d00ac38e92d8ae9
https://github.com/simstudioai/sim/pull/6654/files#diff-2e1bb2cb6d37718fb0edc1164a1eea09d303379d4717f3844d00ac38e92d8ae9
https://github.com/simstudioai/sim/pull/6654/files#diff-2e1bb2cb6d37718fb0edc1164a1eea09d303379d4717f3844d00ac38e92d8ae9
https://github.com/simstudioai/sim/pull/6654/files#diff-2e1bb2cb6d37718fb0edc1164a1eea09d303379d4717f3844d00ac38e92d8ae9
https://github.com/simstudioai/sim/pull/6654/files#diff-2e1bb2cb6d37718fb0edc1164a1eea09d303379d4717f3844d00ac38e92d8ae9
https://github.com/simstudioai/sim/pull/6654/files#diff-2e1bb2cb6d37718fb0edc1164a1eea09d303379d4717f3844d00ac38e92d8ae9
https://github.com/simstudioai/sim/pull/6654/files#diff-2e1bb2cb6d37718fb0edc1164a1eea09d303379d4717f3844d00ac38e92d8ae9
https://github.com/simstudioai/sim/pull/6654/files#diff-2e1bb2cb6d37718fb0edc1164a1eea09d303379d4717f3844d00ac38e92d8ae9
apps/sim/app/api/v1/auth.test.tshttps://github.com/simstudioai/sim/pull/6654/files#diff-4e9bcf71f77f4f5b55b27d372b9653b91241b3bf229a3a43055c43eabf3691f9
View file https://github.com/simstudioai/sim/blob/6c643531fcf57b0192243a161c1454f6417a1d21/apps/sim/app/api/v1/auth.test.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/6654/{{ revealButtonHref }}
Please reload this pagehttps://github.com/simstudioai/sim/pull/6654/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/6654/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.