Skip to content

v1.0.6 — Security patch: archive links, telemetry ports, mail in logs

Latest

Choose a tag to compare

@obasilakis obasilakis released this 05 Dec 11:25
7acd06d

v1.0.6

Released: 2026-12-05
Tag: v1.0.6  ·  Diff: v1.0.5...v1.0.6

A security patch release: v1.0.5 plus two reported security fixes, two follow-ups to one of them, and one fix to an error answer. One of the follow-ups is new in this release; the rest were brought over from dev. No new features, no database migration, no change to the enterprise submodule pin. Upgrading is recommended for every v1.0.5 install.

The diff since the v1.0.5 tag also carries two changes with no effect on a running install: documentation screenshots (#4622) and a CI timeout (#4842).

Security

  • #4740 Local agent deploy judges a symbolic link in an uploaded archive by where it resolves on disk. After extraction, and again on the deployed copy, a link that lands outside its own root is refused (400 INVALID_ARCHIVE, naming the member and its target). A .mcp.json that is a symbolic link is refused at validation and is never read as a credential template. Links that stay inside the archive are kept as before (#2060).
  • #4756 Templates stored by an earlier deploy get the same rule at every backend start: a symbolic link in the deployed-templates store that resolves outside its own template directory is removed. Only the link goes; its target and the rest of the template stay. Each removal is logged.
  • #4935 Local agent deploy refuses an archive that carries a hard-link member (400 INVALID_ARCHIVE, naming the member and its link name), before anything is extracted. Symbolic links keep the rule above. A follow-up to #4740, new in this release.
  • #4739 The telemetry services publish no ports on the host. No compose file publishes 8686, 4317, 4318, 8889 or 13133, and Vector's API listens on its own container's loopback only. Agents and the backend reach the OpenTelemetry Collector over the Docker networks, as they did before.
  • #4739 Mail bodies stay out of the backend log. The console email provider logs who a mail was for and its subject, not its body. A provider that is configured but cannot send (missing SMTP settings, no API key, an unknown provider name) reports the mail as not sent; it no longer prints the mail and reports success.
  • #4739 Six info-level log lines carry the length of a message instead of its first words: chat and task dispatch in the agent server, the Gemini runtime's tool result, voice transcription and the voice tool call.
  • #4646 When connecting an agent to Slack fails with an unexpected error (HTTP 500), the answer carries the error's class and a pointer to the backend log, not the error text. The log keeps the traceback with the workspace bot token masked (#4339).

⚠️ Behavior changes / upgrade notes

trinity update stops once and asks you to accept the port change

Update with trinity update (scripts/deploy/update.sh). Coming from v1.0.5, a plain run stops before it builds anything: the update compares the ports your running containers publish with the ports the new version publishes, and vector and otel-collector lose theirs. It puts the checkout back and leaves the install on v1.0.5.

That change is this release, so run it again with the flag:

trinity update --accept-port-change
  • The flag accepts every binding the update would move. Read the list the first run prints: vector and otel-collector should be the only services on it. The message's hint about a .env key does not apply to them.
  • trinity update --check does not run this comparison, so it does not warn about it.
  • An unattended trinity update --yes stops the same way. The install stays on v1.0.5, with the five ports published, until the update runs with the flag.

To check afterwards: docker ps --format '{{.Names}} {{.Ports}}' | grep -E 'vector|otel' shows no ->. Until you can update, close 8686, 4317, 4318, 8889 and 13133 at your cloud or network firewall (a host firewall such as ufw does not filter ports that Docker publishes).

The port change is in the compose files and in config/vector.yaml, not in the images. An install that only moves TRINITY_IMAGE_TAG keeps publishing the ports; the checkout has to move too, which trinity update does.

The update also brings the new agent base image, and running agents keep the old one. Four of the six log lines above are in the agent server, so they reach an agent on its next stop and start. Until then the agent runs without that change; the platform alert names which running agents are still on the old image (#4483).

On an install started with plain ./scripts/deploy/start.sh (the development compose file), the update is applied and then ends with "The update did not verify", advice to roll back and exit status 1 (#4934). Its last check expects the built UI, which that install does not serve, and the line just above the message says so: ... is HTML but references no hashed /assets/ bundle. When that is the line, do not roll back: docker exec trinity-backend printenv VERSION prints a value that starts with 1.0.6 once the new backend runs. The same closing message after a failed build, or after a backend that does not answer, is a real failure. An install started with docker-compose.prod.yml is not affected.

Five ports are no longer published on the host

8686 (Vector API), 4317 and 4318 (OTLP receivers), 8889 (collector metrics) and 13133 (collector health) are reachable inside the Docker networks only. Agents and the backend never used them from the host. scripts/deploy/verify-platform.sh did, for Vector's health, and now asks inside the container; a kept copy of the older script, or a monitor on localhost:8686/health, reports Vector as down after the update. If you used the ports from the host:

  • Vector health: docker exec trinity-vector wget -q -O - http://127.0.0.1:8686/health.
  • Collector metrics and OTLP: read or send them from a container on the platform's Docker networks, or publish the port yourself in a compose override.

An emailed code is no longer readable in the backend log

On an install that cannot send email, an emailed code used to be printed to the backend log. It is not any more. This covers every code Trinity sends by email, including sign-in, confirming a sign-in email, the email check on a public link, and email verification in Telegram, WhatsApp and Slack.

  • The Login page says the code was not delivered and points at Admin Login. Sign in with the admin password and configure an email provider.
  • The sign-in request answers as before, with the same neutral reply whether or not a mail went out. Where a request reports on the send itself (confirming a sign-in email, the email check on a public link, email verification in Telegram and WhatsApp), it now reports a failure when the provider is missing its settings; before, it answered as if the mail had gone out.
  • EMAIL_PROVIDER=console sends nothing, prints no code and still answers as if the mail went out, so it is for development machines only: together with EMAIL_CONSOLE_LOG_BODY=true it prints the mail body, and the Login page then names the log. docker-compose.yml is the only compose file that passes the flag through.

GET /api/auth/mode gains email_code_in_log, which the Login page reads.

Links that leave a stored template are removed at the first start

After the update, the first backend start checks the templates stored by earlier deploys (/data/deployed-templates in the backend container). A symbolic link that resolves outside its own template directory is removed; the file it pointed at is not touched. An entry at the top level of the store that is itself a symbolic link is removed as well, wherever it points; a deploy never creates one. The backend log names each one (deployed-templates scan: removed link ...). A link that cannot be removed is logged as an error and stays. A template that relied on such a link has to carry the file itself and be deployed again.

An archive with a hard link is refused

A hard link is a second name for the same file. When both names are inside the directory, trinity deploy packs one as a file and the other as a hard-link member, and local agent deploy now answers such an archive with 400 INVALID_ARCHIVE, naming the member. Before this release it was deployed. An archive packed with tar for the MCP tool deploy_local_agent carries the same member.

  • To deploy the directory, replace the second name with a copy of the file and run the deploy again. find . -type f -links +1 lists the names. If you pack the archive yourself with GNU tar, the option --hard-dereference stores both names as ordinary files instead.
  • The CLI does not pack .git, node_modules, __pycache__, .venv or venv. In a git repository it packs the files git ls-files reports, which leaves out what git ignores. Outside a git repository, or if that list is empty, it walks the directory and skips every directory whose name starts with a dot. Hard links in the places it does not pack do not matter.
  • Symbolic links are not affected: one that stays inside the archive is deployed as before.

Config keys whose behaviour changed

  • EMAIL_PROVIDER — console no longer writes the mail body to the log; it sends nothing and reports the mail as sent, as before. An unknown value, or a provider missing its settings, no longer falls back to printing the mail: the send fails and says so.

New key (no prior meaning): EMAIL_CONSOLE_LOG_BODY (development only, honoured by docker-compose.yml only).

Enterprise instances

The enterprise submodule pin does not move in this release (a26e522).