Skip to content

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

Closed

Description

@jrosskopf

What

#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:

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions