Skip to content

Configuration management - #111

Merged
JamesEjembi merged 2 commits into
VeriNode-Labs:mainfrom
gloskull:Configuration-Management
Jul 28, 2026
Merged

Configuration management#111
JamesEjembi merged 2 commits into
VeriNode-Labs:mainfrom
gloskull:Configuration-Management

Conversation

@gloskull

@gloskull gloskull commented Jul 26, 2026

Copy link
Copy Markdown
Contributor

Motivation

  • Introduce a system-wide, schema-first configuration subsystem to validate operational changes before activation and enable deterministic hot-reload flows.
  • Gate runtime changes to services with explicit hot_reload flags to avoid unsafe in-place mutations during live rollouts.
  • Provide compact change events for monitoring and to drive blue-green / canary automation and runbooks.

Description

  • Add src/config.rs implementing SystemConfig, ServiceConfig, MonitoringConfig, DeploymentConfig, a ConfigManager with new, active, history, and reload methods, and pure validators validate_config and validate_reload that enforce version monotonicity, schema bounds, and hot-reload gating.
  • Export the new module from the crate root by adding pub mod config; to src/lib.rs.
  • Add focused unit tests in tests/config_management_test.rs that cover successful reloads, schema validation failures, non-monotonic version rejection, disabled-hot-reload gating, duplicate service detection, and invalid canary settings.
  • Add documentation and an operational runbook at docs/configuration-management.md and docs/runbooks/configuration-hot-reload.md describing the hot-reload flow, operational bounds, rollout, and rollback guidance.

Testing

  • Ran cargo test --test config_management_test, which executed 4 tests and all tests passed.
  • Ran cargo check, which completed successfully (no errors reported).

Closes #77

gloskull added 2 commits July 26, 2026 06:26
…nt-system

Add hot-reload configuration management with schema validation
@JamesEjembi
JamesEjembi merged commit f321d7a into VeriNode-Labs:main Jul 28, 2026
1 check failed
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.

Configuration Management with Hot-Reload and Schema Validation

2 participants