(Recommended) Secure approach for passing a token to configure SQL AI Assistant in
Cloudera Data Warehouse
In this approach, you use Kubernetes' method of distributing secrets. You first
encode the credentials and then add the encoded bit as a data item in the
HUE_AI_INTERFACE_TOKEN property. The token becomes available in the Hue pod as an
environment variable.
Use a base64 encoding tool to convert your token to a base-64 representation by
running the following command:
echo -n '[***MY-TOKEN***]' | base64
Replace
[***MY-TOKEN***] with the token value you want to
encode.
Open a terminal session and run the following command to add the encoded
secret: