Encrypted Credentials in Custom Applications
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.
Generating an Encryption Key
Generate a 128- or 256-bit encryption key and save it to a file. You can use https://acte.ltd/utils/randomkeygen to generate a suitable encryption key.
Configuring the Web Server
Set the file path of the encryption key file to the encryption-key-file-path
web server parameter in heavyai.conf:
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.
Last updated