Skip to content

v0.31.0

Choose a tag to compare

@paulca paulca released this 29 Oct 22:07

carlos v0.31.0 (platform ea01d831, 2026-10-29)

  • One address for each folder on a static site. When a folder with an index.html is requested without its trailing slash, such as /blog/post, it answers with a 301 whose Location is the relative ./post/. The query string is kept. This gives the page one address for analytics and makes relative links resolve against its folder. The automatic redirect does not apply to files. A folder without index.html remains a 404. The site's _redirects rules are checked first. A rule naming the path, or a rule that would redirect its slash form, prevents this automatic redirect so the request is handled as asked.

  • One custom domain, one instance per region. A regional domain is served in each named region by that region's own instance of the app. A request is answered in the region it reaches and is never sent to another region. If that region's instance is not running, the request gets a 503. Create one with carlos domains placements --app shop --set ie=shop-ie.example.net --set uk=shop-uk.example.net example.com, and add --wildcard --catchall when creating its one-label catch-all. Without --set, the command shows each region's instance, whether it is ready, and the addresses to use for latency-based DNS. A hostname already attached as an ordinary domain, or covered by a catch-all, is refused. An existing regional claim can have its placements replaced, but --wildcard and --catchall cannot be changed after creation. Path prefixes, static sites, fleet placements and TCP-backed targets are not supported on a regional domain. The domains list, domain details and settings page show it as regional.

  • Each fleet gets its own secrets key. If you run your own fleet, secrets and credentials the console creates for apps placed on it are sealed to that fleet's key. The private half stays on the fleet's boxes. The platform receives only the public half. An app on a fleet cannot hold a secret until its fleet has a key. Set one up in this order:

    1. Update your carlos CLI to v0.31.0 or later. The console refuses a secret from an older CLI for a fleet app.
    2. Run carlos secrets genkey to make the pair.
    3. Put the private half in /etc/carlos/host.env on every box as CARLOS_SECRETS_KEY, then run systemctl restart carlos-edge on each box.
    4. Register the public half with carlos fleets secrets-key <fleet> <pubkey>, or use carlos fleets secrets-key --file <path> <fleet> with a file containing CARLOS_SECRETS_PUBKEY= or the bare key. Only an account owner can register it. The command prints the fingerprint.
    5. On each box, run carlos secrets fingerprint. Its fingerprint should start with the first 12 characters after sha256: in the SECRETS KEY column of carlos fleets ls.
    6. If registration lists values that the fleet's boxes cannot open, set each one again with carlos secrets set --app <app> <var>=<value>. For a credential the console created, run carlos store rotate --app <app> or carlos email rotate --app <app>. The STALE column of carlos fleets ls counts what remains.

    Until the fleet has a key, carlos secrets set and carlos store create for its apps refuse and tell you to register one. In carlos instances list, REASON says why a box refused config and what to do. With no key it says config refused: the box has no secrets key and tells you to add CARLOS_SECRETS_KEY and restart carlos-edge. When the box cannot open the app's sealed values it says config refused: the box cannot open this app's secrets and tells you to compare fingerprints. If they match, set the listed values again and rotate console-created credentials. An invalid private key has its own refusal. Other config refusals name the reason and point to journalctl -u carlos-edge; a capped refusal list says that the box refused more instances than it reports. carlos apps place and carlos apps create --place refuse an app whose sealed values the target boxes cannot open, and list those values. In direct-bucket mode, carlos secrets set refuses for any account that owns a fleet. Unset CARLOS_DEPLOYMENT_BUCKET and CARLOS_DEPLOYMENT_DIR, sign in with carlos auth login, and run it through the console. Apps that are not on a fleet keep their existing sealing behavior through the console.

For operators

  • Boxes and console both change. The static-site redirect, regional-domain serving and named-unit config delivery change the boxes. Regional-domain placement, fleet-key registration and sealing, and named-unit route records change the console. The fleet secrets key itself has no box-side change in this release. Roll the boxes first, then the console, as always. Coming from v0.30.2 or earlier, read the v0.30.3 operator notes first, and the notes they point to.

  • Config delivery to named units needs a declaration. A route stamped with a systemd unit (carlos route --unit) can now get its config from the box's root pass. Root renders the config to /etc/carlos/apps/<host>.env, writes a drop-in under /etc/systemd/system/<unit>.d/ that makes the box's /etc/carlos/units/<unit>.base.env and that file the unit's only environment files, reloads systemd and restarts the unit. It does this only for a unit that /etc/carlos/named-units.json names with the route's host, account and app. Nothing happens without that file, so a box with none behaves as on v0.30.3. Each stamped unit needs a line in the file before delivery starts. Install the file with carlos system named-units install <file>, as root, and do not edit it by hand while carlos runs. Removing a unit's line is what removes its drop-in. A unit that loads any other environment file, or a variable named in both the base file and the route's config, is refused and the reason is logged on the box.

  • v0.31.0 becomes a floor once a regional domain exists. Creating a regional domain is refused until every box, and every channel a box follows, is on v0.31.0 or later. From then on, no channel moves below v0.31.0 unless you pass --allow-below-regional-floor, because a box below it cannot read regional domains and stops serving them. Until someone creates a regional domain, nothing changes.

  • Every other dormant switch stays off. Leave CARLOS_MOVES_PHASE1, CARLOS_HOST_CLAIM, CARLOS_HOST_CLAIM_ORIGINS, CARLOS_HOST_CLAIM_RETIRED_LOCATIONS, CARLOS_CONSOLE_ID, CARLOS_REGION_HA, CONSOLE_HA_REGIONS, CARLOS_TEMPORARY_APPS, CARLOS_REQUIRE_POINTER_DIGEST, CARLOS_PLAN_CATALOG and CARLOS_BILLING unset, don't put CARLOS_BOX_REFERENCE=group in any host.env, and don't run carlos channels digests on. Keep CARLOS_SWAP and CARLOS_DB_FORWARD as they are: a box armed for zero-downtime deploys stays armed, and a console that forwards database reads keeps forwarding.

Verify a download against SHA256SUMS.txt. SHA256SUMS.txt.sig is the ed25519 signature (base64) over that file, and carlos update checks it against its embedded key.