[Feature] Add configuration validation that fails early with actionable messages when required production-like settings are missing #21

Closed
opened 2026-07-06 11:29:24 +02:00 by zemion · 1 comment
Owner

Imported from the consolidated GovOPlaN product backlog.

  • Source: /mnt/DATA/Nextcloud/ADD ideas UG/Products/govoplan/backlog.md
  • Line: 153
  • Section: Milestones > Milestone 8 - Production-Realistic Dev And Deployment Foundation
  • Source status: OPEN.

Imported backlog item:

- [ ] Add configuration validation that fails early with actionable messages when required production-like settings are missing.
<!-- codex-backlog-fingerprint:5af060e38cd7823efe77b34c --> Imported from the consolidated GovOPlaN product backlog. - Source: `/mnt/DATA/Nextcloud/ADD ideas UG/Products/govoplan/backlog.md` - Line: `153` - Section: `Milestones > Milestone 8 - Production-Realistic Dev And Deployment Foundation` - Source status: `OPEN.` Imported backlog item: ```markdown - [ ] Add configuration validation that fails early with actionable messages when required production-like settings are missing. ```
zemion added this to the Milestone 8 - Production-Realistic Dev And Deployment Foundation milestone 2026-07-06 13:02:21 +02:00
Author
Owner

Implemented early actionable configuration validation.

Changes:

  • Added govoplan_core.core.install_config.validate_runtime_configuration.
  • Added govoplan_core.commands.config validate / govoplan-config validate.
  • Validation reports all known blockers at once for production-like/self-hosted profiles, including missing APP_ENV, DATABASE_URL, MASTER_KEY_B64, ENABLED_MODULES, CORS_ORIGINS, SQLite in production-like profiles, production dev bootstrap, insecure production cookies, missing Redis for Celery, S3 storage gaps, and catalog trust/channel gaps.
  • scripts/launch-production-like-dev.sh now validates the effective profile before migrations/startup.

Verification:

  • scripts/production-like-dev.sh validate-config passes.
  • An unsourced self-hosted validation returns an actionable blocker list as expected.
  • tests.test_install_config and tests.test_devserver passed.
Implemented early actionable configuration validation. Changes: - Added `govoplan_core.core.install_config.validate_runtime_configuration`. - Added `govoplan_core.commands.config validate` / `govoplan-config validate`. - Validation reports all known blockers at once for production-like/self-hosted profiles, including missing `APP_ENV`, `DATABASE_URL`, `MASTER_KEY_B64`, `ENABLED_MODULES`, `CORS_ORIGINS`, SQLite in production-like profiles, production dev bootstrap, insecure production cookies, missing Redis for Celery, S3 storage gaps, and catalog trust/channel gaps. - `scripts/launch-production-like-dev.sh` now validates the effective profile before migrations/startup. Verification: - `scripts/production-like-dev.sh validate-config` passes. - An unsourced self-hosted validation returns an actionable blocker list as expected. - `tests.test_install_config` and `tests.test_devserver` passed.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: add-ideas/govoplan-core#21
No description provided.