Through a proxy that cut and stalled connections (measured on the mini,
a two-minute stall), mise's three retries of bun's download each timed
out after 30 s, as mise tried again on the connection that had stalled,
and the tool build failed. shared-tools/build.sh and the host's mise
(miseCmd) now set MISE_HTTP_RETRIES=6, which outlasts such a stall; each
try still ends after 30 s without bytes (mise's http_timeout).
Every tool image's key changes (shared-tools/build.sh).
Co-Authored-By: Claude Opus 5.5 <[email protected]>
mise's raw binary is 147 to 192 MB, its .tar.gz 51 to 63 MB. Both of a
first run's mise downloads now take the archive:
- the host's mise (internal/tools): the .tar.gz checked against its
pinned SHA-256 by fetch.Download as before, into a folder of its own,
then hashed again through the descriptor that mise/bin/mise is taken
out of with archive/tar and compress/gzip, capped at miseCap. One
devvm downloads it at a time (Dirs.MiseDownloadLock,
cache/mise/download.lock, mise_waiting), and another takes what it
kept. Under the lock, a .download-* folder a killed run left is taken
away first (TestHostMise). A failure says its cause
(mise_download_failed's Because) in the run log too.
- base's mise (layers/base.sh): devvm-fetch's .tar.gz, unpacked with tar
in a folder of mktemp's, which every base has (gzip is Essential on
Debian and Ubuntu, BusyBox has it): .tar.xz would need xz, which
--from images may lack.
The pins are the archives' SHA-256s from the release's SHASUMS256.txt,
and scripts/bump.sh reads the .tar.gz lines. TestMisePins still checks
that base.sh's Linux pins are the host's.
Docs: images.md's Versions and overview.md's locks; the release page's
A faster first run; the CHANGELOG's Highlights, a first run that
downloads less with the cloud image's two lines, now highlights too.
Base's key changes (base.sh). Tool images' keys don't: they hash base's
mise version, not its checksum.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
redact.Secret holds a value that lets whoever has it act as the user or
a VM, behind a pointer, so fmt's raw printing of an unexported field
shows only an address. String, GoString and Format print <redacted> for
every verb; MarshalJSON, UnmarshalJSON and MarshalText return
redact.ErrEncode, so a secret is never silently written as a stand-in
(which would lose a login); there's no LogValue. NewSecret ("" is the
zero Secret), Reveal, Empty and TrimSpace are the rest. internal/redact
joins the proxy's standard-library-only depguard group.
Reveal is refused by forbidigo outside tests; each of the 23 call sites
carries a //nolint:forbidigo saying why, and testdata/lint/forbidigo.go
keeps a call the rule must report. The structure test (checkSecrets)
refuses a struct that embeds redact.Secret outside internal/redact and
an interface that declares Reveal() string.
Typed now: proxy.Config.Password (configFile is the wire type, in
Config's order, held to it by TestConfigFile), the server's password,
proxy.Lookup and the cached values, upstream.auth, upstreamPassword,
Upstream.WithPassword's password; backend.NewProxyPassword, ProxyURL,
Confinement.ProxyPassword, BuildProxy.Password; netpolicy.Key and
NetMade.ProxyKey (netMade wire type); settings.CompanyProxy.Password;
secrets.Store.Value, saved, ProxyPassword, Token, Save, save, Get,
SaveKey, Yours.Save, Claude.Env, saveToken, oauthToken; agentlogin
File.Get, SetKey, ClaudeToken, every format's get, setKey and chatGPT,
refresh's refresh token, capture's access, refresh and id tokens, and
the JWT helpers (a login's map stays the wire, through token and
setToken; piKey is piBound); vm.Net.SecretSave, AgentLoginOptions.Key;
ui.UI.Secret. Strings by design: platform.KeychainGet/Set and the
desktop's VNC password.
Tests: TestSecret (unexported and nested fields too), TestConfigFile,
TestV010ProxyConfigs (0.1.0's proxy.json round-trips byte for byte),
TestFixtureStoreGet saves the Linux secret file back byte for byte,
checkV010Logins (login files read, copied and bound without a change),
secretCases, and e2e netNoLeaks, twice in the network section: every
VM's proxy password and the section's values, also as Basic
credentials, in no run log or proxy log, and the passwords in no
ha.stderr.log or serial log. Docs: Contributing's Secrets in the code,
the owners table, the secrets How it works page, design.md's Where
secret values live.
Fixed, found by netNoLeaks: Lima's boot script 07-etc-environment.sh
runs under set -x, so the console logs (serial*.log) kept the VM's
proxy password; redactLog now stars passwords in them as it does in
ha.stderr.log (CHANGELOG, overview, processes and attack-vectors pages).
Co-Authored-By: Claude Opus 5.5 <[email protected]>
devvm's host mise didn't trust the CAs in ~/.config/devvm/ca, so behind a
network that inspects TLS, resolving the shared tools' versions failed with
UnknownIssuer and a message to check the connection.
The host mise and its download now trust the folder's checked CAs: mise gets
them as MISE_EXTRA_CA_CERTS, and on Linux also an SSL_CERT_FILE bundle of the
system's roots plus those CAs (SSL_CERT_DIR only when the user set neither
variable). On macOS, mise's Sigstore client still needs the CA trusted in the
Keychain, as the docs say. A certificate failure now shows tools_untrusted,
pointing at the CA docs.
Refs #1
Co-authored-by: Claude Opus 5.5 <[email protected]>
config.toml's [proxy] covers the places it missed:
- devvm's own requests on this machine (the download of its mise, Ubuntu's
cloud image listing, --from's registries) go through it when the
environment sets no proxy. settings.CompanyProxy.Route is their
transport's proxy: at the first request it looks up the proxy secret,
puts it in each URL that names a user, and routes each request as a VM's
proxy does (proxy.Upstream.WithPassword, proxy.Upstream.Route, reusing
the proxy's NO_PROXY matching). A missing password fails the request
with fetch.ErrProxy, which isn't retried; HostMise shows its message.
- The mise devvm runs on this machine gets HTTPS_PROXY, HTTP_PROXY and
NO_PROXY in its environment (settings.CompanyProxy.Env), with the
password in the URL, as mise takes it nowhere else; never in its
arguments or a file. With the environment's proxy it adds nothing.
- devvm build, rebuild, the remakes' builds and tool builds check the
company proxy and its saved password before anything starts
(build.Builds' checkProxy, tools.Share.Build), through the one check a
new VM and a VM's proxy use: settings.CompanyProxy.Upstream, which
netpolicy.Proxy.Upstream now calls. secrets.Store.ProxyPassword owns
the proxy_password_missing mapping.
- A VM without network policy never gets config.toml's proxy, as the
guest would need the password, which never leaves this machine; each
start of one while config.toml is the only proxy warns
(proxy_needs_policy), naming devvm network on or the shell's
HTTPS_PROXY, with a doc link.
Wiring: tools.Env.Proxy (its Password set by cli and vm from devvm's
secrets), from.NewLookup/NewRegistry/NewPublicRegistry take the proxy,
lima.New and registry.New take a *settings.CompanyProxy for Ubuntu's
listing. internal/fetch stays standard library only.
- Tests: TestUpstreamWithPassword, TestUpstreamRoute,
TestUpstreamRouteAuthorizes, TestCompanyProxy,
TestCompanyProxyPasswordMissing, TestProxyPassword,
TestHostMiseThroughCompanyProxy, TestMiseCmdCompanyProxy,
TestBuildChecksCompanyProxy (tools and build), TestRegistryThroughProxy,
TestUbuntuThroughCompanyProxy, TestTransient's ErrProxy, and
company_proxy.txtar's build, rebuild and no-policy cases.
- Docs: network policy's Behind a company proxy and Without network
policy, config.toml's [proxy], How it works' Through a company proxy.
Co-Authored-By: Claude Opus 5.5 <[email protected]>