Skip to content

Releases

v0.14.0

Choose a tag to compare

@anto294 anto294 released this 27 Nov 19:35

Added

  • The web UI speaks German, Brazilian Portuguese, Russian and Japanese.
    Pick the language from the flag in the header, or let the browser choose;
    the alerts can be sent in it too (Settings → Notifications, or
    NOTIFY_LANGUAGE).

Changed

  • Failure risk and life no longer frighten for nothing. The failure rate
    of a drive is now the rate of drives of its age in Backblaze's 2025 data
    (about 1.4 % a year until around 8 years), raised by how much its SMART
    counters raise it; a hard drive shows the chance it still works in 1, 3
    and 5 years instead of a number of years left; seven colours from green to
    red replace three levels, and counters above 0 take their own colour
    instead of always red.

Fixed

  • A healthy hard drive showed "medium" risk and almost no life left. A
    clean count of spin retries read as 5.5 % a year, and the life of a hard
    drive ended at 5–7 years of power-on time.

v0.13.0

Choose a tag to compare

@anto294 anto294 released this 22 Nov 10:00

Added

  • A newer release is named in the footer. Once a day the web UI asks
    GitHub for the latest release; when it is newer than the one running, the
    footer links to it. Nothing about the host is sent, nothing is installed,
    and CHECK_UPDATES=false turns it off.

Changed

  • Drive details in a window. Details on a drive card opens its SMART
    table, attributes, failure rates and trend in a window over the page, so
    the Drives tab stays short.
  • A drive card that shows an estimated life left now says, on the card itself,
    that it is only a statistical estimate that may not match reality.
  • The title of the failure rates under Details names only their source,
    Backblaze's data.

Fixed

  • A broken settings.json no longer deletes history or SMART data. While
    the file could not be used, the hourly cleaning followed the environment
    that stood in for it: it could delete the SMART data and trend of drives the
    file monitored, and samples the file kept for longer. Nothing is deleted
    until the file is fixed, and the log says so once.
  • Archiving or deleting a drive no longer overwrites a broken
    settings.json.
    While the file could not be used, the change saved the
    environment variables that stood in for it over the file. It is now refused
    with a message that asks to fix or reset the settings first.
  • A drive that hangs when opened no longer keeps the fans from starting.
    The startup checks open every drive, and the fans and the sensor scan
    waited for them: an open() stuck on a dying drive left the fans
    uncontrolled. The checks now run beside the start, and their banners show
    once they end.
  • An archived drive added back in Settings is no longer stuck. It stayed
    marked as archived while monitored, so it could be neither restored nor
    deleted. Saving or resetting the settings now takes the mark off every drive
    they monitor, and restoring a drive that is monitored already only takes its
    mark off.
  • An archive that cannot be saved no longer leaves the drive marked. When
    the settings could not be written (a full or read-only /config), the drive
    stayed monitored but marked as archived; the mark is now taken off again.
  • A database error while a drive is deleted is reported clearly. A failing
    history.db gave a bare server error; it now gives the same "cannot save"
    message as a failing /config.
  • No drive can be archived or deleted while /dev shows none. When /dev
    could not be read (no drive listed at all), every drive looked gone, a
    present one too. Archive and Delete are now refused with a message about
    /dev, as the SMART cards and the missing drive alert already did.
  • The log no longer says that fans came back when more of them went. When
    the chip of one more fan disappeared, the log said the fans "came back" and
    listed every fan found. It now names the fans that came back and the ones
    that are gone, each on its own line.
  • The state no longer reads "Running" when no fan can be driven. When the
    chips of all the chosen fans were gone, the state said Running because
    hddfancontrol was measuring. It now says Fans not found, in red.
  • An error in the page no longer stops its updates. A round of polling that
    failed with an unexpected error stopped that polling for good, until the page
    was reloaded; during manual control, the status it stopped asking for ended
    manual control after two minutes. The next round now always runs.

v0.12.0

Choose a tag to compare

@anto294 anto294 released this 21 Nov 20:42

Added

  • Archive or delete a drive that is gone. A monitored drive no longer on
    the host shows as gone on its card in the Drives tab, with two
    buttons. Archive stops its SMART reads, self-tests and alerts and keeps
    its last SMART data and its history, in a new Archived drives section
    where it can be monitored again. Delete (it asks twice) removes all it
    left: SMART data, history, alert notes, name and bay. A drive that drives
    the fans must leave fan control in Settings first. Nothing restarts.
  • Permissions and devices checked at start. The web UI looks for what
    would keep it from working (not root, /config not writable, no drive in
    /dev, a drive or a fan file it cannot open, the capabilities for SMART and
    the sensor modules, a missing program) and names each problem with what to
    do, in the log and in a banner that can be hidden.
  • SMART trend. The error counters (reallocated, pending and
    uncorrectable sectors, CRC errors and more) and the wear of SSDs are kept
    once a day for as long as the drive is monitored; Details → Trend on
    each drive card draws them, so a counter that keeps growing is easy to see.
  • Failure risk and estimated life left of each drive. As Scrutiny does,
    each error counter is matched with the yearly failure rate Backblaze saw on
    drives with the same count, shown per attribute under Details; the card
    shows the drive's risk (low, medium, high; raised when a counter grew in
    the last 30 days) and an estimate of the years left: from the wear for
    SSD and NVMe, from the age and the risk for hard drives.

Changed

  • The page asks for less while it is open. The log lines are asked for only
    while the Logs tab is open (it catches up when opened); the hardware
    readings and the status redraw only the tab shown (the header and the
    banners always).
  • Lighter readings of the hardware. The sysfs files are read with fewer
    system calls, the history reads only the fans and the names of the drives,
    and pages that ask for the hardware at the same moment share one reading.

Fixed

  • The web UI no longer keeps drives awake through drivetemp. With the
    drivetemp kernel module loaded, each reading of the hardware (every few
    seconds while a page is open, and for the history) read the drive
    temperatures of its sensors, and the kernel answers each one with a command
    to the drive, which may keep it from spinning down. Those inputs are now
    listed without a value; the drive temperatures still come from
    hddfancontrol, which leaves sleeping drives alone.

v0.11.1

Choose a tag to compare

@anto294 anto294 released this 20 Nov 17:19

Changed

  • Settings warn when the history is too short for the fan wear check.
    Under 14 days of history the check never starts, since it compares
    each fan with its first week once its history is two weeks old; the
    field now says so.
  • The Control card of the Overview in three groups. Fan control (state,
    mode, the hottest drive and the speed each fan was given), Services
    (hddfancontrol and hd-idle, with the Restart button under them) and
    Host (processor time, load and temperature), instead of one long list.

Fixed

  • Old error messages go away after importing a backup or going back to
    the environment.
    The errors of a save that had been refused stayed
    under the fields, with "Some values are not valid", although the
    import or the reset had worked.

  • A failed temperature reading no longer ends a "drive hot" alert.
    When hddfancontrol could not read a hot drive once (common during a
    scrub), the alert ended and a new urgent one started at the next
    reading. The last temperature is now kept for a few readings, as fan
    control already did.

  • A host of the LAN can no longer lock you out of the login. With
    IPv6, ten wrong passwords from any host of the same network refused
    every other host of it, yours too, for 15 minutes. Now only the
    address that sent them is refused; the rest of its network is just
    slowed down a little.

  • A broken or full log output can no longer stop the fans' safety.
    The lines of the log were written to the container's output on the
    same thread as fan control. When that output was gone, an error at the
    wrong moment ended fan control with the fans left at their last speed;
    when it was full, everything waited, the safety rules too. The lines
    now go out from a separate thread (dropped from the container's output,
    never from the Logs tab, when it cannot keep up), the fans are set
    to full speed before the reason is logged, and they are given back at
    a stop even after such an error.

  • A missing fan chip no longer stops all fan control. When the chip of
    one chosen fan was missing at start (its module loaded late by an Init
    Script, or renamed by a kernel update), no fan was controlled and the
    drive temperatures were not even measured, so neither the safety rules
    nor the hot alert could act, until a restart. Now only the fans of that
    chip are left alone: the others are controlled and the drives watched.
    The web UI looks for the chip every minute and after Scan again, and
    controls its fans as soon as it is back. The drive temperatures are also
    measured when no fan is chosen yet.

  • A PWM test always ends. If the watch of the drive temperatures
    failed during a PWM test, the test stayed "running" for ever: every
    change answered Busy, the tested output stayed at the last value of the
    test and hddfancontrol did not start again. Now an error of the watch
    stops the test ("the drive temperatures could not be watched"), and the
    outputs are given back and everything starts again in every case.

  • A full or read-only /config no longer stops fan control at start.
    When the hwmon number of a fan chip changed at a reboot and the settings
    or the fan name could not be written, nothing started. Now the error is
    logged and the fans are controlled at their new place anyway.

  • No old temperatures after new settings. After an apply that added
    or removed an extra sensor (or changed the drives), the last sample of
    the run before was read with the new settings: the processor could count
    as a drive (fans at full speed, a false "drive hot" alert), or a hot
    drive be ignored for one interval. Samples of an earlier run of
    hddfancontrol are now ignored until it writes a new one.

  • A failed sensor scan no longer blocks the next ones. An unexpected
    error during Scan again left the scan "running" for ever, and every
    later scan was refused as busy. It now ends with the error shown.

  • HWMONS with a path that holds :. Such a path (a PCI one under
    /sys/devices/) was cut at its first : into a wrong path and a wrong
    range. It is now read whole and refused with a clear message, since
    hddfancontrol itself cannot read it: give the same input under
    /sys/class/hwmon/.

  • Reading SMART again and scanning the sensors no longer fail on big
    servers.
    With several drives (or a slow sensors-detect) the page got
    "core unavailable" while the work went on. Both now start at once and
    run in the background: the button stays off until the new data are in.

  • Manual control reacts at once when hddfancontrol stops. In manual
    control a crash of hddfancontrol put the fans at full speed only after
    the stale limit (2 minutes or more); now it does at once, as in the
    automatic modes.

  • The history keeps recording after a busy database. When saving a
    sample failed at its last step, every later sample failed too, until a
    restart.

  • After the web UI was killed, every fan goes back to the chip. When
    the container was killed (out of memory, docker kill) a fan it had
    set but no longer drives stayed at its last speed until a reboot. At
    the next start it now gets its own mode back.

  • A fan whose mode cannot be read is given back at full speed. On a
    driver whose pwmN_enable cannot be read, a fan was left at a fixed
    speed when fan control ended; it now goes to full speed, the safe side.

Security

  • A path or name ending in a line break is refused. A drive such as
    /dev/sda followed by a line break was accepted in the settings and
    reached the command lines of hddfancontrol and hd-idle.
  • Uninstalling keeps the web UI's user while its files stay.
    install.sh --uninstall removed the hddfancontrol-webui user but kept
    its login data, which then belonged to no one, and a system account
    created later could get them. The user is now removed only by
    --purge, after its files.
  • The bare metal install downloads nothing. install.sh installed
    aiohttp and its dependencies from PyPI as root, at whatever versions
    were current. The tarball now carries them, at fixed versions checked
    against their hashes, and the install uses only those.
  • Refused requests can no longer flood the log. Each refused address or
    host name was logged once an hour, but a client sending a new made-up
    name with every request still got one line each. At most 20 such lines
    are now written per hour; the rest are counted in one line.
  • The web side can no longer reach the terminal it was started from.
    When the web UI was started by hand from a root shell, its unprivileged
    web side shared that terminal. It now gets no input and a session of
    its own.
  • The notification token is no longer shown. The settings returned the
    notification address in full, with its Gotify token, ntfy topic or
    webhook token (Slack, Discord), to the page and in the settings backup. It is now shown with those parts
    hidden (•••); saving without touching the field, or importing a
    backup, keeps the saved address, and typing a new one replaces it.
  • Notifications can no longer be aimed at the NAS itself. The
    notification address accepted localhost, 127.0.0.1 or the cloud's
    metadata address 169.254.169.254, and Send a test message told
    whether something answered there: a way to probe services that only
    the NAS can reach. Such addresses are now refused, also when a name
    leads to them. Servers on your LAN are still fine; for one running on
    the NAS itself, use its LAN address.
  • The password of a notification address no longer reaches the log.
    An address such as https://user:password@host/ was logged whole when
    a message failed. Only the host and port are logged now.
  • Pages of other sites can no longer reach the API, even to read.
    Another web app on the same NAS (another port is the same "site" for
    cookies) could keep manual control from ending by asking for the
    status in the background. The browser marks such requests, and the
    web UI now refuses them.
  • The hardware support request no longer carries serial numbers. Its
    log lines named the drives by their /dev/disk/by-id names, which hold
    the serial number, although the form promises none. They now show the
    kernel name (sda) instead.
  • Changing the password always ends a stolen session. The sessions
    were cleared in the background thread that saves the new password,
    while the web server kept using them: a session used at that very
    moment could survive the change. They are now ended once the change is
    saved, in step with the requests.
  • Connections from outside the allowed networks are closed at once.
    Addresses outside WEBUI_ALLOW were refused only after their request
    was read, and an incomplete request was waited for without end: a
    client could hold thousands of silent connections until the web UI
    answered nobody, its health check included. Now such an address is
    closed before anything is read, each address may keep 64 connections
    open (512 in all), and each request must arrive complete within 30
    seconds. The fans were never affected.
  • The bare metal tarball is built only from pinned tools. The release
    workflow installed its build tools at their latest version without
    checking them; they now come at an exact version with their checksums,
    and the token that can change a release is given only to the step that
    uploads the files.
  • A /config the gateway could write no longer stays in use. When the
    folder could not be closed to the web UI's own user (an ACL, NFS with
    root squash), the web side only moved its login data elsewhere, while
    the root side kept its files there. A web side taken over could then
    make root write any file through the saved fan state. Now the web UI
    does not start at all in that case (the fans are still controlled, and
    the log says why); a folder with the sticky bit ...
Read more

v0.11.0

Choose a tag to compare

@anto294 anto294 released this 19 Nov 11:35

Added

  • Move the bays like blocks. In Drives → Bay map, drag a bay by
    its grip onto another and the two swap their drives, with the mouse or
    a finger; pressing one grip and then the other does the same, also from
    the keyboard. Nothing is saved until Save the map.
  • Ask for support of your hardware from the web UI. When fans,
    sensors or a server are not supported, Fans → Hardware not
    supported?
    (also a button in the "No PWM output" banner) prepares a
    hardware support request:
    board and BIOS names, kernel, every hwmon chip with its files, the
    sensor modules, the drives and the last hardware log lines. You see it
    all first; Open on GitHub opens the issue form filled in, Copy
    copies it. It has no serial number, and addresses in the log are
    masked.

Changed

  • For any Linux host. The README now shows the way to install on
    TrueNAS SCALE, Proxmox VE, Unraid, OpenMediaVault and any distribution
    with systemd, and that the web UI must run on the host that has the
    fans (not in a virtual machine or an unprivileged LXC container). Each
    image tag on ghcr.io says what it is: a release, edge or
    experimental.

v0.10.1

Choose a tag to compare

@anto294 anto294 released this 18 Nov 11:45

Fixed

  • A bay holding a drive that is only monitored no longer says "Not
    found".
    Such a drive is not measured by hddfancontrol, so the bay map
    took it for a drive gone from the host, with the red frame. It now
    shows its last SMART temperature, marked SMART and without the colors
    of the limits (those of the drives that drive the fans), or "—", and
    "Not found" only for a drive that is not on the host. The overview
    loads the SMART data the server keeps when it shows the bays, so the
    SMART temperature and problems show without opening the Drives tab.

v0.10.0

Choose a tag to compare

@anto294 anto294 released this 18 Nov 11:29

Added

  • Five more languages: Spanish, French, Chinese (simplified), Hindi
    and Arabic, for the web UI and for the alerts (NOTIFY_LANGUAGE). The
    page follows the browser or the language picked in the header; in
    Arabic it reads from right to left.
  • The bays show their drives moving. Each bay of the overview draws
    its drive: a hard drive whose platter turns while it spins (still in
    standby) and whose head moves while it reads or writes, an SSD or an
    NVMe stick whose electrons run between controller and flash. An
    activity light flickers with the real I/O of the drive, read from the
    kernel's counters (/sys/class/block/*/stat), which never wakes a
    drive; the tooltip gives the share of busy time and the read and write
    rates. Nothing moves for those who asked their system for less motion.
  • Processor use, load and temperature in the Control card of the
    overview: the share of busy time of every processor, the load average
    and the package temperature (coretemp, k10temp, zenpower or the
    cpu_thermal of ARM boards).
  • A composer for the schedules. Next to each cron field of
    Settings → Schedules, Compose opens a small form that writes
    the expression: every few minutes or hours, at a time on chosen days
    of the week or of the month, or, for the quiet hours, from one hour
    to another on chosen days. It reads back the expressions it can write;
    any other stays as typed until the form is used.

Changed

  • Other temperature sensors in Settings start folded, with the
    number in use next to the title: a board can have dozens of inputs. So
    do Limits per drive (with the number of drives that have their
    own), Advanced (with the interval and the days of history) and
    Backup. A problem with a field of a folded section opens it.
  • Texts of the web UI are shorter or more precise: the option to
    give the fans back their settings says that it acts when the web UI
    exits, the drives tile counts the drives awake (SSDs too), and the
    read-only banner, the manual control help and the backup help say the
    same in fewer words.

0.9.0

Choose a tag to compare

@anto294 anto294 released this 17 Nov 21:19

Changed

  • The web UI moves to port 28462 (it was 8080, a port many other
    apps want). After the update, an app installed from the old example
    publishes 8080:8080, where nothing listens any more: change the
    line to "28462:28462" (on TrueNAS: Apps → hddfancontrol → Edit)
    and open http://<nas>:28462, or keep the old port with
    WEBUI_PORT=8080. Bare metal installs keep the port of their
    /etc/hddfancontrol-webui/env.
  • The web UI answers only host names of the LAN: IP addresses,
    localhost, names without dots and names ending in .local, .lan,
    .home.arpa, .internal, .localdomain, .fritz.box, .home or
    .ts.net; any other name gets 403, against DNS rebinding. Behind a
    reverse proxy with a public domain, set the new WEBUI_HOSTS
    (for
    example WEBUI_HOSTS=nas.example.com, *.example.com, or any); the
    log names the value to set. /healthz answers any name.
  • HTTPS is on by default (ENABLE_TLS defaults to true), with a
    self-signed certificate made at the first start unless TLS_CERT and
    TLS_KEY are set. The same port still answers plain HTTP, so
    bookmarks and the health check keep working; FORCE_HTTPS stays off.
    ENABLE_TLS=false turns HTTPS off. Without openssl (bare metal) the
    web UI stays on HTTP and says why in the log. The login page, opened
    over plain HTTP, warns that the password crosses the network in clear
    text and links to the HTTPS address.

Security

  • A fan's PWM path must be /sys/class/hwmon/hwmonN/pwmN, a sensor's
    path a /sys path ending in /tempN_input, and a fan's chip a path
    under /sys/devices. Any /sys file was accepted, and the fan
    controller, which runs as root, wrote fan speeds into it: a saved
    setting with /sys/block/sda/device/delete as a fan removed a drive.
    Settings with other paths are refused (the environment's too).
  • A drive must be /dev/disk/by-id/…, /dev/disk/by-path/…, /dev/sdX
    or /dev/nvmeNnN (or an interface name such as ata, for the fans):
    any /dev node was accepted and handed to smartctl, hdparm and hd-idle
    as root.
  • A fixed ceiling, whatever the settings say: a SATA/SAS drive at 65 °C,
    or an NVMe drive at 80 °C, puts its fans at full speed in every mode,
    manual control included, and raises the hot drive alert. Drive
    temperatures in the settings go up to 80 °C (they took 120), and a
    drive's own limits up to 70 °C unless it is NVMe; sensors keep 120.
  • A /config that the web server's user could write (its own, its
    group's, or everyone's) is given to root and closed to writes by
    others at start, with an error in the log; when that fails, the login
    data are not kept there. The files of /config are written through a
    new temporary file with a random name, never a fixed .tmp name that
    could be a planted link.
  • When WEBUI_USER does not exist (or is root, or in root's group), the
    web server no longer runs as nobody, which other services may share:
    it does not start, the log says why, and the fans are still controlled.
    The installer stops when it cannot create its user.
  • Notifications never follow a redirect (the message would go wherever
    the server says), and a failure shows a short reason in the web UI's
    log; the detail, with the server's host but never the address's query
    (a Gotify token), goes to the container's log.
  • With LOAD_SENSOR_MODULES=false the Scan again button (and
    POST /api/sensors/scan) no longer runs sensors-detect and
    modprobe anyway: it answers that loading modules is off.
  • The web server's Python runs isolated (python -I): no Python
    variable of the environment, and no module from its working folder,
    can change what it imports. Its HOME is no longer a folder it can
    write.
  • A temperature sample timed more than a minute in the future (a clock
    that jumped back) counts as old: the fans go to full speed instead of
    trusting it for as long as the clock is off.
  • The history CSV writes a name or label that starts like a formula
    (=, +, -, @) with a quote in front, so a spreadsheet opens it
    as text instead of running it.
  • The systemd unit keeps only the capabilities the web UI needs
    (CapabilityBoundingSet), and adds ProtectKernelLogs and
    ProtectClock.
  • At start, the files of /config that older versions left readable by
    every user (the history, the temperature log) become readable by root
    only; the web server's folders keep their modes.
  • Saving settings with a drive name that leads to something other than a
    block device (a link to /dev/null, say) answers 400
    not_block_device; a name that leads nowhere (an unplugged drive) is
    still accepted.
  • Saving settings with a fan that is no PWM output of the host answers
    400 unknown_pwm. Such a fan in a saved file is not controlled, like
    one whose chip is gone, and manual control never writes it either.
  • The bare metal package needs aiohttp 3.14.4 or later, the first
    release without known security advisories.
  • The bare metal tarballs come with a signed provenance attestation:
    gh attestation verify <tarball> --repo anto294/hddfancontrol_webui
    checks that the release workflow built them from the tagged source.
  • Known issue: the Docker image still uses Alpine's aiohttp (3.13.5 in
    Alpine 3.24), affected by advisories fixed in aiohttp 3.14.4; it moves
    to it when Alpine ships it. Keep the port to the LAN meanwhile.
  • The limit on wrong passwords counts an IPv6 /64 as one client, and
    after 100 wrong passwords from all clients together it slows down the
    clients that sent one (2 s per check, doubling up to 30 s, one at a
    time): a host with many addresses could guess without limit. Nobody is
    refused for it, and a client without a wrong password is not slowed.
  • A guess at WEBUI_PASSWORD now costs a scrypt hash, like one at a
    stored password, and the password itself is not kept in memory.
  • A path with a .. part, such as /static/i18n/../app.js, could pass
    the login as a public file of the login page and then be served as a
    file of the web UI (only from its own folder). Such paths now get 404.
  • A wrong current password, when changing the credentials, counts
    against the login limit like a wrong login.

Fixed

  • The PWM test is watched: hddfancontrol keeps measuring the drives
    during it, and the test stops by itself, with the fans given back to
    their control, when a drive reaches its maximum or the temperatures
    stop coming in. The test of one fan stops after 10 minutes. The page
    says why a test was stopped.
  • Odd numbers in the settings or a schedule (a ² in a cron field, a
    temperature of 1e400, an interval with thousands of digits) are
    reported as invalid values instead of stopping the start or answering
    500.
  • A settings.json that is not UTF-8 or is nested too deep, or any other
    error reading it, no longer stops the start: the environment is used,
    with the error shown, as for a file with invalid values.
  • A labels.json or bays.json nested too deep no longer stops the
    start: it is logged and the web UI starts without labels or bay map.
  • A corrupt history.db no longer stops the start: it is renamed
    history.db.corrupt-<time> and a new history begins, with an error in
    the log.
  • At stop the fans go back to the chip (or stay at full speed, with
    RESTORE_FAN_SETTINGS=false) before anything else stops; a PWM test
    running then is cancelled and nothing starts again. They used to wait
    for the web server and the daemons, up to 30 s, and Docker kills a
    container after 10 s: the fans could stay at a manual value. The
    compose example sets stop_grace_period: 60s (add it to an existing
    TrueNAS app), and the systemd unit TimeoutStopSec=60.
  • After the web UI was killed (out of memory, docker kill), the next
    start saved the fans' manual leftovers as the chip's own state and gave
    them back at every stop: the fans stayed fixed for good. The chip's
    state is now kept in /config/pwm-state.json for the current boot and
    used again after such a kill; an output found in manual mode with no
    saved state gets full speed when given back.
  • A JSON body nested too deep gets 400 invalid_json instead of an
    internal error with a traceback in the log.

0.8.0

Choose a tag to compare

@anto294 anto294 released this 17 Nov 17:00

Security

  • Privilege separation: the web server no longer runs as root. The core,
    which drives the fans and the drives, runs as root and listens only on
    a Unix socket; a new gateway process, run as the unprivileged user
    hddfancontrol-webui (WEBUI_USER), holds the port, HTTPS, the login,
    the CSRF check and the pages, and passes on only the requests of a
    logged-in user, with who sent them. The core checks the user of every
    connection, and the gateway gets only the environment it needs.
  • No open first start: without credentials only the setup page answers,
    and creating them needs a one-time code written in the container's log
    (a new one at every start). Credentials can be changed but no longer
    removed.
  • The port answers only private networks by default (LAN, loopback,
    link-local, carrier-grade NAT and unique local IPv6, so VPNs such as
    Tailscale work); WEBUI_ALLOW sets others, private for the default
    ones (private 2a02:…::/64), or all. A refused global IPv6 address,
    which a LAN with IPv6 also uses, is logged with the value to set.
  • Sessions end after 12 hours without use (and 7 days after the login).
  • Audit log: every change is logged with the user and the client address;
    logins, wrong passwords and setup codes, and refused addresses too.
    The same change repeated within a minute (a fan slider) is logged once
    with a count.
  • More security headers (Cross-Origin-Opener-Policy,
    Cross-Origin-Resource-Policy, Permissions-Policy), and no server
    version in Server.
  • The compose example runs the container with no-new-privileges, a
    process limit and a small /tmp without exec; the systemd unit gets
    more sandboxing. Everything the core writes in /config is mode 0600.

Changed

  • The credentials and the TLS files move from /config to /config/web
    (done by itself at the first start). WEBUI_PASSWORD is no longer in
    the compose example: the first visit creates the credentials.
  • A TLS_CERT/TLS_KEY pair is copied at start to /config/web-tls,
    where the gateway can read it; only one of the two set is reported as
    an error instead of falling back to a self-signed certificate.

v0.7.1

Choose a tag to compare

@anto294 anto294 released this 17 Nov 11:07

Security

  • FORCE_HTTPS no longer answers plain HTTP with a redirect built from
    the Host header, which a client can forge: a page asked over HTTP
    now gets a small page that moves the browser to HTTPS from its own
    address, and the API, /metrics and changes refuse plain HTTP (403).