René's URL Explorer Experiment


Title: Extra CA bundle in builds and containers; tests for secrets on tmpfs (Spinbox integration) · Issue #50 · spin-stack/devcontainer-cli · GitHub

Open Graph Title: Extra CA bundle in builds and containers; tests for secrets on tmpfs (Spinbox integration) · Issue #50 · spin-stack/devcontainer-cli

X Title: Extra CA bundle in builds and containers; tests for secrets on tmpfs (Spinbox integration) · Issue #50 · spin-stack/devcontainer-cli

Description: Spinbox is adding devcontainer support and a new secrets model (installation → team → user scopes). Builds and containers run inside a workspace VM whose outbound traffic goes through an egress proxy. For hosts where a rule injects a cre...

Open Graph Description: Spinbox is adding devcontainer support and a new secrets model (installation → team → user scopes). Builds and containers run inside a workspace VM whose outbound traffic goes through an egress pro...

X Description: Spinbox is adding devcontainer support and a new secrets model (installation → team → user scopes). Builds and containers run inside a workspace VM whose outbound traffic goes through an egress pro...

Opengraph URL: https://github.com/spin-stack/devcontainer-cli/issues/50

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Extra CA bundle in builds and containers; tests for secrets on tmpfs (Spinbox integration)","articleBody":"Spinbox is adding devcontainer support and a new secrets model (installation → team → user scopes). Builds and containers run inside a workspace VM whose outbound traffic goes through an egress proxy. For hosts where a rule injects a credential, the proxy terminates TLS with its own CA; every other host is relayed as bytes. Spinbox will call this CLI with:\n\n- `--secrets-file` pointing at a JSON file on tmpfs, holding the workspace's resolved `env` secrets;\n- `DOCKER_CONFIG` pointing at a tmpfs directory when a registry credential is delivered as a file;\n- `TMPDIR` on tmpfs.\n\nNothing secret may reach the workspace disk, because a prebuild's disk becomes a snapshot shared with a team.\n\nMost of this already works. One feature is missing, and three behaviours need tests so they don't regress.\n\n## 1. Trust an extra CA bundle in builds and in the container (missing)\n\nA `RUN` step, or a Feature's `install.sh`, that calls a host the proxy injects for fails TLS: the build container trusts only the image's own CAs. The same is true for processes in the running container.\n\nProposed: `--ca-bundle \u003cfile>` on `build`, `up` and `run-user-commands` (name open). The file is a full PEM bundle (system CAs + the proxy's CA), so tools that replace the system pool keep working.\n\n- **Feature install RUNs** (the CLI writes these, in `imagemeta/extend.go`): mount the bundle as a BuildKit secret, as is already done for `--secrets-file` ids, e.g. `--mount=type=secret,id=devcontainer-ca-bundle,target=/run/devcontainer/ca-bundle.crt`, and set for that RUN only: `SSL_CERT_FILE`, `NODE_EXTRA_CA_CERTS`, `REQUESTS_CA_BUNDLE`, `CURL_CA_BUNDLE`, `GIT_SSL_CAINFO`.\n- **User Dockerfile**: the CLI cannot change its RUNs. Pass the same secret id to buildx so a Dockerfile can opt in with `RUN --mount=type=secret,id=devcontainer-ca-bundle,target=...`, and document it.\n- **Running container** (`up`): bind-mount the bundle read-only at the same path and set the same variables in the container's environment, so lifecycle hooks and the user's shells trust it.\n- Mount it, never `COPY` it: the image must be the same with and without a bundle, so the cache key and the prebuilt image don't depend on the proxy. The CA is public, so the reason is reproducibility, not secrecy.\n- Without buildx: a warning, as `buildxSecrets` does today.\n\nTests: a Feature RUN and an opted-in Dockerfile RUN reach an HTTPS server signed by a test CA, and fail without the flag. The built image's layers and config don't contain the bundle. In the container, `curl` and `node` trust the server.\n\n## 2. `DOCKER_CONFIG` on tmpfs (works; needs a test)\n\n`oci/auth.go:76` and `docker/context.go:51` already honour `DOCKER_CONFIG`. Add a test that registry resolution and `bridgeBuildAuth` read credentials from a `DOCKER_CONFIG` directory outside `$HOME`, where `config.json` is a symlink to another directory. Spinbox serves it from a FUSE or tmpfs mount, so it never puts a file at `~/.docker/config.json`; its prebuild scan flags that path whatever it contains.\n\n## 3. `--secrets-file` on `up` (works; needs a test)\n\n`up` already passes the file to the Dockerfile and Feature builds (`up.go:1408`) and to lifecycle hooks (`up.go:1216`). Add one end-to-end test that `up --secrets-file` gives both a `RUN --mount=type=secret,id=K` and a `postCreateCommand` the value, and that the value is in no image layer, no image config (`docker history`) and no container label.\n\n## 4. Temporary build auth follows `TMPDIR` (works; document it)\n\n`ResolveBuildAuth` writes the resolved registry credentials to `os.MkdirTemp(\"\")` and removes them after the build. Say in the docs that it uses `TMPDIR`, so a caller that must keep credentials off disk knows to point `TMPDIR` at tmpfs.\n\nSpinbox side, for context: the plan covers secret scopes, delivery through tmpfs and FUSE, and prebuilds. It ships alongside devcontainer support.\n","author":{"url":"https://github.com/aledbf","@type":"Person","name":"aledbf"},"datePublished":"2026-11-07T16:53:19Z","url":"https://github.com/spin-stack/devcontainer-cli/issues/50"}

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:b917ae02-49e0-af78-f242-bc6f675e31f0
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id9FDC:5C05F:5320B:75BBF:6AF6A83D
html-safe-nonce6369fbbc9f14a6b50c154fc1c1c8269ee25cadca5940c687c86788f2607a77c6
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RkRDOjVDMDVGOjUzMjBCOjc1QkJGOjZBRjZBODNEIiwidmlzaXRvcl9pZCI6IjY4MDk0MjI0MDkwODI3NzU2MTMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacc59c838cc3750827a653e90841c5d315e3e490024b6f226aaf9efc3f4d2bf6cb
hovercard-subject-tagissue:6261771123
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/spin-stack/devcontainer-cli/50/issue_layout
twitter:imagehttps://opengraph.githubassets.com/3c076171c9d1ce47f74a6fe9b4924a71d2ea441335a1f43759a8dc0fdf09815d/spin-stack/devcontainer-cli/issues/50
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/3c076171c9d1ce47f74a6fe9b4924a71d2ea441335a1f43759a8dc0fdf09815d/spin-stack/devcontainer-cli/issues/50
og:image:altSpinbox is adding devcontainer support and a new secrets model (installation → team → user scopes). Builds and containers run inside a workspace VM whose outbound traffic goes through an egress pro...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamealedbf
hostnamegithub.com
expected-hostnamegithub.com
Nonef8f073848f247e43ef1ca770a5c958ec98a4831f252a2ae7c5728af8a418b119
turbo-cache-controlno-preview
go-importgithub.com/spin-stack/devcontainer-cli git https://github.com/spin-stack/devcontainer-cli.git
octolytics-dimension-user_id253817182
octolytics-dimension-user_loginspin-stack
octolytics-dimension-repository_id1297553254
octolytics-dimension-repository_nwospin-stack/devcontainer-cli
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id1297553254
octolytics-dimension-repository_network_root_nwospin-stack/devcontainer-cli
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
released72fec342cb914fb2d289890ef4b2f15d229fe44
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/spin-stack/devcontainer-cli/issues/50#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fspin-stack%2Fdevcontainer-cli%2Fissues%2F50
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%2Fspin-stack%2Fdevcontainer-cli%2Fissues%2F50
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=spin-stack%2Fdevcontainer-cli
Reloadhttps://github.com/spin-stack/devcontainer-cli/issues/50
Reloadhttps://github.com/spin-stack/devcontainer-cli/issues/50
Reloadhttps://github.com/spin-stack/devcontainer-cli/issues/50
spin-stackhttps://github.com/spin-stack
devcontainer-clihttps://github.com/spin-stack/devcontainer-cli
Codehttps://github.com/spin-stack/devcontainer-cli
Issueshttps://github.com/spin-stack/devcontainer-cli/issues
Pull requests3 (3)https://github.com/spin-stack/devcontainer-cli/pulls
Actionshttps://github.com/spin-stack/devcontainer-cli/actions
Security and qualityhttps://github.com/spin-stack/devcontainer-cli/security
Insightshttps://github.com/spin-stack/devcontainer-cli/pulse
https://github.com/spin-stack/devcontainer-cli
New issuehttps://github.com/login?return_to=https://github.com/spin-stack/devcontainer-cli/issues/50
New issuehttps://github.com/login?return_to=https://github.com/spin-stack/devcontainer-cli/issues/50
#57https://github.com/spin-stack/devcontainer-cli/pull/57
Extra CA bundle in builds and containers; tests for secrets on tmpfs (Spinbox integration)https://github.com/spin-stack/devcontainer-cli/issues/50#top
#57https://github.com/spin-stack/devcontainer-cli/pull/57
enhancementNew feature or requesthttps://github.com/spin-stack/devcontainer-cli/issues?q=state%3Aopen%20label%3A%22enhancement%22
https://github.com/aledbf
aledbfhttps://github.com/aledbf
on Nov 7, 2026https://github.com/spin-stack/devcontainer-cli/issues/50#issue-6261771123
aledbfhttps://github.com/aledbf
enhancementNew feature or requesthttps://github.com/spin-stack/devcontainer-cli/issues?q=state%3Aopen%20label%3A%22enhancement%22
on Nov 7, 2026https://github.com/spin-stack/devcontainer-cli/issues/50#event-35445412677
aledbfhttps://github.com/aledbf
completedhttps://github.com/spin-stack/devcontainer-cli/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
0eea253https://github.com/spin-stack/devcontainer-cli/commit/0eea2539c545609b4c5456ef0ef729be5af6a5dd
on Nov 12, 2026https://github.com/spin-stack/devcontainer-cli/issues/50#event-35956126977
Sign up for freehttps://github.com/signup?return_to=https://github.com/spin-stack/devcontainer-cli/issues/50
Sign in to commenthttps://github.com/login?return_to=https://github.com/spin-stack/devcontainer-cli/issues/50
enhancementNew feature or requesthttps://github.com/spin-stack/devcontainer-cli/issues?q=state%3Aopen%20label%3A%22enhancement%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.