Skip to content

🌱 Recover panics in authentication webhooks, change webhook CounterVec to Counter metrics - #3648

Merged
kubernetes-prow[bot] merged 1 commit into
kubernetes-sigs:mainfrom
sbueringer:pr-auth-recover-panic
Nov 8, 2026
Merged

kubernetes-prow[bot] merged 1 commit into
kubernetes-sigs:mainfrom
sbueringer:pr-auth-recover-panic

Conversation

@sbueringer

Copy link
Copy Markdown
Member

This PR implements the same panic recovery we have in admission and conversion webhooks also for authentication webhooks

@kubernetes-prow kubernetes-prow Bot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Nov 4, 2026
@sbueringer

Copy link
Copy Markdown
Member Author

/hold
for review from Alvaro

/assign @alvaroaleman

@kubernetes-prow kubernetes-prow Bot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. labels Nov 4, 2026
var (
// WebhookPanics is a prometheus counter metrics which holds the total
// number of panics from authentication webhooks.
WebhookPanics = prometheus.NewCounterVec(prometheus.CounterOpts{

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Why is it a vec? We never set any label values, that doesn't seem correct

@sbueringer sbueringer Nov 5, 2026 •

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Because I copied it from admission without thinking about it :)

Fixed

@sbueringer
sbueringer force-pushed the pr-auth-recover-panic branch from 50d0099 to 7445feb Compare November 5, 2026 12:44
@sbueringer sbueringer changed the title 🌱 Recover panics in authentication webhooks 🌱 Recover panics in authentication webhooks, change webhook CounterVec to Counter metrics Nov 5, 2026

@alvaroaleman alvaroaleman left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

/hold cancel

@kubernetes-prow kubernetes-prow Bot added lgtm "Looks good to me", indicates that a PR is ready to be merged. and removed do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. labels Nov 8, 2026
@kubernetes-prow

Copy link
Copy Markdown
Contributor

LGTM label has been added.

DetailsGit tree hash: 62b45e9cbef757a1d92c4baec5e0307dad5e4310

@kubernetes-prow

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: alvaroaleman, sbueringer

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:
  • OWNERS [alvaroaleman,sbueringer]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@kubernetes-prow
kubernetes-prow Bot merged commit 882a913 into kubernetes-sigs:main Nov 8, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants