Files
opencodejr[bot] 1f3819059d net: log which setting chose each host's proxy (#3268)
Co-authored-by: opencodejr[bot] <348916617+opencodejr[bot]@users.noreply.github.com>
2026-12-02 07:57:28 +00:00

6.9 KiB
Raw Permalink Blame History

Download Hosting

Public Paths

anoma.ly/release/hex/                      the Anomaly release service (docs/releasing.md)
├── index.json, desktop/stable.json        what the site, installers, and apps read
└── files/<sha256>/<name>                  hex-<v>-macos-arm64.{zip,dmg}, hex-<v>-windows-<arch>.exe,
                                           hex-setup-<v>-windows-<arch>.exe,
                                           hex-<v>-linux-<x64|arm64>{,.deb,.rpm}
anoma.ly/hex                               the one site: platform-aware download (Worker hex-production-site)
├── download/<target>                      302 to anoma.ly/release/hex/desktop/stable/<target> once stable.json
│                                          exists, else to .../dev/<target> (the newest dev build)
├── install-linux.sh, install-windows.ps1  installers (copied from .github/release/ at the site build)
└── files/…                                the one owner of every release file (same Worker)
    ├── install-linux.sh, install-windows.ps1, appcast.xml  built and served with the site
    ├── dev-notes.json                                    the Release workflow's dev-notes branch
    └── linux-update.json, windows-update.json, windows-aarch64-update.json, releases/HEX-2.3.1-…
                                                          frozen 2.3.1 history in hex-production-files,
                                                          read-only from the Worker binding
dev.anoma.ly/hex                           the dev site (reads anoma.ly/release; the service's dev stage
                                           is only for testing the service)
hex.kitlangton.com, .dev                   legacy site; 301s to anoma.ly/hex (nothing links to it)
downloads.hex.kitlangton.dev, .com         legacy bucket, frozen at 2.3.1; releases up to 2.3.1
                                           compiled it, so it stays up forever; the Worker in
                                           packaging/legacy-downloads redirects it to
                                           anoma.ly/hex/files (same bytes) once deployed
github.com/anomalyco/hex/releases/tag/v<version>       identical-byte mirror of every file (app-v through 2.3.1)

docs/releasing.md describes the Worker config, the workflow that publishes these, the credentials, and the transition from the legacy bucket. hex-production-files was seeded with byte copies of everything the old bucket served. A Configuration Rule in the anoma.ly zone disables Browser Integrity Check for /hex/files/ on anoma.ly and dev.anoma.ly: the zone check returned HTTP 403 to Python's default user agent. Keep browser challenges off download and updater routes.

The release workflow uploads every file to the release service (stored by hash, never replaced), then the release, then mirrors the files to the GitHub release (verified byte for byte). App tags remain separate from TypeScript SDK tags. The stable app release is GitHub's Latest release (the repository badge); SDK releases are created with --latest=false and never take it. Still, do not use GitHub's generic releases/latest redirect for an app download: links name the release service or an explicit v<version> tag.

The site reads the stable manifest when it builds, so the production deploy that follows a stable release updates every link. Bump the README's explicit app mirror link by hand; the Release workflow pushes anomalyco/homebrew-tap/Casks/hex.rb. bun run --cwd site check:downloads must pass; then verify the live links.

Network Recovery

App and model downloads have different hosts. Managed networks may need to allow:

  • anoma.ly (paths /release/ and, for 2.3.1, /hex/files/) for app downloads and updates (downloads.hex.kitlangton.dev too for releases up to 2.3.1, which reach it through a redirect).
  • GitHub release downloads and their asset delivery host for the alternative DMG and, on macOS while Labs › Clean up what I say is on, its cleanup model.
  • huggingface.co and its model download CDN for dictation-model setup.

On September 11, 2026, a HEAD request for the pinned default Parakeet Unified English artifact followed huggingface.co to us.aws.cdn.hf.co and returned HTTP 200. This is an observed delivery host, not a permanent exhaustive CDN list. No model body was downloaded for that check.

Model downloads, update checks, and transformation scripts' fetch go through Hex's own HTTPS client (src/net.rs, #894), which behaves like a browser on a managed network:

  • Proxy: HTTPS_PROXY, HTTP_PROXY, ALL_PROXY, and NO_PROXY on every OS (upper or lower case), else the system's settings. Windows: the signed-in user's proxy (Settings › Network › Proxy, Internet Options), its PAC file or WPAD, then the machine's WinHTTP proxy (netsh winhttp set proxy). macOS: the network's HTTP and HTTPS proxies and their exceptions; a PAC file isn't evaluated, so Hex passes over it to the next HTTP or HTTPS proxy in the list (#1235), and a PAC-only network needs HTTPS_PROXY. Linux: the environment only. A proxy that needs a sign-in (NTLM, Kerberos) fails with "the proxy needs a sign-in".
  • TLS: the platform's own (SChannel, Security.framework, OpenSSL) with the system's trusted roots, so a TLS-inspecting firewall whose root certificate IT installed is trusted. A missing root shows as "the certificate isn't trusted".
  • Failures: one line naming the host, the proxy, and the cause ("Couldn't reach huggingface.co through the proxy proxy.corp:8080: …"), then what to try. Hex's log names each host's proxy (without its user name or password) and the setting it came from: the environment (or NO_PROXY), the Windows user's PAC file or WPAD, the Windows user's settings, the machine's WinHTTP proxy, or macOS' network settings. When NO_PROXY, a Windows PAC answer, or a Windows bypass list sends a host direct, the log says so and names the setting. Otherwise a host Hex reaches without a proxy isn't logged (on macOS that includes the network's exceptions list and PAC-only networks). Downloads go in 8 MB ranged pieces with a 5 minute bound each, so a stalled connection fails instead of hanging, and resume where they stopped.

Observed on Linux: the speech detector, the update manifest, and a fetch worked directly, through mitmproxy with its root in the trust bundle, and with NO_PROXY past a dead proxy; with the root missing each failed naming the certificate, and with a dead proxy each named the refused proxy. Not observed: Windows' and macOS' system proxy settings on a real managed network (the Windows code is cross-compiled only).

If the old update endpoint is blocked, install the new signed DMG manually. After restoring model-host access, retry preparation in Settings. Transfer failures preserve partial downloads. App download success does not establish model-host reachability, and our external checks do not establish access from a particular enterprise network.