feat(config): seed path support, unresolved-var detection, fix passwo… - #1
Merged
Conversation
…rd false-positive - Add optional path to seed schema and resolve it in setup (parity with migrations) - Add findUnresolvedVars helper and optional collector to resolveEnvVars - checkConfigWarnings now only flags literal DB passwords, not keys like password_reset_url
…lite - HealthCheckSchema gains optional test/interval/timeout/retries - Generic services can now declare a CMD-SHELL healthcheck via a matching health_checks entry - Refactor healthcheck fragment building into renderHealthcheckFragment - Warn (instead of silently dropping) databases with no Docker image (sqlite)
…un/validate-only flags - New 'envkit validate [--strict]' command (CI/pre-commit friendly) - snapshot restore now backs up current config to a pre-restore-* snapshot and confirms in TTY (--yes to skip) - New 'snapshot delete <name>' command - generate --dry-run prints compose to stdout without writing - share import --validate-only validates without writing - checkConfigWarnings now returns the warnings it logs
- Add tests: validate command, snapshot delete/restore-backup, generate --dry-run, share import --validate-only, service healthcheck + sqlite warning, validator password false-positive, seed path, init wizard flow (prompts.inject) - jest.config: add global coverageThreshold (regression floor) - CI: run tests with --coverage and upload coverage artifact - 221 tests passing (was 201)
- README: validate section, dry-run, snapshot restore safety + delete, share validate-only, updated command table - STATUS.md + DEVELOPMENT.md: new commands - AUDIT.md: mark v1.3.0 improvements done, correct outdated healthcheck note - .dev-env.example.yml: seed path + generic service healthcheck (test) example - package.json: 1.2.0 -> 1.3.0
- validate: run config warnings against RAW (pre-resolution) config so a correctly-externalized \ is not flagged as hardcoded; this fixes 'validate --strict' falsely failing CI when secrets are set in .env - validate: silence loadConfig's per-var warnings (already reported in aggregate) - validator: also detect hardcoded secrets in the env block, keyed precisely by the last key segment so benign keys like PASSWORD_RESET_URL don't false-positive - compose: generic services no longer auto-inherit a DB-type healthcheck by coincidental type name; they only get healthchecks explicitly declared in health_checks - logger: add getLevel(); tests for all of the above (225 passing)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
seed path support, unresolved-var detection, fix password false-positive