Skip to content

TMach v0.12.0

Latest

Choose a tag to compare

@truedat101 truedat101 released this 11 Nov 05:09
· 56 commits to main since this release
257b52f

Security fixes from the November audit, plus the notes and plugin work from #276.

Security

  • Password hashing (#278). New hashes are PBKDF2-HMAC-SHA256 at 600,000 rounds. Earlier builds used PBKDF2-HMAC-SHA1 at 100,000 on every supported install. Existing hashes still verify and are replaced when their owner next signs in; nothing to migrate.
  • Chunked uploads (#279). An in-flight upload can only be continued, completed or aborted by the person who began it. Previously any teammate with write access who held the upload id could complete it and become the owner of the result.
  • Key rotation (#280). telemachus-secrets rewrap now rewrites every encrypted column. Thirteen were skipped, so on an instance with TMACH_ENCRYPT_CONTENT on, older jobs, workflow runs and translations stopped opening once the previous key was dropped. telemachus-secrets status now reports rows still under a previous key.
  • Configuration posture (#281). The sign-up funnel no longer signs its challenge with a secret from the public source when TMACH_SECRET is unset. Boot warnings name what is actually at risk, the all-zeros evaluation key from compose.yaml is flagged, and GET /api/admin/status reports token_pepper, secret_key and strict_startup.
  • The deployment guide and the secrets runbook say to set the encryption key before storing a live credential (#277).

Features and fixes (#276)

  • Notes: .org export and import, #+FILETAGS: as an org note's tag home, the links graph, and an unknown visibility is now refused instead of stored.
  • Workers: a stop hands the job back without spending an attempt; a cancelled job releases its slot at once.
  • Plugins: a route may be declared public and may serve its own media type.
  • Localization: a duplicated catalog key fails the gate; a locale is offered only when it is translated enough to answer in.

Upgrade notes

  • If you rotated the encryption key on 0.11.0 or earlier with TMACH_ENCRYPT_CONTENT on and have since dropped the previous key: set TMACH_SECRET_KEY_OLD to it again, upgrade, and re-run telemachus-secrets rewrap.
  • If you run more than one replica and never set TMACH_SECRET: set it. A sign-up challenge issued by one replica is otherwise refused by another.
  • A script that begins a chunked upload as one user and completes it as another now gets a 404.
  • TMACH_PBKDF2_ITERS now defaults to 600000; a value under 100000 is ignored.
  • A rotation on a content-encrypted instance rewrites every job, run, step and translation row, so it takes longer than before.

Follow-ups from the audit that are not in this release are tracked in #282.