Skip to content

Webhooks intercepting exclude specific resources #3038

@Markieta

Description

@Markieta

GKE clusters warn about Intercepting cluster-scoped system resources.

Google recommends excluding nodes, tokenreviews, subjectaccessreviews, and certificatesigningrequests on webhooks intercepting those as they consider it unsafe.

I believe matchConditions (FEATURE STATE: Kubernetes v1.28 [beta]) can be used here to exclude those cluster-scoped (or any other) resources on gatekeeper-validating-webhook-configuration & gatekeeper-mutating-webhook-configuration.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions