Make auth-webhook async

Bug #1927145 reported by Cory Johns
16
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Kubernetes Control Plane Charm
Fix Released
Critical
Cory Johns

Bug Description

auth-webhook is currently a synchronous flask app managed by gunicorn and is threaded for as many threads as you have cores (up to 8). This is fine when we authn against local secrets/files, but threads can block if we reach out to an unavailable endpoint (keystone, custom addr, etc).

We should switch auth-webhook to an async model so we don't block all the threads if an external resource is unavailable:

https://docs.gunicorn.org/en/stable/design.html

Cory Johns (johnsca)
Changed in charm-kubernetes-master:
status: New → Triaged
assignee: nobody → Cory Johns (johnsca)
importance: Undecided → Medium
status: Triaged → In Progress
Revision history for this message
Cory Johns (johnsca) wrote :
Cory Johns (johnsca)
Changed in charm-kubernetes-master:
importance: Medium → Critical
tags: added: review-needed
Cory Johns (johnsca)
tags: added: backport-needed
Revision history for this message
Cory Johns (johnsca) wrote :
Changed in charm-kubernetes-master:
milestone: none → 1.21+ck2
status: In Progress → Fix Committed
tags: removed: backport-needed review-needed
Revision history for this message
Cory Johns (johnsca) wrote :

This was released on May 28th with bundle rev 679 / kubernetes-master rev 1008.

Changed in charm-kubernetes-master:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.