
Automating Kerberos Keytab Rotation at Uber
6/18/2025
This post details the implementation of automated, failure-domain-aware rotation for Kerberos keytabs at Uber, building upon the existing Secrets Management Platform (SMP). It describes the integration of the Keytab Distribution Pipeline (KDP) with SMP, where KDP acts as a Secret Provider to generate, rotate, and delete keytabs. The Keytab Manager component, residing with the Kerberos KDC, handles password changes and new keytab generation, uploading them to the Secret Store. The post elaborates on the challenges of keytab rotation at scale (over 100,000 keytabs) and the critical need to minimize authentication failures during the rotation process. It details specific strategies to mitigate failures during AS_REQ (ensuring TGT validity, minimizing fetch time) and AP_REQ (maintaining dual key versions on servers during transition). Additionally, it highlights the measure of migrating containerized applications to node-specific principals/keytabs to minimize blast radius.
