Skip to content

Releases

v3.4.2

Choose a tag to compare

@nathawatc nathawatc released this 31 Oct 01:44
v3.4.2
eaf94ce

Highlights

  • Faster authentication startup and first-frame processing.
  • Lower face-matching overhead, especially with larger enrolled face sets.
  • Better CPU utilization by sizing OpenCV worker threads to available physical cores.
Area Before After Improvement
End-to-end authentication 468.18 ms 301.06 ms 167.12 ms lower
Fresh-process startup 234.87 ms 216.34 ms 7.9% faster
Camera open → first usable frame 282.84 ms 220.79 ms 62.05 ms lower
Cosine matching, 64 candidates 11.58 µs 4.11 µs 2.8× faster
L2 matching, 64 candidates 8.58 µs 4.17 µs 2.1× faster

Further reductions are now increasingly limited by the underlying OpenCV/camera baseline.

  • More consistent camera behavior across authentication, enrollment, snapshot, test, and preview paths.
  • Added 180° camera rotation support.
  • Improved manual exposure handling for cameras that only accept exposure changes after streaming starts.
  • More robust PAM authentication and auth-helper resource handling.

Breaking Changes

This release requires:

  • Linux 5.3 or newer
  • glibc 2.36 or newer

Changes

Performance

  • Overlapped face-model initialization with camera startup.
  • Reworked face matching into a prepared single-pass path with reusable candidate state.
  • Moved CLAHE after frame resize to avoid unnecessary image processing.
  • Removed redundant camera warm-up and prefetched SFace before the first real encode.
  • Sized OpenCV worker threads to available physical CPU cores.
  • Added validation for prepared matcher state while preserving existing scoring and threshold behavior.

PAM and Runtime

  • Replaced the previous 10 ms compare polling loop with pidfd-based waiting.
  • Hardened auth-helper descriptor ownership, child cleanup, lease handling, and exceptional paths.
  • Replaced process-global openlog() usage with PAM-safe logging.
  • Hardened production HOWDY_* path override handling.
  • Fixed staged-model ownership handling when the staged model directory does not exist.

Camera

  • Added video.rotation = 180.
  • Applied rotation consistently across authentication, enrollment, snapshot, test, and preview paths.
  • Improved manual exposure handling for enrollment and snapshots, including post-warm-up reapplication where required.

Build and Tests

  • Improved cross-compilation, pkg-config isolation, staged installs, and install preflight validation.
  • Improved incremental clang-tidy input tracking.
  • Migrated major integration tests from shell to native C++.
  • Expanded regression coverage across compare, PAM, camera, CLI, storage, and CMake behavior.

v3.4.1

Choose a tag to compare

@nathawatc nathawatc released this 31 Oct 01:43
v3.4.1
5e7e090

Highlights

A lot of hardening, portability, and build-system cleanup, plus NixOS support.

  • Added NixOS support with a flake, NixOS module, and Nix-native privilege handling.
  • Hardened privilege-wrapper identity handling for sudo, doas, and pkexec.
  • Added missing persistent /dev/v4l/by-id/* camera paths.
  • Fixed howdy config editor discovery on NixOS and other non-FHS systems.
  • Fixed makepkg check() failures when the build directory is under a world-writable path such as BUILDDIR=/tmp/makepkg.
  • Hardened model downloads, configuration reads, PAM runtime staging, and atomic file operations.
  • Expanded strict static analysis and runtime ownership checks across the codebase.
  • Build system and CTest are now faster.
  • Unity builds are now enabled by default for normal CMake builds.
  • No config migration or face re-enrollment required.

Migration Guide

No required config migration. Existing configs and enrolled face models remain compatible.

Inline configuration descriptions were moved out of config.ini into the generated howdy.ini(5) reference.

man howdy.ini

for option descriptions, defaults, valid values, and configuration reference.

Changes

NixOS and Packaging

  • Added a Nix flake, NixOS module, development shell, and packages for x86_64-linux and aarch64-linux.
  • Added an OpenCV 5 Nix package and aligned its threading configuration with nixpkgs.
  • Added Nix-native privilege handling: the authentication helper uses security.wrappers instead of setuid bits in the immutable Nix store, while mutable Howdy state remains outside the store.
  • Added automatic polkit device-access compatibility when polkit is enabled; PAM integration remains explicitly opt-in.
  • Added full Nix package and CTest validation to CI and documented NixOS installation and PAM setup.
  • Fixed Arch makepkg test-suite failures when BUILDDIR is below a world-writable directory such as /tmp.

Security, PAM, and Privileged Runtime

  • Hardened invoking-user identity resolution across sudo, doas, and pkexec, rejecting malformed, incomplete, or conflicting wrapper metadata and validating sudo identity tuples coherently.
  • Hardened configuration-editor privilege dropping and execution of user-selected editors.
  • Reworked PAM staged runtimes around reusable locked slots with validated lease descriptors, inode identity, access modes, runtime paths, and lifecycle handling.
  • Bound secure configuration reads to the exact validated file descriptor, removing pathname validation/reopen gaps.
  • Hardened process spawning, cancellation, cleanup, descriptor ownership, PAM conversation handling, signal-mask behavior, and timeout-result preservation.
  • Restricted PAM module exports to the expected Linux-PAM entrypoints and made production dependencies and resource ownership more explicit.

Camera and Recognition

  • Added persistent /dev/v4l/by-id/* camera paths alongside existing /dev/video* and /dev/v4l/by-path/* support, with strict validation against unsafe or invalid targets.
  • Rejects an unconfigured camera before entering OpenCV.
  • Improved exposure handling by applying configured exposure before warm-up and containing exposure-restore failures during cleanup.
  • Hardened YuNet and SFace initialization, inference failure handling, and shared face-metric policy.
  • Improved camera and compare failure handling without changing existing enrolled face models or recognition data.

Configuration and CLI

  • Fixed howdy config editor discovery on NixOS and other non-FHS systems by resolving executables through the invoking user's PATH.
  • Supports bare executable names and absolute $EDITOR paths while rejecting shell-style command strings.
  • Generated the complete howdy.ini(5) configuration reference from shared schema metadata and moved inline option documentation out of config.ini.
  • Simplified and hardened configuration parsing, validation, editing, defaults, runtime loading, and atomic replacement around shared typed schema data.
  • Added explicit root-user targeting through the CLI and simplified production command dispatch and composition.

Model Downloads and Storage

  • Hardened model downloads with explicit TLS verification and secure model-directory creation.
  • Hardened enrolled-model parsing, storage, readiness validation, and mutation paths.
  • Improved atomic file handling, including no-replace fallbacks and clearer handling of filesystems that do not support atomic exchange.
  • Removed obsolete model-mutation paths and consolidated storage ownership and validation policy.

Build, Static Analysis, and Tests

  • Enabled CMake Unity builds by default and reorganized build outputs under build/<variant>.
  • Added optional CCache acceleration, cross-compilation emulator support, installed E2E artifacts, and separate Arch Linux and Nix CI environments.
  • Reorganized CMake and test definitions while preserving compile-command support for editor tooling.
  • Fixed secure-path test fixtures so builds below world-writable directories such as /tmp no longer inherit unrelated parent permissions, without weakening production path validation.
  • Expanded strict clang-tidy coverage and used it to harden ownership, lifetimes, bounds, POSIX error handling, descriptor management, callback validity, and ABI boundaries across the codebase.
  • Added incremental affected-TU clang-tidy analysis and removed redundant Release-mode analysis.
  • Expanded regression coverage for privilege identity, PAM staging and prompts, secure config reads, camera paths, model downloads, atomic storage, production CLI bindings, translation catalogs, and compare failure paths.
  • Improved CTest portability and execution, including Nix compatibility, parallelization, and removal of the PAM test suite's Python dependency.

v3.4.0

Choose a tag to compare

@nathawatc nathawatc released this 31 Oct 01:43
v3.4.0
37fc316

Highlights

A lot of reliability, security, and cleanup across PAM authentication, configuration, CLI, and privileged helpers.

  • Fixed password fallback on GDM/GNOME Lock Screen.
  • Hardened privileged helper FDs, terminal restoration, camera-path validation, and config updates.
  • Improved CLI parsing, completion, and errors.
  • Configuration, completion, and manual-page references are now generated from shared metadata.
  • Relicensed Howdy Next to GPL-3.0-or-later.
  • No face re-enrollment required.

Breaking Changes

  • License changed from MIT to GPL-3.0-or-later.
  • CLI parsing is stricter; invalid, duplicate, or extra arguments may be rejected.
  • Removed unused [snapshots] options save_failed and save_successful.

Migration Guide

No required config migration. Existing configs remain compatible.

Recommended to sync current config with new default config.

  • Inline descriptions were updated.
  • Unused save_failed / save_successful options were removed.

Changes

PAM and Authentication

  • Made graphical password fallback race-safe.
  • Prevents synthetic Enter after password prompt has already completed.
  • Prevents duplicate Enter submission.
  • Replaced inherited Enter-device handling with explicit prompt submission.
  • Isolated PAM conversation dispatch.
  • Replaced inherited PAM module entrypoint handling.
  • Replaced inherited PAM environment handling.
  • Fails closed when native terminal restoration fails.
  • Removed misleading Enter-injection failure warning.
  • Keeps PAM conversation work on correct caller thread.

Security and Privileged Helpers

  • Closes inherited FDs in authentication helper.
  • Rejects surplus compare-process arguments.
  • Prevents capture-device path traversal.
  • Avoids unsafe username interpolation in CLI guidance.
  • Expanded privileged failure-path tests.
  • Tightened ACL, process cleanup, and filesystem failure coverage.

CLI and Completion

  • Replaced inherited Bash completion with Howdy-owned completion.
  • Made command metadata authoritative.
  • Made completion metadata-driven.
  • Added schema-driven howdy set key/value completion.
  • Added strict command parsing.
  • Rejects invalid command options during completion.
  • Rejects duplicate, unknown, and surplus arguments.
  • Added clap-style usage errors.
  • Improved -- handling.
  • Rejects missing howdy test --device value.
  • Fixed disable diagnostics.
  • Corrected snapshot command summary.
  • Split dispatcher parsing/completion from execution.

Configuration

  • Generates packaged config.ini from schema.
  • Centralized schema validation.
  • Centralized runtime value decoding.
  • Centralized RuntimeConfig field/default bindings.
  • Makes config updates section-aware.
  • Rejects ambiguous duplicate settings.
  • Honors configured runtime paths.
  • Removed unused save_failed / save_successful.
  • Derives disabled config key from schema.

Snapshots

  • Prevents snapshot filename collisions.
  • Avoids overwriting existing snapshots.

Docs, Version, and Metadata

  • Generates manual-page reference sections from shared metadata.
  • Derives command syntax from command metadata.
  • Derives help synopsis from global-option catalog.
  • Embeds source commit in howdy version.
  • Normalizes commit metadata.
  • Updated maintenance-status documentation.
  • Refreshed AGENTS.md.

Licensing and Packaging

  • Relicensed project to GPL-3.0-or-later.
  • Added third-party notices.
  • Added and installs YuNet and SFace license texts.
  • Added third-party model provenance tests.
  • Removed AUR packaging submodule.
  • Removed redundant build link dependencies.

Tests

  • Expanded coverage for PAM prompts, caller-thread ownership, cancellation, and synthetic Enter timing.
  • Added terminal restoration and PAM conversation failure-path coverage.
  • Added inherited-FD coverage for privileged helper processes.
  • Expanded config schema, generation, replacement, and section-aware update tests.
  • Added strict CLI parsing and completion coverage.
  • Added snapshot collision and atomic no-replace coverage.
  • Added camera-path traversal coverage.
  • Expanded ACL, filesystem, process cleanup, and privileged failure-path coverage.
  • Added model provenance and third-party attribution checks.

v3.3.1

Choose a tag to compare

@nathawatc nathawatc released this 31 Oct 01:42
v3.3.1
1984cf3

Highlights

Hardens Howdy Next’s PAM authentication, privileged helper, model storage, downloads, and compare-process sandbox; migrates source builds from Meson to CMake; and adds explicit native-input PAM prompt fallback behavior.

  • Fixed a KScreenLocker deadlock after successful face authentication when native PAM prompt handling fell back to /dev/uinput.
  • Package users can upgrade without re-enrolling or migrating stored face models.
  • Source builders must switch from Meson to CMake 3.31 or newer.
  • PAM configurations using workaround=native must switch to workaround=native-input if input injection fallback is still required.

Breaking Changes

  • Meson build support was removed. Source builds now require CMake >= 3.31.
  • Source builds now require GNU libc 2.34 or newer and libacl. CMake also enforces INIReader >= 59 and libcurl >= 7.85.0.
  • To prevent the KScreenLocker deadlock, workaround=native now uses native PAM prompt control only and no longer falls back to /dev/uinput.
  • New workaround=native-input mode provides explicit opt-in fallback to /dev/uinput when native prompt control fails.
  • cmake --install --prefix overrides are unsupported. Select installation prefix during configuration.

Migration Guide

Source Builds

Replace Meson commands with CMake presets:

cmake --preset release
cmake --build --preset release --parallel "$(nproc)"
ctest --preset release
sudo cmake --install build

To use a different installation prefix, select it before building:

cmake -S . -B build \
    -DCMAKE_BUILD_TYPE=Release \
    -DCMAKE_INSTALL_PREFIX=/usr
cmake --build build --parallel "$(nproc)"
sudo cmake --install build

PAM Prompt Workaround

Configurations relying on input injection fallback must change to:

auth sufficient pam_howdy.so workaround=native-input

Keep workaround=native when only native PAM conversation control is desired.

Changes

Behavior Changes

  • Added workaround=native-input for native prompt control with /dev/uinput fallback.
  • Restricted workaround=native to native prompt control only.
  • Added watchdog deadlines for compare and authentication helper processes, with graceful termination followed by forced termination when required.
  • Reused one input device for prompt completion and limited successful face authentication to one Enter injection.
  • Restored PAM translations without changing process-global locale state or the host application's current gettext domain.
  • Reports a missing value for -U or --user instead of silently using the default user.
  • Improved handling of invalid model timestamps, uncaught CLI exceptions, and runtime configuration fallbacks.
  • Updated quiet-authentication troubleshooting guidance to use journalctl -b -t pam_howdy.

Security and Hardening

  • Drops compare-process privileges, sanitizes inheritable capabilities, closes inherited descriptors, and tightens sandbox resource limits.
  • Restricts staged authentication files with ACLs to root and the authenticated user.
  • Bounds privileged config reads, helper execution, password input, model downloads, and user-model writes.
  • Requires HTTPS for managed model downloads and verifies model size and SHA-256 before installation.
  • Preserves installed models when staged validation fails.
  • Hardens process-spawn, PAM conversation, password-clearing, terminal-restoration, and atomic-write failure paths.
  • Preserves password fallback when the compare process exits by signal.
  • Adds close-on-exec protection to sensitive file descriptors.

Build and Packaging

  • Replaced Meson with generator-independent CMake support.
  • Added Release and Debug presets, CTest integration, gettext targets, and warnings-as-errors support.
  • Added GCC and Clang support with GNU Make or Ninja.
  • Preserved install paths, permissions, setuid helper handling, and existing-config no-overwrite behavior.
  • Fixed DESTDIR config installation and prevented install-time prefix changes.
  • Centralized project version generation for binaries and installed manual pages.
  • Updated CI, Arch packaging, contributor documentation, and Zed tasks.
  • Expanded compiler warnings and changed-line clang-tidy checks.

Internal Improvements

  • Split security-sensitive PAM, helper, compare, storage, and configuration code into focused components.
  • Reorganized source, include, and test trees into mirrored module-based layouts.
  • Replaced test-only production hooks and mutable globals with dependency injection and local fakes.
  • Removed obsolete prompt-restoration code and duplicated build/test wiring.

Test Coverage

  • Expanded coverage for PAM prompt modes, watchdogs, process spawning, privilege dropping, ACL staging, model validation, install layouts, and failure paths.
  • Added installed setuid PAM end-to-end coverage using isolated installation paths.

Notes

  • No config.ini, face-model, user-model, or managed-model migration is required.
  • Packaged installations retain existing paths and permissions.
  • PAM configurations not using workaround=native require no changes.

v3.3.0

Choose a tag to compare

@nathawatc nathawatc released this 31 Oct 01:42
v3.3.0
67162e7

Highlights

Migrates Howdy Next to OpenCV 5.0.0, restores face authentication on OpenCV 5, updates managed model downloads to OpenCV 5-compatible OpenCV Zoo assets, and aligns CI, packaging, and docs with new baseline.

  • Users upgrading from v3.2.0 should remove obsolete model override settings from config.ini.
  • Re-enrollment is recommended for best results.

Breaking Changes

  • OpenCV 4 is no longer supported. Build and runtime now require OpenCV >= 5.0.0.
  • Managed face models changed to OpenCV 5-compatible variants.
  • yunet_model and sface_model config overrides were removed.

Migration Guide

Upgrade from v3.2.0 to v3.3.0 requires small manual cleanup.

Required Steps

  • Upgrade system to OpenCV >= 5.0.0.
  • Remove yunet_model and sface_model from config.ini if present.
  • Refresh managed models:
sudo howdy download-models

Recommended Steps

  • Re-enroll face model for best compatibility with new OpenCV 5 model set:
sudo howdy clear
sudo howdy add

Changes

Behavior Changes

  • Restored face authentication on OpenCV 5 by forcing supported DNN engine selection before YuNet and SFace model loading.
  • Replaced OpenCV 5-incompatible INT8BQ face-model set with OpenCV 5-compatible OpenCV Zoo models.
  • Updated howdy download-models to fetch pinned model revisions and verify embedded SHA-256 checksums.
  • Preserved obsolete downloaded model files during model refresh instead of deleting them during upgrade.

Security and Hardening

  • Removed unsupported fallback model-loading path on OpenCV 5; model initialization now fails closed instead of silently using incompatible runtime behavior.
  • Removed obsolete ETag checksum fallback from managed model downloads.

Internal Improvements

  • Updated frame-processing histogram access for OpenCV 5 1D cv::Mat behavior.
  • Replaced deprecated OpenCV comma-style cv::Mat initializers in tests.
  • Updated CI container, Arch packaging, and project docs for OpenCV 5.0.0 baseline.
  • Removed MIT license labels from CI container metadata.

Test Coverage

  • Added regression coverage for OpenCV 5 histogram-bin handling in frame processing.
  • Added focused regression coverage for OpenCV 5 face-model initialization and authentication path recovery.
  • Updated config, download-model, runtime-config, and face-model tests for removed model override settings and new managed-model behavior.

Notes

  • No PAM migration required.
  • No user-model storage migration required.
  • Existing enrolled face models may still work, but re-enrollment is recommended.
  • Runtime now uses managed model paths only. Custom yunet_model and sface_model overrides must be removed.

v3.2.0

Choose a tag to compare

@nathawatc nathawatc released this 31 Oct 01:42
v3.2.0
9f45810

Highlights

Unifies CLI execution under howdy, hardens face, model, PAM, snapshot, and config failure paths, and keeps writes atomic. Compare, preview, config-edit, and PAM runtime logic now use focused components with fail-closed behavior.

No config, PAM, or user-model migration is required.

CLI scripts using howdy-<command> must switch to howdy <command>.

Breaking Changes

  • Standalone howdy-<command> executables are no longer installed. Use howdy <command>.
  • Atomic user-model writes require renameat2(..., RENAME_EXCHANGE) support; unsupported systems fail closed.

Changes

Behavior Changes

  • Added built-in howdy subcommand dispatch and version.
  • Reworked howdy config validation and install flow.
  • Reworked howdy test preview lifecycle and camera exposure restoration.

Security and Hardening

  • Snapshot and user-model writes now use stronger atomic and identity-checked flows.
  • Invalid face detection, encoding, matching, model, PAM helper, and runtime-staging data now fail closed.
  • User-model storage now validates paths, ownership, stale files, and locked-file identity.

Internal Improvements

  • Split compare, capture, preview, config editing, PAM runtime, and prompting into dedicated components.
  • Switched user-model codec implementation to yyjson without changing on-disk compatibility.
  • Simplified install layout: public commands use howdy; helpers remain under libexecdir/howdy.
  • Updated CI and build dependencies for yyjson.

Test Coverage

  • Added regression coverage for CLI dispatch and install layout, including removal of standalone command binaries.
  • Added coverage for config edit session success and failure paths.
  • Added coverage for compare engine/capture session, preview engine/session, and howdy test lifecycle behavior.
  • Added coverage for face detection, encoding, matching, and face-model error sanitization/failure paths.
  • Added coverage for user-model codec/store compatibility, atomic mutations, stale-file handling, and security checks.
  • Added coverage for PAM runtime/session preparation, prompt coordination, and status mapping.

v3.1.1

Choose a tag to compare

@nathawatc nathawatc released this 31 Oct 01:41
v3.1.1
33a0017

Highlights

A maintenance and hardening release focused on PAM helper validation, clearer enrollment diagnostics, CLI testability, and regression coverage.

No config migration is required.
No PAM configuration change is required.
No user model migration is required.
No package migration is required.

Breaking Changes

None.

Change

Behavior Changes

  • howdy add now reports classified enrollment capture failures more clearly:
    • Camera saw only black frames - is IR emitter working?
    • All frames were too dark.
    • No sufficiently bright frames were captured.
    • No usable frames were captured.
    • No face was detected.
  • howdy test now uses the shared brightness classifier. Black and too-dark frames keep the existing DARK FRAME preview state and skip face detection.
  • CI now uses the prebuilt codeberg.org/nathawat/howdy-next:ci-1 Podman image for a faster clean offline build and test environment.

Hardening

  • Hardened PAM auth-helper output validation:
    • Required protocol keys must appear exactly once.
    • Missing, empty, duplicate, unknown, or malformed protocol lines are rejected.
    • Helper output read errors now fail closed and discard partial output.
  • Hardened enrollment capture diagnostics by classifying black, dark, insufficiently bright, unusable, and no-face capture outcomes.
  • Preserved secure snapshot output behavior with regression coverage for insecure paths, partial-write cleanup, chmod cleanup, file mode 0600, and parent-directory syncing.

Internal Improvements

  • Made howdy add command orchestration testable through injected config, preflight, capture, and storage dependencies.
  • Made howdy snapshot command orchestration and writer lifecycle testable without a real camera or persistent output files.
  • Made deterministic howdy test preview preflight behavior testable without automating the OpenCV GUI loop.
  • Added a preview-only brightness presentation adapter that maps shared brightness decisions to existing overlay labels and face-detection permission.
  • Added direct user_model_codec contract coverage for serialization, strict shape validation, compatibility metadata, malformed values, and storage limits.
  • Renamed preview internals to clarify CLI ownership.
  • Tightened selected clang-tidy checks and applied related cleanup.
  • Updated CI to use a prebuilt Podman image with --wrap-mode=nodownload.
  • Updated checkout action, system OpenCV include handling, Arch packaging submodule references, contributor guidance, and Markdown lint configuration.

Test Coverage

  • Added CLI regression coverage for howdy add, including all classified capture-failure diagnostics.
  • Added CLI regression coverage for howdy snapshot, including invalid config, camera failures, malformed callback results, write failures, and successful output.
  • Added snapshot writer lifecycle coverage for secure path handling, cleanup behavior, permissions, and directory synchronization.
  • Added CLI regression coverage for howdy test preflight environment checks, camera setup failures, GUI-user switching, and dependency validation.
  • Added PAM auth-helper protocol coverage for malformed, duplicate, missing, empty, and read-error output.

v3.1.0

Choose a tag to compare

@nathawatc nathawatc released this 31 Oct 01:41
v3.1.0
f80963d

Highlights

A maintenance and hardening release focused on SSOT cleanup, safer config/storage/auth-helper internals, and capture pipeline robustness.

No config migration is required.
No PAM configuration change is required.
No user model migration is required.

Breaking Changes

  • Build now targets C++23.
  • INIReader must now come from the system package manager. The Meson fallback subproject was removed.

Change

Behavior Changes

  • Missing or empty runtime dark_threshold now uses the schema default 60.0F. The previous compare-local fallback was 50.0F. Explicit configured values are unchanged.

  • howdy disable now aborts on invalid runtime config instead of partially updating core.disabled.

  • howdy clear can remove malformed, oversized, or wrong-shape model files without parsing them first.

  • Runtime-root auth helper diagnostics are clearer:

    • Runtime directory is not controlled by the expected owner: <path>

Hardening

  • Hardened user model storage validation, secure path checks, locking, atomic writes, deletion, and stale-operation detection.
  • Hardened config writes with shared validation, atomic install logic, stale editor rejection, and secure path rechecks.
  • Hardened auth-helper runtime staging, shared stdout protocol keys, bounded output handling, and cleanup behavior.
  • Hardened model downloads with staged installs, shared fd writes, curl write overflow checks, and clean setup failure handling.
  • Hardened capture processing by skipping black frames during enrollment and guarding empty CLAHE processors.

Internal Improvements

  • Added typed RuntimeConfig loading and schema-backed runtime config validation.
  • Centralized runtime config loading across CLI, compare, recorder, face model, and PAM paths.
  • Centralized OpenCV model readiness checks.
  • Centralized frame processing helpers for CLAHE and brightness measurement.
  • Split user model JSON parsing and serialization into a dedicated user_model_codec module.
  • Shared generated install path constants between native and PAM code.
  • Refactored PAM auth-flow helpers, prompt handling, tty restore, optional task handling, and status mapping for better testability.
  • Split test link targets to keep test builds smaller and cleaner.

v3.0.1

Choose a tag to compare

@nathawatc nathawatc released this 31 Oct 01:40
v3.0.1
95b412d

Highlight

This release improves config parsing, PAM authentication reliability, and runtime security hardening.

Fix

  • Parse config float values independently of LC_NUMERIC.
  • Fail closed on OpenCV exceptions during PAM authentication.
  • Avoid auth-frame upscaling during compare.
  • Harden native prompt cleanup, restore, and EINTR handling.

Change

  • Harden model username, model label, and runtime path validation.
  • Improve PAM status mapping for fail-closed behavior.
  • Add security-focused unit tests for config, paths, user models, compare exits, and PAM behavior.
  • Add AUR installation guidance and warn against manual Meson installs.
  • Add LLVM clang-format policy and document run-clang-tidy -p build.

v3.0.0

Choose a tag to compare

@nathawatc nathawatc released this 31 Oct 01:40
v3.0.0
76ebaee

Highlights

Hardens PAM/runtime authentication, tightens config validation, and improves lock-screen compatibility.

Breaking Changes

Caution

Existing installations may need manual PAM and config updates.

  • workaround is no longer read from /etc/howdy/config.ini.
    Configure it on each PAM service line instead:
pam_howdy.so workaround=off
pam_howdy.so workaround=input
pam_howdy.so workaround=native
  • device_fps = -1 is no longer valid. Use device_fps = 0 instead. Manually update /etc/howdy/config.ini if Howdy stops working after upgrade.

  • /etc/howdy, /etc/howdy/config.ini, and /etc/howdy/models must remain root-controlled and non-user-writable.

  • Lock-screen and unprivileged PAM consumers now rely on the installed setuid helper:

$libdir/howdy/howdy-auth-helper

Migration Guide

  1. Move old workaround config usage to the relevant pam_howdy.so workaround=... line.

  2. Remove obsolete config keys:

    • workaround
    • gtk_stdout
  3. Replace device_fps = -1 with device_fps = 0.

  4. Verify the setuid helper is installed:

    ls -l $libdir/howdy/howdy-auth-helper
  5. Keep /etc/howdy, /etc/howdy/config.ini, and /etc/howdy/models root-controlled.

Changes

  • Moved workaround to a service-local PAM option.
  • Added the root-controlled runtime auth helper. #9
  • Hardened config/model path validation against insecure ownership, permissions, symlinks, hardlinks, and writable trust roots.
  • Improved PAM diagnostics for invalid runtime config values.
  • Improved workaround=input fallback behavior when /dev/uinput is unavailable.
  • Added pam_howdy(8) and updated PAM docs with waylock examples.
  • Rejected invalid runtime values such as nan, +inf, -inf, and invalid device_fps.
  • Hardened atomic config writes and error handling.
  • Kept howdy disable usable as a recovery command when unrelated config values are invalid.
  • howdy test now reports missing graphical display/session variables clearly instead of showing Qt platform-plugin noise.
  • Added regression coverage for config validation, config writes, PAM status mapping, and GUI environment handling.