Skip to content

fix(serviceoffer): gate httpRouteAccepted on observedGeneration, fail closed#781

Merged
bussyjd merged 1 commit into
integration/v0.14.0-rc0from
fix/route-acceptance-observedgen
Jul 16, 2026
Merged

fix(serviceoffer): gate httpRouteAccepted on observedGeneration, fail closed#781
bussyjd merged 1 commit into
integration/v0.14.0-rc0from
fix/route-acceptance-observedgen

Conversation

@bussyjd

@bussyjd bussyjd commented Jul 16, 2026

Copy link
Copy Markdown
Contributor

Medium from the PR #756 review. The #767 route-acceptance gate trusted stale parent conditions, so an UPDATE to an already-accepted HTTPRoute flipped RoutePublished True before Traefik reconciled the new spec. httpRouteAccepted now requires each trusted condition's observedGeneration to match metadata.generation, and both Accepted and ResolvedRefs must be affirmatively True at the current generation (ResolvedRefs no longer defaults true — that was fail-open). Covers all three call sites. New mixed-staleness regression tests.

https://claude.ai/code/session_014YjPMViNrZ7zBVgUQzwEKk

…tion

httpRouteAccepted ignored status.parents[].conditions[].observedGeneration,
so the #767 route-acceptance gate (apply -> Get -> httpRouteAccepted before
RoutePublished=True) was bypassed for updates to an already-accepted
HTTPRoute: the Get right after applyObject could return the PREVIOUS
generation's Accepted=True/ResolvedRefs=True, flipping RoutePublished True
even though Traefik hasn't reconciled the new spec yet (and may go on to
reject it).

httpRouteAccepted now requires each trusted condition's observedGeneration
to equal the route's metadata.generation; a stale condition is skipped, so
the parent falls through to not-accepted and the existing 5s requeue
re-checks. Both the main and host route accept-gates (controller.go
~852-874) go through this same function.

Claude-Session: https://claude.ai/code/session_014YjPMViNrZ7zBVgUQzwEKk
@bussyjd
bussyjd merged commit 1f5e0b8 into integration/v0.14.0-rc0 Jul 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant