Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: spin-stack/devcontainer-cli
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: main
Choose a base ref
...
head repository: spin-stack/devcontainer-cli
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: ca-bundle
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 4 commits
  • 17 files changed
  • 2 contributors

Commits on Nov 12, 2026

  1. feat(cli): trust an extra CA bundle in builds and the container

    --ca-bundle <file> on build, up and run-user-commands takes a PEM
    bundle (the system CAs plus a TLS-intercepting proxy's). Every Feature
    install RUN mounts it as the BuildKit secret devcontainer-ca-bundle at
    /run/devcontainer/ca-bundle.crt and runs install.sh with SSL_CERT_FILE,
    NODE_EXTRA_CA_CERTS, REQUESTS_CA_BUNDLE, CURL_CA_BUNDLE and
    GIT_SSL_CAINFO pointing at it, for that RUN only. A user Dockerfile is
    given the same secret id and opts in with RUN --mount. up binds the file
    read-only at the same path and sets the variables in the container's
    environment; run-user-commands sets them for the lifecycle commands and
    refuses a container created without the mount.
    
    The bundle is mounted, never copied: no layer, config or history holds
    it, and its content is outside the cache key, so a rotated CA reuses the
    cache and builds the same layers. Without buildx it is left out of
    builds with a warning; a Compose configuration's build takes no
    secrets, so only its container gets the bundle.
    
    up --secrets-file now reaches the Dockerfile's own RUNs too, as build
    does; it reached only the Features' before. Tests hold a DOCKER_CONFIG
    off $HOME behind a symlink, and the bridged build auth under TMPDIR,
    which the docs now say.
    
    Closes #50
    
    Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
    aledbf and claude committed Nov 12, 2026
    Configuration menu
    Copy the full SHA
    156dd0e View commit details
    Browse the repository at this point in the history
  2. test(cli): say why the CA bundle e2e TLS server has no address

    The server container ran with --rm and its address came from the
    bridge network by name, with docker inspect's stderr discarded: on
    CI the lookup failed with a bare "exit status 1". Keep the container
    until cleanup, read the address from whatever network it is on, and
    report the inspect output, the container's state and its logs.
    
    Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
    aledbf and claude committed Nov 12, 2026
    Configuration menu
    Copy the full SHA
    9e909a2 View commit details
    Browse the repository at this point in the history
  3. test(cli): read the TLS server's container id from stdout alone

    docker run's stderr carries the image pull's progress when the base
    image is not cached, as on CI; combined with stdout it became part of
    the container id, and every later docker call on that id failed.
    
    Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
    aledbf and claude committed Nov 12, 2026
    Configuration menu
    Copy the full SHA
    06d7cd0 View commit details
    Browse the repository at this point in the history
  4. refactor(cli): take --ca-bundle on build and up only

    run-user-commands took a bundle path, checked it held PEM, and then
    used it only as a switch: the variables it set point at the copy up
    bound into the container, never at the file given. up --ca-bundle
    already puts those variables in the container's environment, which the
    lifecycle commands inherit through the user-env probe, so the flag
    added nothing. The flag has not been released, so nothing depends on it.
    
    run-user-commands now rejects --ca-bundle as an unknown flag, and the
    e2e test checks that its postAttachCommand trusts the proxy's CA with
    no flag at all.
    
    Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
    aledbf and claude committed Nov 12, 2026
    Configuration menu
    Copy the full SHA
    74aeab0 View commit details
    Browse the repository at this point in the history
Loading