René's URL Explorer Experiment


Title: feat: Allow injecting ca cert in project · Issue #1210 · triggerdotdev/trigger.dev · GitHub

Open Graph Title: feat: Allow injecting ca cert in project · Issue #1210 · triggerdotdev/trigger.dev

X Title: feat: Allow injecting ca cert in project · Issue #1210 · triggerdotdev/trigger.dev

Description: Is your feature request related to a problem? Please describe. I was playing with the self-hosted deployment in an isolated environment with a private registry. Found out that it fails to even build due to private certification authority...

Open Graph Description: Is your feature request related to a problem? Please describe. I was playing with the self-hosted deployment in an isolated environment with a private registry. Found out that it fails to even buil...

X Description: Is your feature request related to a problem? Please describe. I was playing with the self-hosted deployment in an isolated environment with a private registry. Found out that it fails to even buil...

Opengraph URL: https://github.com/triggerdotdev/trigger.dev/issues/1210

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"feat: Allow injecting ca cert in project","articleBody":"### Is your feature request related to a problem? Please describe.\r\n\r\nI was playing with the self-hosted deployment in an isolated environment with a private registry. Found out that it fails to even build due to private certification authority. \r\n\r\nBuild works without problem but can not be run as the entrypoint tries to connect to self hosted trigger.dev api which is secured by self signed/private cert chain.\r\n\r\nAllowing to inject private root cert which will allow securely interacting with the internal services would be helpful.\r\n\r\n### Describe the solution you'd like to see\r\n\r\nA config option to include a ca file which would then be added to `NODE_EXTRA_CA_CERTS=/app/ca.crt` environment variable during docker build and worker initialization.\r\n\r\n### Describe alternate solutions\r\n\r\nAllow replacing `Containerfile.prod` along with build/runtime variable using config instead of through the project setting. project settings can not even be fetched in this scenario\r\n\r\n### Additional information\r\n\r\nFor others who want to be able to do this in current scenario (tested beta-48), do this\r\n\r\n1. install `trigger.dev@beta` as dev dependency instead of running from npx, \r\n\r\n2. add `ca.crt` file in your project and update config `additionalFiles: [\"./ca.crt\"]` to copy this.\r\n\r\n3. in file `node_modules\\trigger.dev\\dist\\Containerfile.prod` update the section for ENV with following\r\n```yaml\r\nENV TRIGGER_PROJECT_ID=${TRIGGER_PROJECT_ID} \\\r\n    # ... ....\r\n    NODE_ENV=production \\\r\n    NODE_EXTRA_CA_CERTS=/app/lib/ca.crt # this line\r\n```\r\n\r\n4. Update `node_modules\\trigger.dev\\dist\\workers\\prod\\entry-point.js`, update function `gatherProcessEnv` at the very end of file like this\r\n```js\r\nfunction gatherProcessEnv() {\r\n  const env = {\r\n\r\n    NODE_ENV: process.env.NODE_ENV ?? \"production\",\r\n// ... other config\r\n    NODE_EXTRA_CA_CERTS: process.env.NODE_EXTRA_CA_CERTS, //// THIS LINE\r\n  };\r\n  return Object.fromEntries(Object.entries(env).filter(([key, value]) => value !== void 0));\r\n}\r\n```\r\n\r\nstep 3 and 4 needs to be done inside `node_modules`, this can be patched with `patch-packages` or `yarn patch`.  caveat is that as of writing this issue, the library is getting updated almost every day.\r\n\r\nI can definitely create a pull request over next few days which should fix this if acceptable.","author":{"url":"https://github.com/gautamsi","@type":"Person","name":"gautamsi"},"datePublished":"2024-07-09T22:21:49Z","url":"https://github.com/triggerdotdev/trigger.dev/issues/1210"}

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:c0f730e6-1451-d056-3bdb-9330a45c4c53
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id917A:1C3CF5:3A8E6E:575EE1:6AFAE238
html-safe-nonced9ece33b33d7d28486ed7db4be7161952b1e1f8f377ae01481e063b3cb6dccfc
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MTdBOjFDM0NGNTozQThFNkU6NTc1RUUxOjZBRkFFMjM4IiwidmlzaXRvcl9pZCI6IjM3NTY4NzcyMzI1MzE2MjU1MiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacd57cbd32035c93ea70ab7acf918ddae33eae2ee5e7b8785561eeab0151057612
hovercard-subject-tagissue:2399325954
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/triggerdotdev/trigger.dev/1210/issue_layout
twitter:imagehttps://opengraph.githubassets.com/3d0f91d8a76823de459379ae39a386c2a36118d2bcc2e1bd89377eb85e079a3c/triggerdotdev/trigger.dev/issues/1210
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/3d0f91d8a76823de459379ae39a386c2a36118d2bcc2e1bd89377eb85e079a3c/triggerdotdev/trigger.dev/issues/1210
og:image:altIs your feature request related to a problem? Please describe. I was playing with the self-hosted deployment in an isolated environment with a private registry. Found out that it fails to even buil...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamegautamsi
hostnamegithub.com
expected-hostnamegithub.com
None9d9bd51a568909a83d1abb9d6f74d68f0c87ca85fe3a56d3f5d70d8b89add9f2
turbo-cache-controlno-preview
go-importgithub.com/triggerdotdev/trigger.dev git https://github.com/triggerdotdev/trigger.dev.git
octolytics-dimension-user_id95297378
octolytics-dimension-user_logintriggerdotdev
octolytics-dimension-repository_id572570113
octolytics-dimension-repository_nwotriggerdotdev/trigger.dev
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id572570113
octolytics-dimension-repository_network_root_nwotriggerdotdev/trigger.dev
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
release4a7ae932999cc6d511008dbf980ff9efad2a31f7
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/triggerdotdev/trigger.dev/issues/1210#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Ftriggerdotdev%2Ftrigger.dev%2Fissues%2F1210
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%2Ftriggerdotdev%2Ftrigger.dev%2Fissues%2F1210
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=triggerdotdev%2Ftrigger.dev
Reloadhttps://github.com/triggerdotdev/trigger.dev/issues/1210
Reloadhttps://github.com/triggerdotdev/trigger.dev/issues/1210
Reloadhttps://github.com/triggerdotdev/trigger.dev/issues/1210
triggerdotdevhttps://github.com/triggerdotdev
trigger.devhttps://github.com/triggerdotdev/trigger.dev
Codehttps://github.com/triggerdotdev/trigger.dev
Issues203 (203)https://github.com/triggerdotdev/trigger.dev/issues
Pull requests66 (66)https://github.com/triggerdotdev/trigger.dev/pulls
Discussionshttps://github.com/triggerdotdev/trigger.dev/discussions
Actionshttps://github.com/triggerdotdev/trigger.dev/actions
Projectshttps://github.com/triggerdotdev/trigger.dev/projects
Security and quality39 (39)https://github.com/triggerdotdev/trigger.dev/security
Insightshttps://github.com/triggerdotdev/trigger.dev/pulse
https://github.com/triggerdotdev/trigger.dev
New issuehttps://github.com/login?return_to=https://github.com/triggerdotdev/trigger.dev/issues/1210
New issuehttps://github.com/login?return_to=https://github.com/triggerdotdev/trigger.dev/issues/1210
#1214https://github.com/triggerdotdev/trigger.dev/pull/1214
feat: Allow injecting ca cert in projecthttps://github.com/triggerdotdev/trigger.dev/issues/1210#top
#1214https://github.com/triggerdotdev/trigger.dev/pull/1214
https://github.com/gautamsi
gautamsihttps://github.com/gautamsi
on Jul 9, 2024https://github.com/triggerdotdev/trigger.dev/issues/1210#issue-2399325954
https://github.com/nicktrn
nicktrnhttps://github.com/nicktrn
on Jul 10, 2024https://github.com/triggerdotdev/trigger.dev/issues/1210#issuecomment-2220035694
@gautamsihttps://github.com/gautamsi
https://github.com/gautamsi
gautamsihttps://github.com/gautamsi
on Jul 10, 2024https://github.com/triggerdotdev/trigger.dev/issues/1210#issuecomment-2220607140
@nicktrnhttps://github.com/nicktrn
https://github.com/nicktrn
nicktrnhttps://github.com/nicktrn
on Jul 10, 2024https://github.com/triggerdotdev/trigger.dev/issues/1210#issuecomment-2220940791
https://github.com/gautamsi
gautamsihttps://github.com/gautamsi
on Jul 13, 2024https://github.com/triggerdotdev/trigger.dev/issues/1210#issuecomment-2226783581
@nicktrnhttps://github.com/nicktrn
nicktrnhttps://github.com/nicktrn
on Jul 17, 2024https://github.com/triggerdotdev/trigger.dev/issues/1210#event-13532423308
Merge branch 'main' into fixes-triggerdotdev#1210https://github.com/gautamsi/trigger.dev/commit/e69a20f9209d02bb289fe6c73138dbaecc7072ee
triggerdotdev#1210https://github.com/triggerdotdev/trigger.dev/issues/1210
e69a20fhttps://github.com/gautamsi/trigger.dev/commit/e69a20f9209d02bb289fe6c73138dbaecc7072ee
nicktrnhttps://github.com/nicktrn
completedhttps://github.com/triggerdotdev/trigger.dev/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#1214https://github.com/triggerdotdev/trigger.dev/pull/1214
on Jul 17, 2024https://github.com/triggerdotdev/trigger.dev/issues/1210#event-13532504457
Sign up for freehttps://github.com/signup?return_to=https://github.com/triggerdotdev/trigger.dev/issues/1210
Sign in to commenthttps://github.com/login?return_to=https://github.com/triggerdotdev/trigger.dev/issues/1210
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.