Skip to content

fix: reject unknown config keys so typos fail at startup - #682

Merged
MoonBoi9001 merged 1 commit into
mainfrom
mb9/reject-unknown-config-keys
Jul 20, 2026
Merged

fix: reject unknown config keys so typos fail at startup#682
MoonBoi9001 merged 1 commit into
mainfrom
mb9/reject-unknown-config-keys

Conversation

@MoonBoi9001

Copy link
Copy Markdown
Member

This PR makes the dipper service reject a config file that contains an unknown key, so a mistyped setting name fails at startup with an error naming the bad key instead of being silently ignored. The service reads its settings from a JSON config, and most sections previously accepted any extra key and dropped it, which meant a typo like intervl for interval left that section running its default with no sign the setting never took effect. Before this, only 3 of the 18 config structs rejected unknown keys; this turns on the same strict checking for the top-level config and every remaining section, including the kafka block used for event streaming.

One rollout note: a deployed config that carries a stray or renamed key will now fail to start rather than boot with it ignored. The example config in k8s/configmap-example.yaml only uses real keys, so it is unaffected, but check any live config for leftover keys before deploying.

Most config sections silently dropped unknown keys, so a mistyped setting name was ignored
and the service ran the default with no warning. Enable strict key checking on the top-level
config and every section that lacked it, so a typo now fails at startup naming the bad key.
@MoonBoi9001
MoonBoi9001 merged commit 0c800e2 into main Jul 20, 2026
10 checks passed
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.

1 participant