Skip to content

Configuration rollout window: an old pod can accept a write the new rules forbid #486

Open

Description

@ephico2real2

Part of #13. Found in the #244 (Codex design) and #482 (Codex design) reviews, 2026-11-20.

What is wrong. cmapi reads its configuration once at start, and a change restarts the pods (docs/18). During a rolling update, pods on the old and new configuration both serve. A write the new rules forbid (a metadata key, a tier limit, an approval rule) can still be accepted by an old pod for a few minutes. This applies to every write: create, change, delete and the expiration operations.

How to prove it. Start two API processes with different metadata configurations against one database. A create allowed only by the old rules succeeds through the old process after the new one started. Show what then happens at delivery (does the worker re-check against the new rules?).

Options to research.

  • (a) The worker re-validates every plan against its own, newest rules before pushing to Git, and supersedes a plan that fails.
  • (b) A configuration generation recorded with each plan; writes accepted only on the newest generation.
  • (c) A rollout strategy (maxSurge 0) that never runs two generations at once.
  • (d) Accept the window and document it.

Research mandate. Research: search the primary sources (Kubernetes rolling updates, config versioning patterns), compare the options, choose the industry best practice, fix the cause rather than the symptom, and record the choice and its sources.

Activity

  1. added
    bug
    status:open
    sev:low
    Backlog
    on Nov 20, 2026
  2. added
    In-Progress
    and removed
    status:open
    Backlog
    on Nov 20, 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

    In-Progressbugsev:low

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions