Third-party facts the design depends on¶
Each item was checked before the code that relies on it was written. The answer, the versions, and how it was checked are recorded so a reviewer can repeat the check. Checked on 2026-11-09 on the Ubuntu build VM.
1. Does Mosquitto reload crlfile on SIGHUP?¶
Yes (Mosquitto 2.1.2, eclipse-mosquitto:2 image).
Experiment: broker with require_certificate true and crlfile; a client
certificate was accepted; the certificate was revoked and the CRL file
replaced; the client was still accepted (no reload yet); after
docker kill -s HUP the broker logged Reloading config. and refused the
client; after a restart it still refused it.
Consequences:
Broker-level revocation takes effect at the next SIGHUP. In Compose a small watcher in the Mosquitto container sends SIGHUP when
crl.pemchanges; the Kubernetes charm does the same through Pebble.A reload does not drop connections that are already open. A revoked device that stays connected keeps its session until it reconnects. Ingest drops its data from the moment of revocation (layer 1 in ADR-0010), so no data from it is stored either way.
OpenSSL rejects every client once the CRL’s
nextUpdatehas passed, so the API republishes the CRL daily and an alert fires when it is older than 48 h.OpenSSL checks the CRL of the leaf certificate’s issuer only. Devices and services therefore use separate listeners: the device listener trusts the device CA and checks the CRL; the service listener trusts the service CA and has no CRL.
3. paho.golang manual acknowledgement¶
github.com/eclipse/paho.golang v0.23.0, read from the module source.
paho.ClientConfig.EnableManualAcknowledgmentturns it on;(*paho.Client).Ack(*paho.Publish)marks a message as handled. With autopaho, the client is inpaho.PublishReceived.Client.Order is enforced by the library.
acksTrackerrecords publishes in arrival order, and a ticker (SendAcksInterval, default 50 ms) sends PUBACKs only for the leading run of handled messages. A message whose Kafka write has not been confirmed blocks every PUBACK after it, which is exactly the backpressure the bridge needs. The bridge therefore does not keep its own FIFO; it callsAckfrom the Kafka produce callback.The tracker is reset on reconnect. A produce callback that fires after a reconnect gets
ErrPacketNotFound; the broker redelivers that message, it is produced again, and ingest removes the duplicate.Nothing else resets it, so a message that is never acked holds back every later PUBACK for as long as the connection lasts. franz-go v1.22.2 retries produce errors itself without limit and fails a record only for errors it cannot retry, such as a topic still unknown after four metadata attempts (
UnknownTopicRetries) or a denied authorization. The bridge therefore writes such a message again with backoff until Kafka takes it. It stays infleetwire_bridge_pending_acks, and readiness fails while any message is being written again. If the connection drops meanwhile, the bridge stops writing that copy, because the broker redelivers it on the next connection.markAsAckedscans the tracker linearly, so the bridge caps the number of unacknowledged messages with the MQTT v5 Receive Maximum (1,000).
4. snapctl get -d and snapctl set-health from a strict daemon¶
From the snapd source (overlord/hookstate/ctlcmd/health.go): set-health
“can be called from any hook, and even from the apps themselves”. Rules: the
message must be 7 to 70 characters (longer is cut), a code must be 3 to 30
characters, and okay takes no message. snapctl get -d prints the snap’s
configuration as JSON and works from apps; the strict agent snap reads its
configuration this way on Ubuntu Core 24.
5. Ubuntu Core 24 in QEMU¶
Image:
https://cdimage.ubuntu.com/ubuntu-core/24/stable/current/ubuntu-core-24-amd64.img.xz, booted with OVMF (OVMF_CODE_4M.secboot.fd).First boot runs console-conf, which needs an Ubuntu One account with an SSH key to create the first user. The scripts take the account e-mail as input; this step cannot be automated without such an account or a custom signed model.
Neither build host (first an UpCloud VM, then an AWS EC2 m7i-flex instance) exposes
/dev/kvm, so QEMU runs with TCG software emulation. Boot is slow; the power-off test records the time it takes.Ubuntu Core 24 ships snapd 2.63. Its default AppArmor template does not let a snap execute
/usr/bin/setpriv(allowed from snapd 2.68) or read its own/proc/<pid>/mountinfo(allowed from 2.72), so the agent drops privileges itself; see ADR-0013.
6. Charmed Kafka and PostgreSQL on Kubernetes¶
From the Charmhub API and Canonical’s docs:
kafka-k8s: channels4/stable(Apache Kafka 4, KRaft; the charm runsroles=brokerand/orroles=controller) and3/stable(ZooKeeper). The bundle uses4/stable, pinned to revision 111 (amd64;4/stablehas no arm64 build,4/betaand4/edgedo). Clients use thekafka_clientinterface.postgresql-k8s:16/stable, pinned in the bundle to revision 957 (amd64; arm64 is 958). Clients use thepostgresql_clientinterface (DatabaseRequiresfromdata_platform_libs).Integration tests: Canonical moved from pytest-operator to Jubilant (with
pytest-jubilant); the Kafka K8s charm itself has migrated. The charms here use Jubilant.
7. 10,000 mTLS MQTT connections from one process¶
Measured with the load generator in the 10,000-device runs and recorded in
docs/results/. Settings in place before the run: nofile 1,048,576 for
all users, fs.nr_open 1,048,576, local port range 10240-65535, and
Mosquitto max_connections -1 with a matching container ulimit.
8. COS Lite charm libraries¶
Read in the library sources fetched with charmcraft fetch-lib (charmcraft
4.5.0) on 2026-11-23, and checked on MicroK8s with prometheus-k8s 301,
grafana-k8s 180 and loki-k8s 217 from 2/stable:
Versions:
prometheus_k8s.v0.prometheus_scrape0.66,grafana_k8s.v0.grafana_dashboard0.54,loki_k8s.v1.loki_push_api1.35. charmcraft warns that Charmhub-hosted libraries are deprecated in favour of Python packages, but the charmlibs project publishes none for these three. TheirPYDEPSnamecosl(1.11.3 here), which needs pydantic and so the compiledpydantic-core.MetricsEndpointProvider: a*target becomes the unit’s bind address, the pod IP on Kubernetes, in the same model and across models. The consumer prefixes the job name withjuju_<model>_<uuid>_<application>and keeps the job’srelabel_configs. The provider adds topology labels to every rule and two generic rules,HostDownandHostMetricsMissing; the Prometheus charm then addsjuju_model,juju_model_uuidandjuju_applicationmatchers to each expression, including those insideabsent().GrafanaDashboardProvider: replaces a dashboard uid that is not a 40-character “Path40” uid with one derived from the charm name and file path, and adds acharm: <name>tag. Grafana adds the Juju topology variables to every query and points Prometheus panels at its own data source.LogForwarder: adds a Pebble layer<container>-log-forwardingwith one Loki target per Loki unit and disables a target (services: [-all]) when its unit leaves. It needs Juju 3.4. Pebble also sends the lines still in each service’s log buffer, so startup lines logged before the relation arrived reach Loki.