Skip to content

BSDnas v0.1.5-dev — signed package repositories, SMB with stock Samba

Pre-release
Pre-release

Choose a tag to compare

@kamuzon kamuzon released this 02 Nov 20:44

Development pre-release built from BSDnas-15-MASTER-202611021956
(middleware ac18647317, core-build 7fa05a4, pkgtools 39eab18, FreeBSD base
c7d7dee1e397 on stable/15).

About the version number: "15" is the line that follows FreeBSD's stable/15
branch and moves on to the next FreeBSD minor version by itself, without a
new name. This build is based on 15.1-STABLE. Releases tied to an exact
FreeBSD version (15.1, 15.2 ...) will be published separately.

Signed package repositories:

  • The base-system and ports package catalogues are now signed, and a system
    on this build checks them against a key fingerprint shipped in the image
    before updating. A catalogue that is unsigned, altered or signed by another
    key stops the update instead of being skipped. The fingerprint directory
    has trusted/ and revoked/ parts, so the key can be replaced later without a
    new mechanism.
  • Systems on earlier builds do not check catalogue signatures; the signed
    catalogues work for them as before. The train manifest stays signed and
    verified as in v0.1.4-dev.
  • Publishing refuses a catalogue that clients would reject.
  • An update by packages now replaces the middleware. Before, its package
    kept the same version number from build to build, so pkg left the old
    middleware in place while the rest of the system moved on; this applied
    to updates by packages from v0.1.4-dev. The package now carries the
    revision of its source.

SMB:

  • Group mapping synchronisation works with the stock Samba 4.23 from ports.
    It used a JSON interface of net groupmap that exists only in iXsystems'
    patched Samba and failed at every SMB start; builtin, local and SMB group
    mappings are now created, updated and removed.
  • The SMB service reports its real state: RUNNING after boot when smbd serves
    shares (it showed STOPPED before), and winbindd is started at boot.
  • NetBIOS (nmbd, UDP 137/138) runs only when NetBIOS is enabled in the
    network settings, and turning the setting on or off starts or stops it.
  • Share changes reach already connected sessions on reload.
  • Starting SMB or WS-Discovery, and saving network settings, no longer hang
    for a minute: the WS-Discovery daemon released the caller's output only
    when it exited.

Verified on this build, 2 November 2026 (the two installer runs were made on
the build before it, 202611021847, which differs only in the version numbers
of the middleware and py-bsd packages):

  • Clean install in a virtual machine: READY with no pools; with a pool, an
    SMB user and share after a reboot the SMB service is RUNNING, group
    mappings are present, nothing listens on the NetBIOS ports, a file written
    over SMB reads back unchanged.
  • Upgrade from official TrueNAS CORE 13.3-U1.2 in a virtual machine with the
    installer's "Upgrade Install": pool, share and jail preserved, a file
    written under 13.3 reads back unchanged over SMB, the CORE boot
    environment kept.
  • Update from v0.1.2-dev straight to this build through the train, skipping
    v0.1.3-dev and v0.1.4-dev: data pool, user and share preserved, 12 of 12
    files matching locally and over SMB, the new middleware and package
    signature check in place.
  • On physical hardware, update from v0.1.4-dev to this build by packages:
    the new middleware installed, data pool with 12 of 12 checksums matching
    locally and over SMB, partition tables and the configuration secret
    unchanged, the SMB service RUNNING after boot. Recorded from the
    machine's screen.
  • On the updated systems the generated package configuration checks
    catalogues by fingerprint: the published catalogues are accepted, a
    wrong fingerprint makes pkg refuse them.

Known issue: smbd also listens on TCP 139 when NetBIOS is disabled, as in
TrueNAS CORE 13.3.

Not tested: varied controllers, real workloads, long-running systems, swap
under load.

Verify the image with SHA256SUMS and its detached signature
(BSDnas-signing-key.asc, ed25519 fingerprint
58528D1CDBDAAF7B01ED2BBE1E2F7A792066322D).