mirror of
https://github.com/openkmip/pykmip
synced 2026-01-05 10:03:18 +00:00
This change adds a PolicyDirectoryMonitor subprocess that can be used by the server to continuously monitor and load operation policies from the configured operation policy directory. The monitor tracks policy file modifications, file creation, and file deletion, restoring legacy policies from existing policy files should the current file backing a policy get deleted. Changes to existing policies are detected and updated as soon as the backing policy file is saved to disk. An extensive unit test is included to exercise the different operating conditions the monitor may encounter.