René's URL Explorer Experiment


Title: [BUG] Direct uploads fail with S3_ENDPOINT (non-AWS): metadata dropped from presigned query, CSP blocks endpoint · Issue #8378 · simstudioai/sim · GitHub

Open Graph Title: [BUG] Direct uploads fail with S3_ENDPOINT (non-AWS): metadata dropped from presigned query, CSP blocks endpoint · Issue #8378 · simstudioai/sim

X Title: [BUG] Direct uploads fail with S3_ENDPOINT (non-AWS): metadata dropped from presigned query, CSP blocks endpoint · Issue #8378 · simstudioai/sim

Description: Describe the bug With S3_ENDPOINT pointing at a non-AWS S3-compatible store, direct browser uploads fail. This covers knowledge base documents, workspace files, profile pictures and attachments. There are two independent causes. Upload m...

Open Graph Description: Describe the bug With S3_ENDPOINT pointing at a non-AWS S3-compatible store, direct browser uploads fail. This covers knowledge base documents, workspace files, profile pictures and attachments. Th...

X Description: Describe the bug With S3_ENDPOINT pointing at a non-AWS S3-compatible store, direct browser uploads fail. This covers knowledge base documents, workspace files, profile pictures and attachments. Th...

Opengraph URL: https://github.com/simstudioai/sim/issues/8378

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[BUG] Direct uploads fail with S3_ENDPOINT (non-AWS): metadata dropped from presigned query, CSP blocks endpoint","articleBody":"**Describe the bug**\n\nWith `S3_ENDPOINT` pointing at a non-AWS S3-compatible store, direct browser uploads fail. This covers knowledge base documents, workspace files, profile pictures and attachments. There are two independent causes.\n\n1. **Upload metadata is lost.** `getS3PresignedUploadUrl` (`apps/sim/lib/uploads/providers/s3/client.ts`) lets the AWS presigner hoist `x-amz-meta-*` into the query string. AWS S3 stores query-string metadata. Other S3 implementations don't, including OVHcloud Object Storage. The object lands without metadata, and `headProviderObject` (`apps/sim/lib/uploads/upload-session/provider.ts`) throws `Upload object \u003ckey> is missing required provider metadata`, so `/documents/uploads/\u003cid>/complete` returns 500.\n2. **CSP blocks the PUT.** `connect-src` (`apps/sim/lib/core/security/csp.ts`) only allows `*.amazonaws.com` and a few other fixed hosts. It never includes the `S3_ENDPOINT` host, so the browser refuses the presigned PUT before it is sent.\n\n**To Reproduce**\n\n1. Self-host with `STORAGE_PROVIDER=s3`, `S3_ENDPOINT=https://s3.de.io.cloud.ovh.net`, `AWS_REGION=de`, bucket CORS allowing PUT from the app origin. Reproduced on v0.8.41 and current `main`.\n2. Upload a document to a knowledge base.\n3. The browser console shows a CSP `connect-src` violation for `https://\u003cbucket>.s3.de.io.cloud.ovh.net/...`.\n4. With the CSP worked around, the PUT succeeds (200), but `complete` fails with \"missing required provider metadata\". `HeadObject` on the uploaded key returns `Metadata: {}`.\n\n**Expected behavior**\n\nUploads work against any S3-compatible endpoint configured via `S3_ENDPOINT`.\n\n**Additional context**\n\nI tested against the real OVH bucket with `@aws-sdk/s3-request-presigner`:\n\n| Presign mode | PUT | `HeadObject().Metadata` |\n|---|---|---|\n| default (metadata hoisted into query) | 200 | `{}` |\n| `unhoistableHeaders: new Set(['x-amz-meta-…'])` and the same headers sent by the client | 200 | `{\"uploadid\":\"abc123\"}` |\n\nA possible fix:\n\n- When `S3_ENDPOINT` is set, presign with the metadata keys as `unhoistableHeaders` and return them in `headers` so the client sends them. They are then signed, which AWS accepts too. Bucket CORS must allow these headers (`AllowedHeaders: *`).\n- Add the origin of the `S3_ENDPOINT` bucket host (virtual-hosted or path-style) to `connect-src` in both build-time and runtime CSP.\n\nHappy to open a PR.\n","author":{"url":"https://github.com/schalterDev","@type":"Person","name":"schalterDev"},"datePublished":"2026-09-28T17:33:25Z","url":"https://github.com/simstudioai/sim/issues/8378"}

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/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:0974c341-4260-ada8-7481-8a6ed9bec09b
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idBE48:2F4711:3E97E2:58092C:6AFB597D
html-safe-nonce8304c0dfd16923d914197ce427ca8a1391e84a0882ad2598331b98e32e771de1
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRTQ4OjJGNDcxMTozRTk3RTI6NTgwOTJDOjZBRkI1OTdEIiwidmlzaXRvcl9pZCI6Ijg3NDMxNjQ0NTQwOTIxMDIwMTMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacdc76cb4a7067b891e58106bc5f23f35dad26b5a0df1c44b7afe88884ed43ebae
hovercard-subject-tagissue:5618695890
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/simstudioai/sim/8378/issue_layout
twitter:imagehttps://opengraph.githubassets.com/d22805b8903a10edcd6507af2931ca09268c1d14f359d1254905d38b1b8dbf15/simstudioai/sim/issues/8378
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/d22805b8903a10edcd6507af2931ca09268c1d14f359d1254905d38b1b8dbf15/simstudioai/sim/issues/8378
og:image:altDescribe the bug With S3_ENDPOINT pointing at a non-AWS S3-compatible store, direct browser uploads fail. This covers knowledge base documents, workspace files, profile pictures and attachments. Th...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameschalterDev
hostnamegithub.com
expected-hostnamegithub.com
Noneea33d13c96d0ff66bd8fa906b193d2213536b78cb06b0c50a4632c58b1418f94
turbo-cache-controlno-preview
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
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release59ef97164c52cf59bd10558ddec9c4f482763988
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/simstudioai/sim/issues/8378#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsimstudioai%2Fsim%2Fissues%2F8378
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%2Fissues%2F8378
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=simstudioai%2Fsim
Reloadhttps://github.com/simstudioai/sim/issues/8378
Reloadhttps://github.com/simstudioai/sim/issues/8378
Reloadhttps://github.com/simstudioai/sim/issues/8378
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
https://github.com/simstudioai/sim
New issuehttps://github.com/login?return_to=https://github.com/simstudioai/sim/issues/8378
New issuehttps://github.com/login?return_to=https://github.com/simstudioai/sim/issues/8378
[BUG] Direct uploads fail with S3_ENDPOINT (non-AWS): metadata dropped from presigned query, CSP blocks endpointhttps://github.com/simstudioai/sim/issues/8378#top
https://github.com/schalterDev
schalterDevhttps://github.com/schalterDev
on Sep 28, 2026https://github.com/simstudioai/sim/issues/8378#issue-5618695890
https://github.com/iakshkhurana
iakshkhuranahttps://github.com/iakshkhurana
on Oct 1, 2026https://github.com/simstudioai/sim/issues/8378#issuecomment-5937864661
waleedlatif1https://github.com/waleedlatif1
completedhttps://github.com/simstudioai/sim/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Oct 1, 2026https://github.com/simstudioai/sim/issues/8378#event-32278652341
Sign up for freehttps://github.com/signup?return_to=https://github.com/simstudioai/sim/issues/8378
Sign in to commenthttps://github.com/login?return_to=https://github.com/simstudioai/sim/issues/8378
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.