Skip to content

fix: reject unknown config keys #276

Closed

Description

@uniqueg

Problem

None of the models of the custom configuration (pro_tes/config_models.py) forbids extra fields, so pydantic ignores unknown keys:

  • custom.celery (monitor.timeout, message_maxsize) in pro_tes/config.yaml is not a field of CustomConfig and is dropped.
  • custom.controllers.celery (models Celery and Monitor) is validated but never read.
  • Typos in config overlays pass silently. E.g., tes.servce_list leaves the list of backends empty: the app starts healthy, and every POST /tasks fails with 500. This goes against the fail-fast approach of the repository.

Found in the pre-release review of v0.3.0 (finding 9). The dead post_task.timeout is replaced by a working timeout in the fix of the duplicate submissions (separate issue).

Proposed change

  • Set model_config = ConfigDict(extra="forbid") on all custom config models, so that unknown keys stop the app (and the Celery worker) at startup.
  • Remove the dead models Celery and Monitor and the keys custom.celery and custom.controllers.celery.
  • Check the config overlays, Helm values, docs and tests for these keys.
  • Document the change in docs/upgrading.md.

Activity

  1. added
    priority: high
    status: in progress
    type: bug
    workload: hours
    on Oct 23, 2026
  2. removed
    status: in progress
    on Oct 24, 2026
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

    priority: hightype: bugworkload: hours

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions