Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@zombocoder
Copy link
Owner

@zombocoder zombocoder commented Sep 21, 2025

Sumary:

  • Added a new watcher module for cross-platform filesystem monitoring using inotify (Linux), kqueue (macOS/BSD), and a fallback polling mechanism.
  • Integrated the watcher into the main application, allowing real-time integrity checks and webhook notifications on file changes.
  • Enhanced the reporting functionality to include checksums for modified files in JSON reports.
  • Updated the web dashboard to display checksum information for modified files.
  • Improved error handling and user feedback in the command-line interface for monitoring operations.
  • Added tests for the new watcher functionality and checksum reporting.

This pull request introduces several key improvements to IntegrityZ, focusing on enhanced real-time monitoring, webhook integration, consolidated change reporting, expanded configuration options, and improved documentation and build workflow. The most significant changes are grouped below.

Feature Enhancements

  • Added support for real-time monitoring using filesystem events (inotify/kqueue), and HTTP webhook integration for instant notifications. These features are now documented in the README.md and supported in configuration and code. [1] [2] [3] [4] [5] [6]
  • Expanded configuration file options to include webhook URL, webhook timeout, and watch mode settings (check interval, event batch size, recursive monitoring). These are now parsed and managed in src/config.zig. [1] [2] [3] [4] [5]

Change Detection and Reporting

  • Improved the change detection logic in src/checker.zig to consolidate multiple file changes (content, size, permissions, modification time) into a single change record with detailed descriptions, resulting in clearer and more informative JSON reports.
  • Updated the JSON report format in the README.md to include timestamps, checksums, and consolidated change records for better integration and clarity.

Testing and Documentation

  • Added comprehensive unit tests in src/checker.zig to verify consolidated change detection, including cases for single, multiple, and no changes.
  • Expanded documentation in README.md to cover new features, improved usage instructions, configuration examples, and available make targets. Also documented the test suite and coverage. [1] [2] [3] [4] [5] [6]

Build System Improvements

  • Added a new build-release target to the Makefile for optimized release builds, updated help instructions, and clarified usage in the documentation. [1] [2] [3] [4] [5]

Codebase Structure

  • Included src/watcher.zig in the test suite in build.zig, reflecting the new real-time monitoring module.

These changes collectively enhance IntegrityZ’s usability, configurability, and integration capabilities, while improving clarity and maintainability.

- Added a new watcher module for cross-platform filesystem monitoring using inotify (Linux), kqueue (macOS/BSD), and a fallback polling mechanism.
- Integrated the watcher into the main application, allowing real-time integrity checks and webhook notifications on file changes.
- Enhanced the reporting functionality to include checksums for modified files in JSON reports.
- Updated the web dashboard to display checksum information for modified files.
- Improved error handling and user feedback in the command-line interface for monitoring operations.
- Added tests for the new watcher functionality and checksum reporting.
@zombocoder zombocoder merged commit 47c18ff into main Sep 21, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants