How to Authenticate to Control Center With Kerberos
Set up GridGain 8 Control Center to authenticate users with Kerberos through Keycloak, using OAuth2, a KDC, and browser SPNEGO.
Prerequisites
A running Keycloak server
A Kerberos KDC and realm, or the ability to create one
A GridGain 8 Control Center instance
Overview
This guide walks you through setting up Control Center to use Kerberos authentication with Keycloak.

This guide uses the following software versions:
Control Center 2023.3
Keycloak 19.0.2
Kerberos 5 1.19.2
The setup has five steps:
Configure Control Center to use OAuth2 Keycloak Authentication
Open the Keycloak Administration console in your browser and log in as administrator.
Create the
gridgainrealm:Initiate realm creation.

Initiate realm creation Enter the name "gridgain" and save the new realm.

Save the new realm
Create the
control-centerclient:Initiate client creation.

Initiate client creation Enter the values as they appear in the screenshot below and click Next.

Enter client values Enter the values as they appear in the screenshot below and click Save.

Enter client values and save
On the Client Details page, define access settings for the client you have created. Use your actual Control Center host address and port number.

Client Details access settings Root URL: http://[cc-host]:[cc-port]
Home URL: http://[cc-host]:[cc-port]/api/v1/oauth2/login/keycloak
Valid Redirect URIs: http://[cc-host]:[cc-port]/*
On the Credentials tab, copy Client secret, which is required to set up the Control Center connection to Keycloak.

Copy the client secret Click the OpenID endpoint configuration link on the Realm Settings page.

OpenID endpoint configuration link On the page that opens, define the following settings.

Define endpoint settings Create a new Control Center user:
Initiate user creation.

Initiate user creation Enter the values as they appear in the screenshot below and click Create.

Enter user values and create
Manually set up a password for
cc-user:Initiate the Set password procedure.

Initiate the set password procedure Enter the required password and click Save.

Enter password and save
You can now authenticate to Control Center as
cc-userwith the password you created in the previous step.Edit the Control Center's
application.yamlconfiguration. Use the values from step 5 and step 7 above. Replace[kc-url]with the actual Keycloak network address.
Set up Kerberos Server on Ubuntu
Install the Key Distribution Center and Kerberos Admin Service:
During installation, set the following properties:
Default realm:
EXAMPLE.COMKerberos server:
kdc.example.comAdmin server:
kdc.example.com
Create a realm:
Create Kerberos Principals
Create a new principal to be used by Keycloak:
Generate the principal keytab file:
Place the
http.keytabfile on the Keycloak machine locally.Create a principal and keytab to be used by Control Center:
Configure Keycloak to log in With a Kerberos Ticket
Select the
gridgainrealm and go to User Federation.
Select the gridgain realm and open User Federation Add the Kerberos provider and click Save.

Add the Kerberos provider From the side menu, select Authentication.

Select Authentication Add Kerberos as an alternative step to the Browser flow.

Add Kerberos as an alternative step to the Browser flow
Sign in to Control Center With the Kerberos User
Install the Kerberos client on the client side (if not already installed):
During installation, configure the realm host.
Authenticate to Kerberos as
krb-userwith the keytab you created in step 3.3:Check whether the Kerberos tickets have been successfully granted by the KDC:
The response should be:
Launch your browser (Chrome in this guide) with SPNEGO enabled to allow Kerberos authentication with Keycloak:
Open Control Center in the browser and select the Sign in to your account with OpenID option.

Sign in with OpenID Authentication with the Kerberos principal is performed automatically.

Authentication with the Kerberos principal
Related
Keycloak documentation - Configuring Kerberos user federation in Keycloak.
OpenID Connect Authentication - Setting up OpenID Connect authentication in Control Center.
This page is: Copyright © 2026 MariaDB. All rights reserved.
Last updated
Was this helpful?

