Before you begin
- Install the following tools.
-
Create a Kubernetes cluster, generate a secret key or a private/public key pair, and tokens for installing the Helm chart.
-
Clone the StreamNative repository.
-
Create required Kubernetes resources.
- Create a Kubernetes namespace for installing the StreamNative Platform release (if
-cis specified). - Create the JWT secret keys and tokens for four superusers:
broker-admin,proxy-admin,pulsar-manager-admin, andadmin.broker-admin: is used for inter-broker communications.proxy-admin: is used for communications between Pulsar proxies and Pulsar brokers.admin: is used for accessing thepulsar-adminCLI tool.pulsar-manager-admin: is used for accessing the StreamNative Console.
By default, this command generates the asymmetric public/private key pair. You can choose to generate a symmetric secret key by specifying-symmetricin the command. - Create a Kubernetes namespace for installing the StreamNative Platform release (if
-
Clone the StreamNative repository.
Enable JWT authentication for StreamNative Platform
To enable JWT authentication for StreamNative Platform, you can specifyauth.authentication.enabled, auth.authentication.provider, and auth.authentication.jwt.enabled properties in the values.yaml YAML file.
- [1]
enabled: enable or disable authentication on StreamNative Platform. - [2]
provider: specify the authentication provider. - [3]
jwt.enabled: enable or disable JWT authentication on StreamNative Platform. - [4]
jwt.usingSecretKey:- If the token is generated by a secret key (symmetric mode), set the
usingSecretKeyoption totrue. - If the token is generated by a private key (asymmetric mode), set the
usingSecretKeyoption tofalse. This is the default configuration.
- If the token is generated by a secret key (symmetric mode), set the