Securing kube-bind with Keycloak: A Production-Ready OIDC Setup
Historical 0.x article
The Keycloak walkthrough is preserved from the 0.x documentation. Backend flags and callbacks have changed, use the v2 OIDC configuration.
In this tutorial, I'll be showing you how to integrate Keycloak into kube-bind so that authentication is handled by an external identity provider instead of the embedded mock one.
If you've been following along from the previous posts, you know that kube-bind lets you project APIs from a provider cluster into a consumer cluster. To do that securely, it uses OIDC for authentication. In the quickstart guide, we used the embedded OIDC provider, which is great for tinkering locally, but absolutely not something you'd ship to production.
In production, you want a proper identity provider. One that manages users, groups, tokens, and sessions correctly. For this, we'll be making use of Keycloak.