Trust and the Build Baseline

Every HTTPS connection from the build goes through the relay, which intercepts it with a certificate authority (CA) generated for that build. Tools in the build have to trust that CA. warden-io initialize sets this up itself, inside the build environment, before your build script runs. The only input it needs from the host is the CA, which it fetches from the relay. See How It Works for where this sits in a build.

System trust

initialize installs the CA as a system root, in one of two modes. The orchestrator chooses the mode and sends it in the build's bootstrap config (GET http://artifacts/bootstrap), which the relay records in the ledger:

ModeGuestsEffect
exclusiveLinux (every driver)The warden CA becomes the only trusted root: /etc/ssl/certs holds just it, and other known system bundles (/etc/pki/..., /etc/ssl/cert.pem) are replaced. A ca-certificates update hook restores this if the build reinstalls ca-certificates.
appendWindows, macOSThe warden CA is added to the existing roots (the Windows Root store, the macOS System keychain and bundle).

Exclusive trust loses nothing. Every TLS connection the build makes is intercepted by the relay, so no other root could ever validate a real connection. It also makes it obvious when a tool ignores the system store: that tool fails loudly instead of quietly trusting something else.

The baseline

initialize applies the baseline to every build, on every driver. It is not configurable. Each part is a small file or an environment variable, harmless when the tool it serves is absent.

WhatWhereFor
Java truststore (JKS) with the warden CA/etc/warden/certs.jks (%ProgramData%\warden\certs.jks on Windows)JVM tools
MAVEN_OPTS, GRADLE_OPTS-Djavax.net.ssl.trustStore=<that file>Maven, Gradle
Bazel system rc/etc/bazel.bazelrcBazel's host JVM
SSL_CERT_FILE, CURL_CA_BUNDLEthe system CA bundleOpenSSL consumers, Ruby, Erlang, PHP composer, libcurl
REQUESTS_CA_BUNDLE, PIP_CERTthe system CA bundlepip, poetry, conda, conan
NODE_EXTRA_CA_CERTSthe system CA bundlenpm, yarn, pnpm, bun
CARGO_HTTP_CAINFOthe system CA bundlecargo
NIX_SSL_CERT_FILE, HEX_CACERTS_PATHthe system CA bundlenix, hex
UV_NATIVE_TLS=1uv
SOURCE_DATE_EPOCH=0reproducible timestamps

The baseline variables are set on the build script's process, so an ENV line in your Containerfile (or an export in your script) overrides them. If you set MAVEN_OPTS yourself, include the truststore flags or Maven will not trust the relay.

The JKS file is written by warden-io directly; no keytool is needed in the image. Its bytes match what keytool -importcert -storetype JKS writes, and the same CA always produces the same file.

Package manager compatibility

ManagerTrusts the relay through
apt, apk, dnf, go modules, nuget/.NETsystem trust
gem/bundler, composerSSL_CERT_FILE, CURL_CA_BUNDLE
npm, yarn, pnpmNODE_EXTRA_CA_CERTS
pip, poetry, conda, conanPIP_CERT, REQUESTS_CA_BUNDLE
uvUV_NATIVE_TLS
cargosystem trust, CARGO_HTTP_CAINFO
nix, hex/mixNIX_SSL_CERT_FILE, HEX_CACERTS_PATH
maven, gradleMAVEN_OPTS/GRADLE_OPTS and the JKS
bazel/etc/bazel.bazelrc and the JKS

Adding support for another tool

Support for a tool is added to the baseline in warden-io (cmd/warden-io/baseline.go), so it ships with the executor and reaches every driver. Anything specific to one build belongs in that build's Containerfile. There is no plugin mechanism for setup scripts: the build environment runs no setup code that warden-io did not ship with (BOOT-05 in docs/development/bootstrap.md).