Customize Cryptography
CustomizeKey Salt Store for Application Credentials
By default, Key Salt combination for AssistEdge Setup is pulled from the Database. This can be extended to a Json file or custom JS file.
Configure Key – Salt Length Validation
As per default security configurations, the permitted key length validation is set to allow minimum 32 and maximum of 128 characters. Similarly, for Salt, the values are 16 and 32 respectively.
Config.yml
Config.json
These values can be modified as per the client requirement. To change these values, open config.yml file for API and config.json for UI.
NOTE: |
Ensure to update the section as displayed in all cluster setup nodes . |
Set JS Custom file for Key Salt Store
To pull the combination from Custom file, follow the below mentioned steps.
- Edit the customSecureKey.js file available at app\Admin\modules\secureKey\helpers\keyStore and edit.
- Add custom logic to return and save secure key in respective method as shown below.
NOTE: |
Return key1 and key2 appended in SecureKey.key. cred. |
Set JSON file for Key Salt Store
To pull the combination from the file system, create a JSON file as displayed.
The file content is as displayed in the JSON file and the file extension is .json. This is used as a global key for all the application credentials. Provide the file path while running the ae advanced command through containerization.
- Combination of lower case (a-z) alphabets, upper case (A-Z) alphabets, and numeric keys (0-9) are allowed for KEY and SALT.
- Ensure that KEY and SALT consists of minimum 32 characters. Maximum 128 characters are allowed.