Skip to content

Multiple PlanPolicy scenario broken #1741

@eguzki

Description

@eguzki

When both HTTPRoute-level and Gateway-level PlanPolicies exist:

  • PlanPolicy A (targeting HTTPRoute) creates → RateLimitPolicy A (targeting HTTPRoute). This RLP's status is Accepted and Enforced.
  • PlanPolicy B (targeting Gateway) creates → RateLimitPolicy B (targeting Gateway). This RLP's status is Accepted and NOT Enforced. PlanPolicy B not Accepted.

So far so good. As expected. However, PlanPolicyA rules (which is Accepted and Enforced) no longer are enforced.

I checked the authconfig before and after applying the gateway level planpolicy. The controller has entirely replaced the mapping coming from route level planpolicy with the gateway level planpolicy. Thus, plan attribute is not correctly set in the authentication step and rate limiting gets broken.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions