Skip to content

dynamic_modules: add file watcher support for bootstrap dynamic modules#44139

Open
basundhara-c wants to merge 2 commits intoenvoyproxy:mainfrom
basundhara-c:boostrap_dynamic_module_support_for_file_watch
Open

dynamic_modules: add file watcher support for bootstrap dynamic modules#44139
basundhara-c wants to merge 2 commits intoenvoyproxy:mainfrom
basundhara-c:boostrap_dynamic_module_support_for_file_watch

Conversation

@basundhara-c
Copy link
Copy Markdown
Contributor

@basundhara-c basundhara-c commented Mar 27, 2026

Commit Message: add file watcher support for dynamic module bootstrap extensions

Additional Description:

This adds filesystem watcher support for bootstrap extension dynamic modules, allowing modules to monitor files for changes on the main thread event loop.

Modules can create a file watcher, register one or more paths to watch, and receive callbacks when watched files are modified. This uses Envoy's existing Filesystem::Watcher internally.

This is useful for modules that need to react to file changes at runtime — for example, reloading configuration files, etc

The implementation adds:

  • An event hook (on_file_changed) called by Envoy when a watched file changes
  • Callbacks (file_watcher_new, file_watcher_add_watch, file_watcher_delete)
    for modules to manage file watchers
  • Tests covering the full lifecycle including multi-file watching and repeated changes

Risk Level: Low
Testing: Unit and Integration test added
Docs Changes:
Release Notes: N.A
Platform Specific Features: N.A

…e extensions

Add filesystem watcher API to the bootstrap extension ABI, mirroring the
existing timer API. Modules can now watch files for MovedTo/Modified events
on the main thread and receive callbacks via on_file_changed.

Signed-off-by: Basundhara Chakrabarty <basundhara17061996@gmail.com>
@repokitteh-read-only
Copy link
Copy Markdown

As a reminder, PRs marked as draft will not be automatically assigned reviewers,
or be handled by maintainer-oncall triage.

Please mark your PR as ready when you want it to be reviewed!

🐱

Caused by: #44139 was opened by basundhara-c.

see: more, trace.

@basundhara-c basundhara-c force-pushed the boostrap_dynamic_module_support_for_file_watch branch 2 times, most recently from 6ecbb77 to 2db49aa Compare March 27, 2026 21:17
Signed-off-by: Basundhara Chakrabarty <basundhara17061996@gmail.com>
@basundhara-c basundhara-c force-pushed the boostrap_dynamic_module_support_for_file_watch branch from af814a8 to 9e6a041 Compare March 27, 2026 23:30
@basundhara-c basundhara-c marked this pull request as ready for review March 28, 2026 00:10
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.

1 participant