René's URL Explorer Experiment


Title: trigger deploy fails on custom DEPLOY_BASE_IMAGES since 4.7.6: emSign distrust step assumes a root Debian base · Issue #5054 · triggerdotdev/trigger.dev · GitHub

Open Graph Title: trigger deploy fails on custom DEPLOY_BASE_IMAGES since 4.7.6: emSign distrust step assumes a root Debian base · Issue #5054 · triggerdotdev/trigger.dev

X Title: trigger deploy fails on custom DEPLOY_BASE_IMAGES since 4.7.6: emSign distrust step assumes a root Debian base · Issue #5054 · triggerdotdev/trigger.dev

Description: Provide environment information Self-hosted Trigger.dev v4.7.7 (webapp, supervisor, Helm chart 4.7.7) CLI trigger.dev 4.7.7, runtime: "node-26" Webapp configured with custom base images (#5005): DEPLOY_BASE_IMAGES=node-26=cgr.dev/chaingu...

Open Graph Description: Provide environment information Self-hosted Trigger.dev v4.7.7 (webapp, supervisor, Helm chart 4.7.7) CLI trigger.dev 4.7.7, runtime: "node-26" Webapp configured with custom base images (#5005): DE...

X Description: Provide environment information Self-hosted Trigger.dev v4.7.7 (webapp, supervisor, Helm chart 4.7.7) CLI trigger.dev 4.7.7, runtime: "node-26" Webapp configured with custom base images (...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"trigger deploy fails on custom DEPLOY_BASE_IMAGES since 4.7.6: emSign distrust step assumes a root Debian base","articleBody":"### Provide environment information\n\n- Self-hosted Trigger.dev v4.7.7 (webapp, supervisor, Helm chart 4.7.7)\n- CLI `trigger.dev` 4.7.7, `runtime: \"node-26\"`\n- Webapp configured with custom base images (#5005):\n  - `DEPLOY_BASE_IMAGES=node-26=cgr.dev/chainguard/node@sha256:…`\n  - `DEPLOY_BUILD_BASE_IMAGES=node-26=cgr.dev/chainguard/node:latest-dev@sha256:…`\n- No `image.instructions` / `aptGet` extensions in `trigger.config.ts`\n\n### Describe the bug\n\nSince 4.7.6, every `trigger deploy` fails building the task image when the webapp supplies custom base images. 4.7.4 and 4.7.5 deploy the same project fine.\n\n```\n#14 [base 2/3] RUN mkdir -p /usr/local/share/ca-certificates/emsign-block &&   printf '%s\\n' …\n#14 0.229 mkdir: can't create directory '/usr/local/share/': Permission denied\nERROR: process \"/bin/sh -c mkdir -p /usr/local/share/ca-certificates/emsign-block && …\" did not complete successfully: exit code: 1\n```\n\n`generateContainerfile` inserts `distrustCompromisedRoots` into the `base` stage and into the `build` stage when a build base is set ([buildImage.ts#L748-L762](https://github.com/triggerdotdev/trigger.dev/blob/v4.7.7/packages/cli-v3/src/deploy/buildImage.ts#L748-L762), used at [L844](https://github.com/triggerdotdev/trigger.dev/blob/v4.7.7/packages/cli-v3/src/deploy/buildImage.ts#L844), [L868](https://github.com/triggerdotdev/trigger.dev/blob/v4.7.7/packages/cli-v3/src/deploy/buildImage.ts#L868) and [L971](https://github.com/triggerdotdev/trigger.dev/blob/v4.7.7/packages/cli-v3/src/deploy/buildImage.ts#L971)). The step runs before the template's `USER node` and assumes the `triggerdotdev/node` Debian base:\n\n| The step needs | A typical custom base (e.g. `cgr.dev/chainguard/node`) |\n|---|---|\n| to run as root | defaults to uid 65532 (`node`) |\n| `/usr/local/share/ca-certificates/` | no `/usr/local/share` |\n| `/etc/ca-certificates.conf` to `sed` | absent |\n| `update-ca-certificates` | absent (the image ships only the finished bundle) |\n\nThe step has no opt-out, so a self-hosted install that requires custom bases cannot deploy at all on 4.7.6 or 4.7.7. `main` has the same code.\n\n### Reproduction repo\n\nNone needed. The failing instruction reproduces on its own:\n\n```dockerfile\nFROM cgr.dev/chainguard/node:latest\nRUN mkdir -p /usr/local/share/ca-certificates/emsign-block\n```\n\n```\nmkdir: can't create directory '/usr/local/share/': Permission denied\n```\n\n### To reproduce\n\n1. Self-host v4.7.6+ with `DEPLOY_BASE_IMAGES` / `DEPLOY_BUILD_BASE_IMAGES` pointing at a non-root image without Debian's `ca-certificates` tooling, e.g. `cgr.dev/chainguard/node` and `:latest-dev`.\n2. Run `trigger deploy` with CLI 4.7.6 or 4.7.7.\n3. The image build fails at `[base 2/3]` (and `[build 2/…]`) as above.\n\n### Suggested fix\n\nSkip the step for stages built on a server-supplied base, and leave the base image's trust store to whoever supplies it. We run this as a local `yarn patch`:\n\n```diff\n+const distrustUnlessServerBase = (serverBase) => (serverBase ? \"\" : distrustCompromisedRoots);\n …\n-${distrustCompromisedRoots}`;\n+${distrustUnlessServerBase(options.image?.buildBase)}`;\n …\n-${distrustCompromisedRoots}\n+${distrustUnlessServerBase(options.image?.base)}\n```\n\nOther options, in case you'd rather keep the step on custom bases:\n\n- An explicit opt-out, e.g. a webapp env var or an `image` option.\n- Running the step as `USER root` and skipping it when `/etc/ca-certificates.conf` or `update-ca-certificates` is missing. This still leaves distroless or apk-based bases unprotected, so it seems weaker than documenting that a custom base owns its trust store.\n\nHappy to open a PR for whichever you prefer.\n\n### Additional information\n\n- Custom bases aren't necessarily exposed by skipping the step. On `cgr.dev/chainguard/node` (Node 26.12.1, `ca-certificates-bundle` 20260909-r3), neither `tls.rootCertificates` nor the system store contains emSign ECC Root CA - G3, ECC Root CA - C3 or Root CA - C1.\n- A runtime safeguard that works on any base is `tls.setDefaultCACertificates(getCACertificates('default').filter(…))`, dropping those three roots at worker start. We run that in our worker init alongside the patch.\n- Introduced by `dac3b033eb` and `1fb4c7608e` (shipped in 4.7.6), which postdate custom base images in #5005.\n","author":{"url":"https://github.com/vlakshmanan-silkline","@type":"Person","name":"vlakshmanan-silkline"},"datePublished":"2026-10-22T22:03:15Z","url":"https://github.com/triggerdotdev/trigger.dev/issues/5054"}

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:1495e8a2-4f6e-1ce5-ea40-8ee1d556fca5
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idB476:3166AC:5BB3E7C:7B13E0C:6AFAE23E
html-safe-nonceea3f3cb362389e43e70da2d52d3e7748294a779366407b5e35f1597dc2d512d9
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNDc2OjMxNjZBQzo1QkIzRTdDOjdCMTNFMEM6NkFGQUUyM0UiLCJ2aXNpdG9yX2lkIjoiNTc0MjI4NTkyNjk1NjcyMDcwMiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacce44e0993a539cfd4c3d43ea8db74daad8dba5f14cba96a089a3703816209b29
hovercard-subject-tagissue:5988164898
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/5054/issue_layout
twitter:imagehttps://opengraph.githubassets.com/a693666be700aefae7a1b52ccad6189b7c0c6a8b917c4371015acb8fea1ecb58/triggerdotdev/trigger.dev/issues/5054
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/a693666be700aefae7a1b52ccad6189b7c0c6a8b917c4371015acb8fea1ecb58/triggerdotdev/trigger.dev/issues/5054
og:image:altProvide environment information Self-hosted Trigger.dev v4.7.7 (webapp, supervisor, Helm chart 4.7.7) CLI trigger.dev 4.7.7, runtime: "node-26" Webapp configured with custom base images (#5005): DE...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamevlakshmanan-silkline
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-targetcanary-2
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/triggerdotdev/trigger.dev/issues/5054#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Ftriggerdotdev%2Ftrigger.dev%2Fissues%2F5054
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%2F5054
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/5054
Reloadhttps://github.com/triggerdotdev/trigger.dev/issues/5054
Reloadhttps://github.com/triggerdotdev/trigger.dev/issues/5054
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/5054
New issuehttps://github.com/login?return_to=https://github.com/triggerdotdev/trigger.dev/issues/5054
trigger deploy fails on custom DEPLOY_BASE_IMAGES since 4.7.6: emSign distrust step assumes a root Debian basehttps://github.com/triggerdotdev/trigger.dev/issues/5054#top
https://github.com/vlakshmanan-silkline
vlakshmanan-silklinehttps://github.com/vlakshmanan-silkline
on Oct 22, 2026https://github.com/triggerdotdev/trigger.dev/issues/5054#issue-5988164898
feat(webapp,cli): let self-hosted instances require deploy base images #5005https://github.com/triggerdotdev/trigger.dev/pull/5005
buildImage.ts#L748-L762https://github.com/triggerdotdev/trigger.dev/blob/v4.7.7/packages/cli-v3/src/deploy/buildImage.ts#L748-L762
L844https://github.com/triggerdotdev/trigger.dev/blob/v4.7.7/packages/cli-v3/src/deploy/buildImage.ts#L844
L868https://github.com/triggerdotdev/trigger.dev/blob/v4.7.7/packages/cli-v3/src/deploy/buildImage.ts#L868
L971https://github.com/triggerdotdev/trigger.dev/blob/v4.7.7/packages/cli-v3/src/deploy/buildImage.ts#L971
feat(webapp,cli): let self-hosted instances require deploy base images #5005https://github.com/triggerdotdev/trigger.dev/pull/5005
trigger-dev-repo-opshttps://github.com/apps/trigger-dev-repo-ops
on Oct 23, 2026https://github.com/triggerdotdev/trigger.dev/issues/5054#event-34057467280
fix(cli): keep custom base images' own trust storehttps://github.com/triggerdotdev/trigger.dev/commit/b5ed66b746fd8c4d073c91c67c33c6dde4564498
b5ed66bhttps://github.com/triggerdotdev/trigger.dev/commit/b5ed66b746fd8c4d073c91c67c33c6dde4564498
https://github.com/nicktrn
nicktrnhttps://github.com/nicktrn
on Oct 23, 2026https://github.com/triggerdotdev/trigger.dev/issues/5054#issuecomment-6367306675
https://github.com/triggerdotdev/trigger.dev/releases/tag/v4.8.1https://github.com/triggerdotdev/trigger.dev/releases/tag/v4.8.1
nicktrnhttps://github.com/nicktrn
completedhttps://github.com/triggerdotdev/trigger.dev/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Oct 23, 2026https://github.com/triggerdotdev/trigger.dev/issues/5054#event-34060714657
Sign up for freehttps://github.com/signup?return_to=https://github.com/triggerdotdev/trigger.dev/issues/5054
Sign in to commenthttps://github.com/login?return_to=https://github.com/triggerdotdev/trigger.dev/issues/5054
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.