Commit e262e69
PR16: ConfigurationManager with Hierarchical Config Support (#17)
* fix(admin-ui): fix TypeScript build errors in ConfigurationManager component
- Remove unused React import
- Remove unused Accordion-related imports
- Remove unused ExpandMoreIcon import
- Remove unused safeKeys variable (use setter only)
- Remove unused useTraits import and usage
- Fix hasConfigAccess to not use non-existent traits.has method
This completes the admin UI build fixes for the feat/pr16-config-manager branch.
* PR16: Add initial ConfigurationManager component (read-only)
- Created ConfigurationManager.tsx with hierarchical config display
- Added v4 config API endpoints (effective, hierarchy, safe-keys, flush-cache)
- Implemented basic HierarchicalConfigProvider with env/default fallback
- Added CacheManager with in-memory storage
- Wired ConfigurationManager into Admin Console Settings tab
- UI displays config sources, hierarchy levels, and masked secrets
Note: This is the minimal read-only implementation per Phase 3 runbook.
Full database-backed hierarchy and editing capabilities will be added
in subsequent PRs (PR17-21).
* PR16: Implement comprehensive ConfigurationManager with database support
Major enhancements to hierarchical configuration system:
Backend Improvements:
- Added database models for hierarchical config (global, tenant, department, group, user levels)
- Implemented ConfigEncryption class with Fernet encryption for sensitive values
- Enhanced HierarchicalConfigProvider with full database-backed resolution
- Added Redis caching with automatic memory fallback
- Created migration script for config tables
- Added validation framework for safe configuration keys
- Implemented masked value handling for audit trail
Frontend Enhancements:
- Enhanced ConfigurationManager UI with category-based organization
- Added search and filter functionality for configuration keys
- Improved hierarchy visualization with source badges
- Added cache statistics display
- Implemented proper masking for sensitive values
- Added comprehensive key coverage (30+ config keys across 8 categories)
Infrastructure:
- Added required dependencies (cryptography, redis, sse-starlette)
- Updated anyio to 4.11.0 to resolve dependency conflicts
- Prepared foundation for SSE diagnostics and circuit breakers
This establishes the full framework for Phase 3 configuration management.
PR17 will add write capabilities for safe keys, followed by SSE diagnostics,
circuit breakers, and rate limiting in subsequent PRs.
---------
Co-authored-by: Faxbot Agent <[email protected]>
Co-authored-by: Claude <[email protected]>1 parent a338caa commit e262e69
File tree
9 files changed
+789
-5
lines changed- api
- admin_ui/src
- api
- app
- config
- db/migrations
- models
- services
- v4_plans
9 files changed
+789
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| 36 | + | |
36 | 37 | | |
37 | 38 | | |
38 | 39 | | |
| |||
60 | 61 | | |
61 | 62 | | |
62 | 63 | | |
| 64 | + | |
63 | 65 | | |
64 | 66 | | |
65 | 67 | | |
| |||
293 | 295 | | |
294 | 296 | | |
295 | 297 | | |
| 298 | + | |
296 | 299 | | |
297 | 300 | | |
298 | 301 | | |
| |||
776 | 779 | | |
777 | 780 | | |
778 | 781 | | |
779 | | - | |
780 | | - | |
| 782 | + | |
| 783 | + | |
| 784 | + | |
781 | 785 | | |
782 | 786 | | |
783 | 787 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
160 | 160 | | |
161 | 161 | | |
162 | 162 | | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
163 | 192 | | |
164 | 193 | | |
165 | 194 | | |
| |||
0 commit comments