Predicate argument validation during Eskip parsing can block unrelated route updates

Open
#4,440 5 comments 0 reactions 1 assignee View on GitHub

Maintainers usually reply within 1 day

@a4180p is already working on this.

Since Nov 16, 2026.

Assessment

This issue has not been assessed yet.

Description

Problem

When Skipper reads an Eskip snapshot from routesrv, some predicate arguments are validated during document parsing. An error in one route causes the entire snapshot to be rejected, blocking unrelated route additions, changes, and deletions.

Existing routes continue to serve, leaving the routing table stale until the invalid definition is corrected.

Example

A snapshot contains:

  healthy: Path("/healthy") -> "https://new.example.org";
  broken: Method("GET", "POST") && Path("/example") -> <shunt>;

Because Method accepts exactly one string, parsing fails:

  invalid route "broken": Method predicate expects 1 string argument

The entire snapshot is rejected, including the valid update to healthy. Subsequent LoadAll() attempts fail while the invalid definition remains.

List of predicates validated during the parsing:

  • Path
  • Host
  • PathRegexp
  • Method
  • Header
  • HeaderRegexp
Desired behavior

A route-specific predicate argument error should not block unrelated valid route updates. The invalid route must not become active with its predicate removed or ignored, and its validation error should remain available for diagnosis.

Advanced admission validation can prevent some invalid definitions from entering Kubernetes, but it does not fix snapshot-wide failure handling.

Dominant language
Go
Stars
3.3k
Forks
410
Avg merge
3d 16h
Merged PRs (30d)
32

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from zalando/skipper

All issues in zalando/skipper

Similar issues

More Go issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.