Skip to content

The signed channel publishes every driver unable to control anything #30

Closed

Description

@frahlg

tools/ftw_repository.py makes every published artifact write-inert: it replaces host.modbus_write, host.mqtt_pub and the rest with a function that raises, and overwrites driver_command and driver_default_mode after the source loads. The manifest then marks all 80 drivers read_only: true, control_enabled: false.

The bundled copy has none of that. Since #673 FTW bundles a pinned snapshot of this repo, so the same source file can drive a battery when it ships with the build and cannot when it is downloaded from the channel.

The manifests were no help either: 16 of 18 battery drivers carry a working driver_command while their catalog manifest still says control: false. The control logic was ported; the manifest never caught up.

So the code should decide. A driver that has driver_command is published with its control path intact and the write permissions for its protocol. A driver that declares read_only in its own DRIVER table — a meter or a telemetry gateway saying what it is — keeps the write guards, and that statement outranks everything else.

FTW also has to stop refusing them: directManifestRuntimePolicy returns an error for any device-drivers artifact that is not read-only.

Activity

  1. added a commit that references this issue on Jul 26, 2026
    3f0171d
  2. added a commit that references this issue on Aug 10, 2026
    3dfdfba
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions