|
@@ -436,7 +436,10 @@ docker run -d --name svapi-dev -p 8080:8080 -e SMARTBOTIC_VECTORAPI_KEY=dev svap
|
|
|
- **QuickJS's job queue belongs to the `JSRuntime`, not the `JSContext`.** A fresh context per run is therefore *not* enough to isolate tenants: a run that times out mid-microtask leaves its jobs queued, and they would execute inside the next tenant's run. The core flushes them with the deadline forced into the past and marks the runtime `poisoned()` if anything survives; the pool destroys a poisoned runtime instead of leasing it out. An OOM poisons it too.
|
|
- **QuickJS's job queue belongs to the `JSRuntime`, not the `JSContext`.** A fresh context per run is therefore *not* enough to isolate tenants: a run that times out mid-microtask leaves its jobs queued, and they would execute inside the next tenant's run. The core flushes them with the deadline forced into the past and marks the runtime `poisoned()` if anything survives; the pool destroys a poisoned runtime instead of leasing it out. An OOM poisons it too.
|
|
|
- **`/etc/smartbotic-vectorapi` must stay mode 0751, not 0750.** The runner runs as its own user and needs `+x` to traverse the directory to `runner.json`; it still cannot list it, and the server's `0640` files stay unreadable to it. Both `server.postinst` and `runner.postinst` set it, and a server upgrade resetting it to `0750` breaks the runner on its **next restart** - a failure that surfaces weeks later with no obvious cause.
|
|
- **`/etc/smartbotic-vectorapi` must stay mode 0751, not 0750.** The runner runs as its own user and needs `+x` to traverse the directory to `runner.json`; it still cannot list it, and the server's `0640` files stay unreadable to it. Both `server.postinst` and `runner.postinst` set it, and a server upgrade resetting it to `0750` breaks the runner on its **next restart** - a failure that surfaces weeks later with no obvious cause.
|
|
|
- **The dev host's clang and the release GCC disagree about overload ambiguity, and the release toolchain is the only one that counts.** A braced list passed to `imapUidFetch` is viable for BOTH overloads - `{7, 9}` is either the set `7,9` or the single range `7:9`, and `{uid}` is either one uid or the range `uid:0` - so the two readings are DIFFERENT COMMANDS. clang silently picks one, GCC refuses the call, and the whole mail surface therefore compiled cleanly on the host for days and then failed the first release build it ever saw. Call such an overload set with an explicit vector type. The lesson is bigger than the call: `scripts/host-build.sh` passing is not evidence that the `.deb` will build, so a feature is not finished until the Docker path has compiled it.
|
|
- **The dev host's clang and the release GCC disagree about overload ambiguity, and the release toolchain is the only one that counts.** A braced list passed to `imapUidFetch` is viable for BOTH overloads - `{7, 9}` is either the set `7,9` or the single range `7:9`, and `{uid}` is either one uid or the range `uid:0` - so the two readings are DIFFERENT COMMANDS. clang silently picks one, GCC refuses the call, and the whole mail surface therefore compiled cleanly on the host for days and then failed the first release build it ever saw. Call such an overload set with an explicit vector type. The lesson is bigger than the call: `scripts/host-build.sh` passing is not evidence that the `.deb` will build, so a feature is not finished until the Docker path has compiled it.
|
|
|
-- **The deb `Depends` lists are HAND-MAINTAINED** - `create-debs.sh` copies each `control.*` template verbatim and never runs `dpkg-shlibdeps`, so a new shared-library dependency does **not** appear by itself; it surfaces as a service that refuses to start on a customer box. The mail surface added two to `control.runner`, both confirmed with `ldd` against the built binary rather than guessed: **`ca-certificates`**, because the vendored curl detects the CA bundle at CONFIGURE time and bakes the path in, and with TLS verification always on a missing bundle makes *every* mail connection fail as `mail_tls_untrusted` (which reads as a broken mail server, not a missing package); and **`libidn2-0`**, because the vendored curl keeps IDN support. IDN is deliberately not compiled out - mail hostnames are usually ASCII, but breaking an internationalised one to save a dependency is the wrong trade. **zlib, zstd and brotli are deliberately absent**: they are HTTP content encodings, HTTP is compiled out of the vendored curl, and leaving them enabled made them real package dependencies for capabilities the code cannot reach.
|
|
|
|
|
|
|
+- **The deb `Depends` lists are HAND-MAINTAINED** - `create-debs.sh` copies each `control.*` template verbatim and never runs `dpkg-shlibdeps`, so a new shared-library dependency does **not** appear by itself; it surfaces as a service that refuses to start on a customer box. The mail surface added two to `control.runner`, both confirmed with `ldd` against the built binary rather than guessed: **`ca-certificates`**, because the vendored curl detects the CA bundle at CONFIGURE time and bakes the path in, and with TLS verification always on a missing bundle makes *every* mail connection fail as `mail_tls_untrusted` (which reads as a broken mail server, not a missing package); and **`libidn2-0`**, because the vendored curl keeps IDN support. IDN is deliberately not compiled out - mail hostnames are usually ASCII, but breaking an internationalised one to save a dependency is the wrong trade.
|
|
|
|
|
+ **THAT TRADE WAS DECLARED AND NEVER ACTUALLY MADE, FOR THREE RELEASES, AND THE `Depends` LINE IS WHAT MADE IT LOOK DELIVERED.** Measured 2026-10-22 while verifying the 0.16.0 packages: the base image never installed `libidn2-dev`, so curl's configure logged `Package 'libidn2' ... not found` and reported **`Features: AsynchDNS IPv6 Largefile SSL threadsafe UnixSockets`** - no IDN - while `objdump -p` on the shipped runner showed **no libidn2 among its NEEDED libraries** at all. So an internationalised mail hostname would have failed with nothing explaining why, and the only artefact anyone would have checked said the opposite. `libidn2-dev` is now in `Dockerfile.base` and curl reports IDN; verify it after any base rebuild from curl's own `-- Features:` line.
|
|
|
|
|
+ **This is the hand-written-`Depends` failure in its most flattering direction, and it is worth more than the bug.** A declared dependency the binary does NOT have is harmless at install time - one extra package - which is exactly why nothing ever complained, and why it survived every release. **A `Depends` list is a statement of what we BELIEVE the binary needs; only `objdump -p` or `dpkg-shlibdeps` says what it needs.** The same list read in the opposite direction - a dependency the binary needs and we forgot - is the one that surfaces as a service refusing to start on a customer box, and nothing distinguishes the two by reading the file. Two more instances of the same shape were found in the same half hour: `libz.so.1` is a real NEEDED library and appears in no `Depends` (harmless, since zlib is effectively always present, but it means the note calling zlib "deliberately absent" describes our curl flags rather than the binary), and `libfmt.so.10` likewise arrives only transitively through `libspdlog1.15`.
|
|
|
|
|
+ **And two of my OWN checks on this binary were worthless in ways worth recording, because both looked like measurements.** `strings | grep` for the protocol names returns curl's full protocol NAME TABLE whether or not a protocol is compiled in, so it listed `https`, `pop3` and `sftp` and could not have told the difference - a check that cannot discriminate. The discriminating one is curl's own configure line, `-- Protocols: imap imaps smtp smtps`. And I first ran `ldd` on the extracted binary **on the Void dev host**, which resolved against Void's libraries rather than Debian's; the tell was that it reported BOTH `libfmt.so.10` and `libfmt.so.12`. Run it inside the Debian container, or read `objdump -p`, which needs no loader at all. **zlib, zstd and brotli are deliberately absent**: they are HTTP content encodings, HTTP is compiled out of the vendored curl, and leaving them enabled made them real package dependencies for capabilities the code cannot reach.
|
|
|
- **Installing the runner does not enable functions.** `config.json` ships with no `functions.runners` endpoints, and the server disables the function routes when the list is empty (answering 503). An operator has to add the endpoint by hand, and set the same `SVAPI_RUNNER_TOKEN` in both `vectorapi.env` and `runner.env`.
|
|
- **Installing the runner does not enable functions.** `config.json` ships with no `functions.runners` endpoints, and the server disables the function routes when the list is empty (answering 503). An operator has to add the endpoint by hand, and set the same `SVAPI_RUNNER_TOKEN` in both `vectorapi.env` and `runner.env`.
|
|
|
- **UPSTREAM PIN REVIEW, 2026-10-09.** Both pins were checked against what this service actually reaches, which is the standing discipline here rather than chasing version numbers.
|
|
- **UPSTREAM PIN REVIEW, 2026-10-09.** Both pins were checked against what this service actually reaches, which is the standing discipline here rather than chasing version numbers.
|
|
|
- **curl 8.23.0: JUDGED ITEM BY ITEM NOW THAT THE EMBARGO HAS LIFTED, AND THE HIGH IS NOT OUR EXPOSURE.** This entry used to say the bump was "REQUIRED and not optional" with "the HIGH one is unknown"; the details are public since 2026-10-14 and the picture is nearly the opposite of what the severity implied. **CVE-2026-92392 (HIGH) is a use-after-free in HTTP/2 UPLOAD handling** - a malicious server's `RST_STREAM` with `HTTP_1_1_REQUIRED` or `REFUSED_STREAM` frees a `struct Curl_easy` still in use, proven convertible to RCE under exact conditions. **We cannot reach it, for two independent reasons read off our own build rather than from prose: `CURL_DISABLE_HTTP ON` and `USE_NGHTTP2 OFF`** (`runner/CMakeLists.txt`). There is no HTTP in this curl at all, let alone HTTP/2. Of the other twenty-one, every one is rated Low and twenty are unreachable here, each ruled out by a specific setting or a missing call rather than by assumption: cookies, ALTSVC and HSTS are `CURL_DISABLE_*` (5 CVEs); `CURL_DISABLE_PROXY` (1); `CURL_USE_GSSAPI OFF` plus `CURL_DISABLE_NTLM` kill the three Negotiate ones; FTP, TFTP, POP3 and WEBSOCKETS are in the disable loop (3); OpenSSL rather than wolfSSL or GnuTLS (2); no libssh2 or libssh, so SSH `known_hosts` and the SFTP/SCP redirect are out (2); `BUILD_CURL_EXE OFF`, so the two flaws in the command-line TOOL cannot ship in a library-only build; and `curl_mime_*`, `CURLOPT_INTERFACE`, `CURLOPT_SSLCERT` and `CURLINFO_EFFECTIVE_URL` appear NOWHERE in `runner/src` (4) - we build MIME ourselves in `net/mime_build.cpp`.
|
|
- **curl 8.23.0: JUDGED ITEM BY ITEM NOW THAT THE EMBARGO HAS LIFTED, AND THE HIGH IS NOT OUR EXPOSURE.** This entry used to say the bump was "REQUIRED and not optional" with "the HIGH one is unknown"; the details are public since 2026-10-14 and the picture is nearly the opposite of what the severity implied. **CVE-2026-92392 (HIGH) is a use-after-free in HTTP/2 UPLOAD handling** - a malicious server's `RST_STREAM` with `HTTP_1_1_REQUIRED` or `REFUSED_STREAM` frees a `struct Curl_easy` still in use, proven convertible to RCE under exact conditions. **We cannot reach it, for two independent reasons read off our own build rather than from prose: `CURL_DISABLE_HTTP ON` and `USE_NGHTTP2 OFF`** (`runner/CMakeLists.txt`). There is no HTTP in this curl at all, let alone HTTP/2. Of the other twenty-one, every one is rated Low and twenty are unreachable here, each ruled out by a specific setting or a missing call rather than by assumption: cookies, ALTSVC and HSTS are `CURL_DISABLE_*` (5 CVEs); `CURL_DISABLE_PROXY` (1); `CURL_USE_GSSAPI OFF` plus `CURL_DISABLE_NTLM` kill the three Negotiate ones; FTP, TFTP, POP3 and WEBSOCKETS are in the disable loop (3); OpenSSL rather than wolfSSL or GnuTLS (2); no libssh2 or libssh, so SSH `known_hosts` and the SFTP/SCP redirect are out (2); `BUILD_CURL_EXE OFF`, so the two flaws in the command-line TOOL cannot ship in a library-only build; and `curl_mime_*`, `CURLOPT_INTERFACE`, `CURLOPT_SSLCERT` and `CURLINFO_EFFECTIVE_URL` appear NOWHERE in `runner/src` (4) - we build MIME ourselves in `net/mime_build.cpp`.
|