Configure login methods
This section describes how to configure different methods for logging in to StreamNative Console.- Username
- Google account
- Microsoft account
- Okta
- JWT
This table lists the items to be configured when you want to log in to StreamNative Console using a username.
Forward Grafana requests
StreamNative Platform supports forwarding Grafana requests using StreamNative Console. Therefore, you can directly log in to Grafana after you log in to StreamNative Console. Configure the Grafana property of the StreamNative Console in thevalues.yaml YAML file as follows, and update the resource.
- [1]
GRAFANA_AUTH_PROXY: configure whether to enable Auth Proxy for StreamNative Console. If enabled, StreamNative Console can forward Grafana requests. By default, it is set tofalse. - [2]
GRAFANA_AUTH_PROXY_USER: configure the user who accesses Grafana through StreamNative Console. By default, it is set topulsar.
Enable the connector page
StreamNative Platform supports multiple Pulsar IO connectors to import data into or export data out of Pulsar topics. You can set theCONNECTOR_ENABLED option of the StreamNative Console in the values.yaml YAML file to configure whether to display the connector page on the StreamNative Console. By default, the connector page displays on the StreamNative Console.
Customize the username and password
For security reasons, the custom username and password are disabled by default. It is recommended to execute the following command to automatically generate the password.
admin user is created for StreamNative Console. You can configure the specific username and password in the values.yaml YAML file and then update the resource, as shown below.
Customize a service account
By default, when JWT authentication is enabled, you can access your Pulsar cluster using thepulsar-manager-admin role. StreamNative Platform also allows you to use a custom service account with Super Admin privilege to access your Pulsar cluster and then create tenants, namespaces, or topics.
After creating a service account with Super Admin privilege through StreamNative Console, you need to add the service account to the superuser list of the Pulsar broker, Pulsar proxy, and StreamNative Console in the auth.superUsers section and to the streamnative_console.configData.BACKEND_DEFAULT_SUPER_USER_ROLE parameter in the values.yaml YAML file, and then update the resource.
The following example shows how to configure a service account (named sa-super) with the Super Admin privilege to access your Pulsar cluster.