Skip to content

v0.5.0

Latest

Choose a tag to compare

@solid-syslog-release solid-syslog-release released this 28 Nov 16:08
ba91afc

The 0.5.0 release lets the block store keep its blocks
directly on NOR flash,
with no filesystem beneath it, and adds an
SPI NOR flash pack
that fills the flash seam from the part's SFDP table. The logger asks the device
whether capture is on,
which is the user opt-out the Cyber Resilience Act asks for, and holds records in RAM
until the device knows. It also holds delivery back until the device says it knows
where its collector is. The FreeRTOS and CMSIS-RTOS2 BDD targets have been
run by hand on a NUCLEO-F767ZI,
a Cortex-M7 board, over UDP and TCP, storing to a MicroSD card, to LittleFS on NOR
flash and to NOR flash directly; TLS has not been run there yet. Every CI run records
the compiler and upstream versions each pack was built against, and each pack's page
is held to that record. Coverage is measured by llvm-cov and gated at 99% on lines,
branches and MC/DC.

Still 0.x: the label describes platform breadth and the absence of field
integrations, not the maturity of the code. One change breaks source compatibility,
and only for a block device of your own; it is under Before you upgrade.

Before you upgrade

This breaks source compatibility with 0.4.0:

  • A block device of your own fills GetBlockCount. The SolidSyslogBlockDevice
    vtable gains the entry, and SolidSyslogBlockStore_Create reads it without a NULL
    check, so a device that leaves it unset crashes there. Answer the number of blocks
    the device has. Fewer than four is refused: BAD_CONFIG with the new
    SOLIDSYSLOG_BLOCK_STORE_ERROR_TOO_FEW_BLOCKS, and the Null store. MaxBlocks now
    clamps to between 2 and that count less 2, where the upper bound was a fixed 98.
    SolidSyslogFileBlockDevice answers 100, so a store on it is unchanged.

These build unchanged but behave differently:

  • SolidSyslogConfig has four new fields: IsDestinationKnown,
    DestinationKnownContext, GetCaptureState and CaptureStateContext. Zero keeps
    what 0.4.0 did; a positional initialiser needs them.
  • Block store error codes from SOLIDSYSLOG_BLOCK_STORE_ERROR_THRESHOLD_CROSSED on
    move up by one
    , the new code sitting ahead of them. A handler that matches the
    enumerators is unaffected; one that matches their numbers is not.
  • A block store created over SolidSyslogNullBlockDevice_Get() is the Null store,
    with nothing reported and no pool slot held. In 0.4.0 it was a store that froze as
    it opened the device, and reported that.
  • A LittleFS file is closed and opened again after every write. It works round
    LittleFS issue 1247,
    where a file left open could cost an erase for every write. The cost is reads:
    each write ends with LittleFS finding the file by its path again, so a deeper path
    or a fuller directory costs more.

These floors are raised, or stated for the first time:

  • Mbed TLS 3.6.3 or later, where the page said 3.6. The AES-GCM policy decrypts a
    stored record in place, which the GCM API permits from that release. An alternative
    implementation under MBEDTLS_GCM_ALT must accept the same.
  • FatFs R0.13, lwIP 2.1.0 and the CMSIS-RTOS2 API 2.1.0 are now stated as the
    floors of their packs, each with the reason on its page.

One correction to the documentation is worth acting on:

  • The Mbed TLS wall clock is bound with MBEDTLS_PLATFORM_TIME_MACRO. The page
    gave MBEDTLS_PLATFORM_TIME_ALT and mbedtls_platform_set_time, which works but
    leaves a newlib build with nosys.specs linking the _gettimeofday stub, with a
    linker warning.

RFC compliance at this release

RFC Total Supported Partial Not Met N/A
RFC 5424 40 33 0 0 7
RFC 5425 21 16 0 0 5
RFC 5426 16 7 0 0 9
RFC 6587 8 7 0 0 1

No clause changed status since 0.4.0, and no row was added or removed.

The maintainer's assessment, not a certification; each status assumes a conforming
platform supplying the roles it needs. The full matrix:
docs/rfc-compliance.md at v0.5.0.

Known limitations

No defect in the library is tracked at this release.

Verifying this release

Six assets are attached: the CycloneDX SBOM, the content-tree SHA-256 and the offline
documentation bundle, each with a cosign signature bundle. Signing is keyless via
GitHub OIDC; there is no personal key. The bundle carries the test report and
coverage of the tagged commit. Commands:
docs/security/release-verification.md at v0.5.0.

⚠ BREAKING CHANGES

  • S52.01 the block store takes its number of blocks from its device (#1279)

Features

  • S48.01 every CI run records the compiler and upstream versions each pack was tested against (#1197) (e80ffa0)
  • S48.03 a rebuilt image reaches solid-syslog as a tested pull request without a hand-edited digest (#1200) (73ab01b)
  • S50.01 the NUCLEO-F767ZI is brought up and CI builds its firmware (#1223) (9890920)
  • S50.03 the lwIP Raw target sends UDP and TCP from the NUCLEO-F767ZI (#1232) (e7197ac)
  • S50.05 the CMSIS-RTOS2 lwIP Sockets target runs on the NUCLEO-F767ZI (#1261) (ba9c728)
  • S50.06 the FreeRTOS-Plus-TCP target runs on the NUCLEO-F767ZI (#1263) (9ce15ca)
  • S50.07 the NUCLEO-F767ZI stores to a MicroSD card, and runs the @store scenarios (#1258) (c53d824)
  • S50.08 the FreeRTOS-Plus-TCP image on the NUCLEO-F767ZI stores to the MicroSD card, and runs the @store scenarios (#1265) (690341d)
  • S50.09 the CMSIS-RTOS2 image on the NUCLEO-F767ZI stores to LittleFS on the W25Q128, and runs the @store scenarios (#1267) (c114327)
  • S50.11 the NUCLEO-F767ZI runs with its caches on (#1250) (a56a0ae)
  • S50.12 the NUCLEO-F767ZI is given the time, and runs the @rtc scenarios (#1253) (e69dbc0)
  • S52.01 the block store takes its number of blocks from its device (#1279) (6c45e4d)
  • S52.02 a NUCLEO image keeps its block store directly on NOR flash, measured beside LittleFS (#1304) (d10c329)
  • S52.02 an SPI NOR flash pack fills the flash seam from the part's SFDP table (#1293) (e0d67cf)
  • S52.02 the block store's blocks can be kept directly on NOR flash (#1287) (e6630a0)
  • S52.04 the SPI NOR flash pack calls the bus's WhileBusy while it waits for the part (#1306) (5700012)
  • S53.01 the logger asks the device whether capture is on, and holds records in RAM until it knows (#1282) (16ea1f2)
  • the logger holds delivery back until the device says its destination is known (#1235) (beeed5a)

Bug Fixes

  • a block store over its block ceiling evicts down to it before a rotation takes a block (#1297) (f8a72bf)
  • a LittleFS file is opened again after every write (#1294) (0c12722)
  • the contiguity step waits for a report the store drains behind the last client record (#1185) (66226f9)