This guide provides step-by-step instructions for migrating from Redpanda Console v2.x.x (v2) to v3.x.x (v3). The new release introduces user impersonation to unify authentication and authorization between Redpanda Console and Redpanda, along with several breaking changes. This guide explains these changes and provides examples to help you update your configuration.
For details on the new authentication and authorization system, see console:config/security/authentication.adoc. For a list of breaking changes, see get-started:whats-new.adoc.
Try the Redpanda Console migration tool
|
Use the migration tool to convert your v2 configuration to v3 format. |
In v2, authentication and authorization was handled by the Redpanda Console. In v3, Redpanda Console uses the same authentication and authorization system as Redpanda. This change unifies the authentication and authorization model across Redpanda and Redpanda Console, enabling a more consistent and secure experience.
In v3, the plain login provider has been removed. Instead, you can either enable user impersonation or use static credentials for authentication. User impersonation forwards the credentials from the logged-in user to the APIs that have user impersonation enabled. With static credentials, the credentials specified in the configuration are used to authenticate with the APIs. For more information, see console:config/security/authentication.adoc.
Here is an example of how to migrate from the plain login provider to user impersonation:
login:
enabled: true
jwtSecret: "secret-key"
useSecureCookies: false
plain:
enabled: true
credentials:
- username: "jane"
password: "some-other-secret-password"
- username: "john"
password: "some-secret-password"
enterprise:
rbac:
enabled: true
roleBindingsFilepath: /tmp/role-bindings.yml
kafka:
sasl:
enabled: true
impersonateUser: true (1)
redpanda:
adminApi:
authentication:
impersonateUser: true
schemaRegistry:
enabled: true
authentication:
impersonateUser: true
authentication: (2)
jwtSigningSecret: "secret-key"
useSecureCookies: false
basic:
enabled: true (3)
-
When using user impersonation, the credentials from the logged-in user are forwarded to this API. As a result, any static role-binding settings are ignored for impersonated API calls. Ensure your users are provisioned as SASL/SCRAM users in Redpanda. See manage:security/authentication.adoc.
-
The
authentication
stanza replaces thelogin
stanza in v3. Use this stanza to configure authentication settings. -
The
basic
block enables basic authentication for Redpanda Console.
Role bindings in Redpanda Console are ignored with user impersonation. Instead, the credentials from the logged-in user are forwarded to the Redpanda APIs that have user impersonation enabled. Ensure that your logged-in users have the necessary ACLs in Redpanda. See manage:security/authorization/index.adoc.
If you prefer to disable user impersonation so that static credentials are used instead, modify your configuration as follows:
kafka:
sasl:
enabled: true
impersonateUser: false (1)
username: "jane" (2)
password: "some-other-secret-password"
mechanism: SCRAM-SHA-256
schemaRegistry:
enabled: true
authentication:
impersonateUser: false
basic:
username: "jane"
password: "some-other-secret-password"
#bearerToken: "example-bearer-token" # For OAuth2 bearer token
redpanda:
adminApi:
authentication:
impersonateUser: false
basic:
username: "jane"
password: "some-other-secret-password"
#bearerToken: "example-bearer-token" # For OAuth2 bearer token
authentication:
jwtSigningSecret: "secret-key"
useSecureCookies: false
basic:
enabled: true
# With static credentials, the role bindings still apply to control Console access.
authorization: (3)
roleBindings:
- roleName: admin
users:
- loginType: basic
name: "jane"
-
Set
impersonateUser
tofalse
to disable user impersonation. -
Specify the username, password, and mechanism for the static credentials.
-
Role bindings are applied when using static credentials.
Important
|
When impersonation is disabled, the static credentials specified in the |
In v2, Redpanda Console supported separate configuration for OIDC providers such as Google, GitHub, and Keycloak. In v3, the OIDC configuration has been simplified, and the login
stanza has been replaced by the authentication
stanza. For more information, see console:config/security/authentication.adoc.
Note
|
OIDC-based group authorization is no longer available in Redpanda Console. With the move to unified authentication, RBAC is now managed directly in Redpanda, which does not support OIDC groups. If you previously relied on OIDC groups to manage access, you must now transition to the RBAC model. Redpanda Data recommends mapping your existing group-based permissions to RBAC roles that reflect the same access levels. This change provides a more unified and fine-grained authorization approach. |
Here is an example of how to migrate from Google OIDC in v2 to v3:
Here is an example of how to migrate from Google OIDC in v2 to v3:
login:
enabled: true
jwtSecret: "old-google-secret"
google:
enabled: true
clientId: "google-client-id-v2"
clientSecret: "google-client-secret-v2"
issuerUrl: "https://accounts.google.com"
# issuerTls, displayName, and userIdentifyingClaimKey may be present in v2 but are omitted here for brevity.
kafka:
sasl:
enabled: true
impersonateUser: true (1)
authentication: (2)
jwtSigningSecret: "old-google-secret"
useSecureCookies: true
oidc: (3)
enabled: true
issuerUrl: "https://accounts.google.com"
clientId: "google-client-id-v2"
clientSecret: "google-client-secret-v2"
-
When using user impersonation, the credentials from the logged-in user are forwarded to the Kafka API. As a result, any static role-binding settings are ignored for impersonated API calls. Ensure your Redpanda cluster has SASL/OAUTHBEARER authentication enabled. See manage:security/authorization/index.adoc.
-
The
authentication
stanza replaces thelogin
stanza in v3. Use this stanza to configure authentication settings. -
The
oidc
block enables OIDC authentication for Redpanda Console. See console:config/security/authentication.adoc.
Redpanda requires a JWT-encoded access token for authentication. While most identity providers issue JWTs, some (like Google) follow the OAuth spec and issue opaque tokens instead. Since Redpanda relies on JWTs to introspect the audience and subject, providers that do not support JWT access tokens cannot be used for authentication.
In v2, role bindings could be configured in a separate file. In v3, the enterprise
stanza is deprecated, and role bindings must now be configured directly in your main configuration under the authorization.roleBindings
stanza. For more details, see console:config/security/authorization.adoc.
Here is an example of how to migrate role bindings from a separate file to the main configuration:
enterprise:
rbac:
enabled: true
roleBindingsFilepath: "/path/to/roleBindings.yaml"
# v2: Role bindings configured in a separate file.
roleBindings:
- roleName: admin
metadata:
name: Developers
creator: John Doe
subjects:
- kind: user
provider: Plain
name: alice
authorization:
roleBindings:
- roleName: admin
users:
- loginType: basic
name: alice
In v2, the Schema Registry configuration was nested under the kafka
stanza. In v3, this configuration is now a top-level stanza.
kafka:
brokers:
- "broker-0.mycompany.com:19092"
schemaRegistry:
enabled: true
urls:
- "http://schema-registry.mycompany.com:8081"
# Basic authentication:
username: "example-user"
password: "example-password"
# Bearer token:
bearerToken: "example-bearer-token"
# TLS configuration:
tls:
enabled: false
caFilepath: "/path/to/ca-cert.pem"
certFilepath: "/path/to/client-cert.pem"
keyFilepath: "/path/to/client-key.pem"
insecureSkipTlsVerify: false
schemaRegistry:
enabled: true
urls:
- "http://schema-registry.mycompany.com:8081"
authentication:
impersonateUser: false
basic:
username: "example-user"
password: "example-password"
bearerToken: "example-bearer-token"
tls:
enabled: false
caFilepath: "/path/to/ca-cert.pem"
certFilepath: "/path/to/client-cert.pem"
keyFilepath: "/path/to/client-key.pem"
insecureSkipTlsVerify: false
In v3, all serialization settings are consolidated under the serde
stanza. The connect configuration has been renamed to kafkaConnect
, and the console.maxDeserializationPayloadSize
setting is now part of the serde
configuration.
kafka:
protobuf:
enabled: false
mappings: []
cbor:
enabled: false
messagePack:
enabled: false
console:
maxDeserializationPayloadSize: 20480
connect:
enabled: false
clusters: []
serde:
protobuf:
enabled: false
mappings: []
cbor:
enabled: false
messagePack:
enabled: false
console:
maxDeserializationPayloadSize: 20480
kafkaConnect:
enabled: false
clusters: []
After updating your configuration, verify that:
-
Users can log in using the new authentication settings.
-
API calls to Kafka, Schema Registry, and the Admin API are authenticated correctly.
This migration tool attempts to convert your Redpanda Console configuration from v2 to v3 format. The tool is provided as a convenience and may not cover all migration scenarios. Always review the output to ensure that your configuration is correct.
To use the tool, paste your v2 YAML configuration into the text box and click Migrate to generate the updated configuration. To test the tool, click Load sample to load a sample configuration.
If you have a separate file for role bindings, paste the contents into the text box along with the main configuration. In v3, role bindings are configured directly in the main configuration file. The tool attempts to convert your role bindings into the new format and adds them to the main configuration file in the output.
Review the output before deploying the new configuration. If you encounter any issues, refer to the examples in this guide to manually update your configuration.