Go Newcomer Fixes Kubernetes 1.31 Permission Bug in k9s After 48-Hour Debug Sprint
A developer with just three weeks of Go experience successfully merged a fix into k9s, the widely used Kubernetes terminal UI with over 58,000 GitHub stars. The bug stemmed from Kubernetes 1.31 introducing a WebSocket-based port-forwarding path that requires only the 'get' verb, while k9s was still checking for the 'create' verb used by the older SPDY protocol. This mismatch caused k9s to silently disable the port-forward option for users who had valid 'get'-only RBAC permissions, even though kubectl worked correctly for them. The contributor traced the issue through client-go source code, worked through a failed first attempt, and ultimately delivered a targeted two-line fix. The case highlights how protocol-level changes in Kubernetes can surface subtle authorization mismatches in tools that wrap the core API.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in