You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Warn on unrecognised top-level configuration keys, so dead-key bugs surface at startup #160
#151 (mcp.port, mcp.host, ...) and #153 (server:) were each the same bug: a key that is documented or shipped in an example, that nothing reads, so it silently does nothing. Each was fixed by listing the specific dead keys. That fixes the instances; the class stays open — the next dead key will be silent again.
Warn (or optionally error) on any top-level key flAPI does not read.
Why this is its own issue rather than part of #153
It would immediately fire on shipped configs, so those have to be decided, not slipped in:
version: in examples/flapi-s3.yaml:19, flapi-gcs.yaml:17, flapi-azure.yaml:22, flapi-bigquery-procedure.yaml:3, and AGENTS.md's config example — inert metadata; keep and allow, or remove?
any operator-private annotation keys people put in their own configs.
The set of known keys must also be kept in step with the ~23 readers spread across config_manager.cpp (project-name, project-description, server-name, http-port, http-host, log-level, stall-timeout-s, log-format, cache-schema, telemetry, template, duckdb, ducklake, audit, tracing, storage, mcp, heartbeat, connections, rate_limit, cors, enforce-https), or it will drift and cry wolf.
Where it earns its keep
The near-misses: rate_limit (global) vs rate-limit (per endpoint), https vs enforce-https (#158), environment-whitelist at the wrong level (#157), server (#153).
Suggestion
One table of known top-level keys next to the parser, plus a test that fails if a reader is added without adding its key — so the list cannot drift. Warn by default; make the severity configurable if operators legitimately carry extra keys.
Activity
fix: report the server: block first, and don't overclaim what it can …
Merge pull request #171 from DataZooDE/feat/gh-160-unknown-key-warning