Skip to content

feat: warn on unrecognised top-level config keys (#160) - #171

Merged
jrosskopf merged 1 commit into
mainfrom
feat/gh-160-unknown-key-warning
Sep 30, 2026
Merged

jrosskopf merged 1 commit into
mainfrom
feat/gh-160-unknown-key-warning

Conversation

@jrosskopf

@jrosskopf jrosskopf commented Sep 29, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Unknown top-level keys warn at startup/validate-config, with hints for near-misses (rate-limit/rate_limit, https/enforce-https, ...)
  • Warning only; version: allowed
  • scripts/check_known_config_keys.sh fails if a reader is added without listing its key (Makefile check-invariants + CI)

Test plan

  • test_unknown_config_keys.py failed before, passes after; shipped examples raise no warning
  • server-block and environment-whitelist suites

Closes #160

🤖 Generated with Claude Code


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is disabled.

- Known-key table beside the parser; warning with hints for near-misses
- Guard script keeps the table in step with readers (Makefile + CI)
- Closes #160
@jrosskopf
jrosskopf merged commit a3d2a36 into main Sep 30, 2026
23 checks passed
@jrosskopf
jrosskopf deleted the feat/gh-160-unknown-key-warning branch September 30, 2026 02:38
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.

Warn on unrecognised top-level configuration keys, so dead-key bugs surface at startup

1 participant