Tracking: 27.1 freeze review (quality, speed, bloat, security, stability) #640

Open
opened 2026-11-25 19:26:31 +00:00 by jcoffey-dev · 1 comment
Owner

Tracking issue for the review that opens the 27.1 freeze on 1 December: the whole suite, the code inherited from upstream included, checked for best practices, speed, security and stability, with dead weight cut. Same or better quality, less bloat. Announced on the forum: https://community.coffeylabs.org/t/inbuxa-27-1-code-freeze-starts-1-december/406

Work items live here. An item gets its own issue only when work on it starts. That issue links back here, and the box is ticked when it closes. Items the review turns up are added under Findings. Security review areas are tracked here, but what they find isn't: a vulnerability stays private until it's fixed and published as an advisory, and only then gets a line here.

Rules during the freeze: no new features. Every change keeps behaviour the same, has tests, is small, and comes with its before/after number. No speed claim without a measurement.

Scope (lines of rs/ts/tsx/go/py/sh/js, 25 November): server 614,749 own + 266,648 vendored · migrate 118,429 · webmail 105,252 · console 83,337 · installer 24,103 · cli 7,276. The chart is reviewed with inbuxa/inbuxa-charts#14.

Baseline

  • R-B1 Light baseline: lines, dependencies and duplicates, possibly-unused dependencies, unused files and exports, Go lint · p1 (25 Nov)
  • R-B2 Heavy baseline: release build time, binary and image sizes, clippy warnings, test-suite times, console and webmail bundle sizes · p1 (after 27 Nov)

Dependencies

  • R-D1 Server: 41 possibly-unused dependencies in 20 of our crates (most in main 8, smtp 5, scim 3, store 3); confirm each, remove the real ones · p2
  • R-D2 Server, vendored hickory-net and hickory-resolver: 14 unused dependencies in their manifests · p3
  • R-D3 Server: 91 crates built at two or more versions (104 extra copies); collapse where a bump is safe · p2
  • R-D4 migrate (13 crates duplicated) and cli (4) · p3

Dead code

  • R-C1 Installer: 11 unreachable functions (7 in internal/docker), 2 staticcheck findings · p3
  • R-C2 Console: 11 unused files, 40 unused exports, 33 unused types, 3 duplicate exports, 1 unused devDependency · p2
  • R-C3 Webmail: 15 unused files, 59 unused exports, 16 unused types, 1 unused dependency · p2
  • R-C4 Server: dead code in our own crates, unused Cargo features, the sieve-playground tool · p2
  • R-C5 Server: inherited code inbuxa doesn't ship or can't reach, still compiled in · p2

Review by area (day one, in parallel)

  • R-R1 Server: protocols (SMTP, IMAP, POP3, ManageSieve, JMAP, WebDAV) · p1
  • R-R2 Server: store, directory, cluster, common · p1
  • R-R3 Server: inbuxa's own features (features, relay, migration, outbound TLS) · p1
  • R-R4 Server: vendored crates · p2
  • R-R5 Console · p1
  • R-R6 Webmail · p1
  • R-R7 Installer, migrate, cli · p2
  • R-R8 Builds and images: Dockerfiles, CI, release profiles, image layers · p2

Security review

  • R-S1 Known advisories in dependencies (cargo-audit, govulncheck, osv-scanner) and a secrets scan, every repo · p1
  • R-S2 Pre-authentication parsers inherited from upstream: SMTP, IMAP, POP3, ManageSieve, HTTP and JMAP requests, MIME · p1
  • R-S3 Authentication: OAuth, tokens and scopes, sessions, revocation, recovery and bootstrap modes · p1
  • R-S4 Authorization and tenancy: permissions, tenant boundaries, shared mailboxes, delegation · p1
  • R-S5 Console and webmail: headers and CSP, token storage, rendering untrusted mail · p1
  • R-S6 Installer, images and supply chain: file and privilege handling, image hardening, signing, CI secrets and runners · p2
  • R-S7 Earlier security fixes still hold on main (each with its test) · p2

Stability review

  • R-T1 Panics on paths clients can reach: unwrap, expect, indexing, arithmetic overflow · p1
  • R-T2 Limits and timeouts: connections, message and request sizes, slow clients, memory growth · p1
  • R-T3 Background tasks and the cluster: retries and backoff (a task that panics is retried at once, with no backoff), leases, restart and failover · p1
  • R-T4 Store upgrade, backup, restore and import: interrupted runs and partial writes · p1
  • R-T5 Fuzz targets for the parsers: SMTP, IMAP, MIME, Sieve, JMAP requests · p2
  • R-T6 Flaky tests: fix them, or quarantine each with a reason · p2
  • R-T7 Multi-day soak of the release candidate, with error and memory trends · p2

Findings

Added here as the review turns them up, numbered R-F1 onward.

Tracking issue for the review that opens the 27.1 freeze on 1 December: the whole suite, the code inherited from upstream included, checked for best practices, speed, security and stability, with dead weight cut. Same or better quality, less bloat. Announced on the forum: https://community.coffeylabs.org/t/inbuxa-27-1-code-freeze-starts-1-december/406 **Work items live here.** An item gets its own issue only when work on it starts. That issue links back here, and the box is ticked when it closes. Items the review turns up are added under Findings. Security review areas are tracked here, but what they find isn't: a vulnerability stays private until it's fixed and published as an advisory, and only then gets a line here. **Rules during the freeze:** no new features. Every change keeps behaviour the same, has tests, is small, and comes with its before/after number. No speed claim without a measurement. **Scope (lines of rs/ts/tsx/go/py/sh/js, 25 November):** server 614,749 own + 266,648 vendored · migrate 118,429 · webmail 105,252 · console 83,337 · installer 24,103 · cli 7,276. The chart is reviewed with inbuxa/inbuxa-charts#14. ### Baseline - [x] R-B1 Light baseline: lines, dependencies and duplicates, possibly-unused dependencies, unused files and exports, Go lint · p1 (25 Nov) - [ ] R-B2 Heavy baseline: release build time, binary and image sizes, clippy warnings, test-suite times, console and webmail bundle sizes · p1 (after 27 Nov) ### Dependencies - [ ] R-D1 Server: 41 possibly-unused dependencies in 20 of our crates (most in main 8, smtp 5, scim 3, store 3); confirm each, remove the real ones · p2 - [ ] R-D2 Server, vendored hickory-net and hickory-resolver: 14 unused dependencies in their manifests · p3 - [ ] R-D3 Server: 91 crates built at two or more versions (104 extra copies); collapse where a bump is safe · p2 - [ ] R-D4 migrate (13 crates duplicated) and cli (4) · p3 ### Dead code - [ ] R-C1 Installer: 11 unreachable functions (7 in internal/docker), 2 staticcheck findings · p3 - [ ] R-C2 Console: 11 unused files, 40 unused exports, 33 unused types, 3 duplicate exports, 1 unused devDependency · p2 - [ ] R-C3 Webmail: 15 unused files, 59 unused exports, 16 unused types, 1 unused dependency · p2 - [ ] R-C4 Server: dead code in our own crates, unused Cargo features, the sieve-playground tool · p2 - [ ] R-C5 Server: inherited code inbuxa doesn't ship or can't reach, still compiled in · p2 ### Review by area (day one, in parallel) - [ ] R-R1 Server: protocols (SMTP, IMAP, POP3, ManageSieve, JMAP, WebDAV) · p1 - [ ] R-R2 Server: store, directory, cluster, common · p1 - [ ] R-R3 Server: inbuxa's own features (features, relay, migration, outbound TLS) · p1 - [ ] R-R4 Server: vendored crates · p2 - [ ] R-R5 Console · p1 - [ ] R-R6 Webmail · p1 - [ ] R-R7 Installer, migrate, cli · p2 - [ ] R-R8 Builds and images: Dockerfiles, CI, release profiles, image layers · p2 ### Security review - [ ] R-S1 Known advisories in dependencies (cargo-audit, govulncheck, osv-scanner) and a secrets scan, every repo · p1 - [ ] R-S2 Pre-authentication parsers inherited from upstream: SMTP, IMAP, POP3, ManageSieve, HTTP and JMAP requests, MIME · p1 - [ ] R-S3 Authentication: OAuth, tokens and scopes, sessions, revocation, recovery and bootstrap modes · p1 - [ ] R-S4 Authorization and tenancy: permissions, tenant boundaries, shared mailboxes, delegation · p1 - [ ] R-S5 Console and webmail: headers and CSP, token storage, rendering untrusted mail · p1 - [ ] R-S6 Installer, images and supply chain: file and privilege handling, image hardening, signing, CI secrets and runners · p2 - [ ] R-S7 Earlier security fixes still hold on main (each with its test) · p2 ### Stability review - [ ] R-T1 Panics on paths clients can reach: unwrap, expect, indexing, arithmetic overflow · p1 - [ ] R-T2 Limits and timeouts: connections, message and request sizes, slow clients, memory growth · p1 - [ ] R-T3 Background tasks and the cluster: retries and backoff (a task that panics is retried at once, with no backoff), leases, restart and failover · p1 - [ ] R-T4 Store upgrade, backup, restore and import: interrupted runs and partial writes · p1 - [ ] R-T5 Fuzz targets for the parsers: SMTP, IMAP, MIME, Sieve, JMAP requests · p2 - [ ] R-T6 Flaky tests: fix them, or quarantine each with a reason · p2 - [ ] R-T7 Multi-day soak of the release candidate, with error and memory trends · p2 ### Findings Added here as the review turns them up, numbered R-F1 onward.
jcoffey-dev added this to the 27.1 milestone 2026-11-25 19:26:31 +00:00
jcoffey-dev added the enhancement
priority
p1
labels 2026-11-25 19:26:31 +00:00
jcoffey-dev self-assigned this 2026-11-25 19:26:31 +00:00
Author
Owner

Decided 25 November: everything is in scope, the code inherited from upstream included, with dead weight as the main target. The review runs in parallel by area, sized when it starts. The baseline is taken before 1 December so day one starts on the review. Announced on the forum: https://community.coffeylabs.org/t/inbuxa-27-1-code-freeze-starts-1-december/406

Decided 25 November: everything is in scope, the code inherited from upstream included, with dead weight as the main target. The review runs in parallel by area, sized when it starts. The baseline is taken before 1 December so day one starts on the review. Announced on the forum: https://community.coffeylabs.org/t/inbuxa-27-1-code-freeze-starts-1-december/406
jcoffey-dev changed title from 27.1 freeze, day one: suite review for best practices, speed and bloat to Tracking: 27.1 freeze review (best practices, speed, bloat) 2026-11-25 19:38:56 +00:00
jcoffey-dev changed title from Tracking: 27.1 freeze review (best practices, speed, bloat) to Tracking: 27.1 freeze review (quality, speed, bloat, security, stability) 2026-11-25 19:43:24 +00:00
jcoffey-dev pinned this 2026-11-25 19:44:04 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
2026-12-01
Dependencies

No dependencies set.

Reference: inbuxa/inbuxa-server#640