Skip to content

Only register the audit webhook on Enterprise [release-v1.42] - #5301

Merged
caseydavenport merged 1 commit into
tigera:release-v1.42from
caseydavenport:casey-audit-webhook-gate-v1.42
Sep 8, 2026
Merged

caseydavenport merged 1 commit into
tigera:release-v1.42from
caseydavenport:casey-audit-webhook-gate-v1.42

Conversation

@caseydavenport

Copy link
Copy Markdown
Member

Cherry-pick of #5069 onto release-v1.42, resolving a conflict on the enterprise-variant check, which this branch spells differently than master.

The /audit handler only exists in Enterprise, so registering the audit-logging webhook on Calico OSS points the API server at an endpoint that isn't served and fills its log with failed webhook calls. Gate the webhook on the Enterprise variant.

Related: projectcalico/calico#13244

Release Note

Fixes repeated failed-webhook errors in the Kubernetes API server log on Calico (non-Enterprise) clusters, caused by registering an audit admission webhook whose endpoint only exists in Calico Enterprise.

The /audit handler exists only in Enterprise, so registering the
audit-logging webhook on Calico OSS points the API server at an
endpoint that isn't served, filling its log with failed webhook
calls. Gate the webhook on the Enterprise variant.

(cherry picked from commit 662f908)
Copilot AI lite review requested due to automatic review settings September 8, 2026 19:25
@caseydavenport
caseydavenport requested a review from a team as a code owner September 8, 2026 19:25
@marvin-tigera marvin-tigera added this to the v1.42.7 milestone Sep 8, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@caseydavenport
caseydavenport merged commit 75451c7 into tigera:release-v1.42 Sep 8, 2026
8 checks passed
@caseydavenport
caseydavenport deleted the casey-audit-webhook-gate-v1.42 branch September 8, 2026 20:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants