René's URL Explorer Experiment


Title: [Feature]: CSP-safe worker execution mode (remove the mandatory `'unsafe-eval'`) · Issue #134 · bQuery/bQuery · GitHub

Open Graph Title: [Feature]: CSP-safe worker execution mode (remove the mandatory `'unsafe-eval'`) · Issue #134 · bQuery/bQuery

X Title: [Feature]: CSP-safe worker execution mode (remove the mandatory `'unsafe-eval'`) · Issue #134 · bQuery/bQuery

Description: Pre-flight checklist I searched existing issues and did not find a duplicate request. I explained the problem or use case, not just the desired API. Problem or use case concurrency currently revives worker bodies with new Function(...), ...

Open Graph Description: Pre-flight checklist I searched existing issues and did not find a duplicate request. I explained the problem or use case, not just the desired API. Problem or use case concurrency currently revive...

X Description: Pre-flight checklist I searched existing issues and did not find a duplicate request. I explained the problem or use case, not just the desired API. Problem or use case concurrency currently revive...

Opengraph URL: https://github.com/bQuery/bQuery/issues/134

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[Feature]: CSP-safe worker execution mode (remove the mandatory `'unsafe-eval'`)","articleBody":"**Pre-flight checklist**\n- [x] I searched existing issues and did not find a duplicate request.\n- [x] I explained the problem or use case, not just the desired API.\n\n**Problem or use case**\n`concurrency` currently revives worker bodies with `new Function(...)`, which forces applications to allow `'unsafe-eval'` in their Content-Security-Policy (plus `worker-src blob:`). This is a non-starter for security-conscious deployments and is self-contradictory in a framework that ships a security module and markets \"secure by default.\" It is the primary blocker to `concurrency` leaving Experimental (#133).\n\n**Proposed solution**\nProvide a default execution mode that does not require `'unsafe-eval'` — for example, dispatching to pre-registered module workers addressed by URL (static `Worker(new URL(...))`) and passing only serializable payloads, rather than serializing function bodies for eval-based revival. Keep the current dynamic mode available as an explicit opt-in for users who accept the CSP trade-off, but make the safe mode the documented default so the out-of-the-box posture is CSP-clean.\n\n**Possible API or UX shape**\n```ts\nimport { createPool, defineWorker } from \"@bquery/bquery/concurrency\";\n\n// Registered module worker — no eval, CSP-clean.\nconst heavy = defineWorker(new URL(\"./heavy.worker.ts\", import.meta.url));\n\nconst pool = createPool({ mode: \"module\" }); // \"module\" (default) | \"dynamic\" (opt-in, needs unsafe-eval)\nconst result = await pool.run(heavy, payload);\n```\n\n**Alternatives considered**\nDocumenting the CSP requirement and leaving it as-is — unacceptable for a security-first framework and an adoption blocker. Dropping dynamic function workers entirely — too disruptive for existing users; keeping them as an explicit opt-in preserves flexibility while fixing the default.\n\n**Relevant area**\n`concurrency`\n\n**Additional context**\nAlso relevant to `security`. `createSharedBuffer()`'s `crossOriginIsolated` requirement is inherent to `SharedArrayBuffer` and can stay documented as-is; this ticket is specifically about removing the *eval* requirement, which is bQuery's own implementation choice rather than a platform constraint.\n","author":{"url":"https://github.com/JosunLP","@type":"Person","name":"JosunLP"},"datePublished":"2026-06-26T21:25:15.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/134/bQuery/issues/134"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:e03f91a3-aa29-26ad-cb94-97f62a3694be
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idD828:9E060:5BD407:837EE8:6A4E3543
html-safe-nonce98f21e802646bc6b799f99fcae612877a9ce6ddb19c733bbaf142fb484550b02
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEODI4OjlFMDYwOjVCRDQwNzo4MzdFRTg6NkE0RTM1NDMiLCJ2aXNpdG9yX2lkIjoiNzYzOTkzNDk2OTQ2OTM1MTIzNSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmaca8b83bac32c21f806b6a7e5f2110bbe5ae28622c8a42b5ee0ed433c58f19facc
hovercard-subject-tagissue:4755237296
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/bQuery/bQuery/134/issue_layout
twitter:imagehttps://opengraph.githubassets.com/aca6687c3d1f073604c6254e1035017f9a49df64df8709aecd76fc8e4ce84cb6/bQuery/bQuery/issues/134
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/aca6687c3d1f073604c6254e1035017f9a49df64df8709aecd76fc8e4ce84cb6/bQuery/bQuery/issues/134
og:image:altPre-flight checklist I searched existing issues and did not find a duplicate request. I explained the problem or use case, not just the desired API. Problem or use case concurrency currently revive...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameJosunLP
hostnamegithub.com
expected-hostnamegithub.com
None030096ee0db095447bfe77409d33bfac127ca7128299c58deef27c52eaa1b1f0
turbo-cache-controlno-preview
go-importgithub.com/bQuery/bQuery git https://github.com/bQuery/bQuery.git
octolytics-dimension-user_id256381806
octolytics-dimension-user_loginbQuery
octolytics-dimension-repository_id1139284244
octolytics-dimension-repository_nwobQuery/bQuery
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id1139284244
octolytics-dimension-repository_network_root_nwobQuery/bQuery
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
release42a6d378d7587a44c93aca255096cd66b7c8eb2d
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/bQuery/bQuery/issues/134#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FbQuery%2FbQuery%2Fissues%2F134
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
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
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://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/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FbQuery%2FbQuery%2Fissues%2F134
Sign up https://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=bQuery%2FbQuery
Reloadhttps://github.com/bQuery/bQuery/issues/134
Reloadhttps://github.com/bQuery/bQuery/issues/134
Reloadhttps://github.com/bQuery/bQuery/issues/134
Please reload this pagehttps://github.com/bQuery/bQuery/issues/134
bQuery https://github.com/bQuery
bQueryhttps://github.com/bQuery/bQuery
Please reload this pagehttps://github.com/bQuery/bQuery/issues/134
Notifications https://github.com/login?return_to=%2FbQuery%2FbQuery
Fork 0 https://github.com/login?return_to=%2FbQuery%2FbQuery
Star 1 https://github.com/login?return_to=%2FbQuery%2FbQuery
Code https://github.com/bQuery/bQuery
Issues 0 https://github.com/bQuery/bQuery/issues
Pull requests 0 https://github.com/bQuery/bQuery/pulls
Actions https://github.com/bQuery/bQuery/actions
Security and quality 0 https://github.com/bQuery/bQuery/security
Insights https://github.com/bQuery/bQuery/pulse
Code https://github.com/bQuery/bQuery
Issues https://github.com/bQuery/bQuery/issues
Pull requests https://github.com/bQuery/bQuery/pulls
Actions https://github.com/bQuery/bQuery/actions
Security and quality https://github.com/bQuery/bQuery/security
Insights https://github.com/bQuery/bQuery/pulse
[Feature]: CSP-safe worker execution mode (remove the mandatory 'unsafe-eval')https://github.com/bQuery/bQuery/issues/134#top
concurrencyhttps://github.com/bQuery/bQuery/issues?q=state%3Aopen%20label%3A%22concurrency%22
https://github.com/JosunLP
JosunLPhttps://github.com/JosunLP
on Jun 26, 2026https://github.com/bQuery/bQuery/issues/134#issue-4755237296
#133https://github.com/bQuery/bQuery/issues/133
concurrencyhttps://github.com/bQuery/bQuery/issues?q=state%3Aopen%20label%3A%22concurrency%22
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.