Manage identity with GKE Identity Service

GKE Identity Service lets you integrate existing identity providers to authenticate users to Google Distributed Cloud clusters. Users can connect to the Kubernetes API server from the command line by using OpenID Connect (OIDC) or Lightweight Directory Access Protocol (LDAP), or through the Google Cloud console by using OIDC.

The service supports admin, user, hybrid, and standalone clusters, connecting to on-premises systems such as Active Directory Federation Services (ADFS) and public providers such as Okta. If your organization uses Google Accounts, use the connect gateway to manage cluster access.

Architecture overview

The GKE Identity Service runs as a Pod inside the cluster control plane. During cluster lifecycle phases, the API Server is dynamically configured to use the in-cluster GKE Identity Service as the authentication webhook for all incoming requests. The API Server isn't able to use in-cluster DNS. As a result, the API Server is configured to access GKE Identity Service as a REST resource access. In audit logs, this invocation is recorded as a CREATE request to the Services or proxy resource by a system:anonymous user.

Before you begin

  • To prompt users for consent and authorize their user account, a browser-based authentication flow is used. Headless systems aren't supported.

  • To authenticate through the Google Cloud console, each cluster that you want to configure must be registered with your project fleet.

Setup process and options

GKE Identity Service supports identity providers using the following protocols:

OIDC

  1. Register GKE Identity Service as a client with your OIDC provider following the instructions in Configuring providers for GKE Identity Service.

  2. Choose from the following cluster configuration options:

  3. Set up user access to your clusters, including role-based access control (RBAC), following the instructions in Setting up user access for GKE Identity Service.

LDAP

To get started with LDAP, follow the instructions in Set up GKE Identity Service with LDAP.

Access clusters

After GKE Identity Service has been set up, users can sign in to configured clusters using either the command line or the Google Cloud console.

Troubleshoot the login flow

To troubleshoot login flows that authenticate directly on the GKE Identity Service server with a fully qualified domain name (FQDN), you can use the GKE Identity Service diagnostic utility. The diagnostic utility simulates login flows with your OIDC provider to quickly identify configuration problems. This tool requires a version 1.32 or higher cluster and only supports OIDC. For more information, see GKE Identity Service diagnostic utility.