Skip to content

Document that .WithName/.WithNameRegex don't match generateName CREATEs on mutating bindings #3218

Description

@samayer12

Is your feature request related to a problem? Please describe.

The .WithName/.WithNameRegex docs don't mention that on mutating bindings these filters won't match CREATE requests that use metadata.generateName, because the name isn't assigned until after mutating admission. Validating bindings are unaffected (they see the resolved name).

Describe the solution you'd like

  • Given a user reading the .WithName/.WithNameRegex documentation
  • When they scope a binding by name/regex
  • Then the docs clearly state (a) these filters don't apply to generateName CREATEs on mutating bindings, and (b) security enforcement should be implemented via validating bindings, per the Kubernetes admission docs

Additional context

Originated from a responsibly-disclosed report by @EchoSkorJjj. Pairs with the fail-loud warning in #3217

Activity

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

    enhancementNew feature or request

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions