HEAVY.AI can accept a set of encrypted credentials for secure authentication of a custom application. This topic provides a method for providing an encryption key to generate encrypted credentials and configuration options for enabling decryption of those encrypted credentials.
Set the file path of the encryption key file to the encryption-key-file-path web server parameter in heavyai.conf:
[web]encryption-key-file-path=“path/to/file”
Alternatively, you can set the path using the --encryption-key-file-path=path/to/file command-line argument.
Generating Encrypted Credentials
Generate encrypted credentials for a custom application by running the following Go program, replacing the example key and credentials strings with an actual key and actual credentials. You can also run the program in a web browser at https://play.golang.org/p/nNBsZ8dhqr0.