Skip to content

fix(access-control): let newest policies win #612

Closed

Description

@uniqueg

Problem

Configured policies are written at startup, and the last pod to start wins. During a rolling upgrade, an old pod that restarts brings back the old rules until the next start of a new pod.

Proposal

Stamp configured policies with a generation, such as a version or a config hash with an ordering value, and let a pod write only if its generation isn't older than the stored one. Log a warning when it skips. Rollbacks need a documented, deliberate way to overwrite.

Acceptance criteria

  • Tests: old pod after new pod leaves the rules alone; new after old replaces them; rollback path; first start without a stamp; 100% coverage.
  • Docs: deployment guide. The foca CLI issue's sync-policies uses the same code.

Activity

  1. added this to the v0.21.0 milestone on Nov 3, 2026
  2. added
    priority: medium
    status: triage
    type: bug
    workload: days
    status: in progress
    on Nov 3, 2026
  3. removed
    status: in progress
    on Nov 4, 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: mediumstatus: triagetype: bugworkload: days

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions