Commands for Secure Values
VaultValues in Eggplant Functional are strings that get stored in a secure location, referred to as a vault. The location is specific to your operating system; for more information, see Using Vault Values on Different Platforms below. This feature is available in EPF 21.2.0 and later for Windows and MacOS, and was added for Linux in 26.4.0.
The commands on this page are used to store information securely in a vault. The VaultID is a user-defined string. describing the vault. These commands can be used with the TypeHiddenText command to protect connection information like passwords.
Using Vault Values on Different Platforms
Click the appropriate tab below to see information on where VaultValues are stored on each platform, and any specific setup instructions for that platform:
- VaultValues Location on Windows
- on macOS
- on Linux
On Windows, VaultValues are stored in the Credential Manager.
On macOS, VaultValues are stored in the Keychain.
On Linux, VaultValues are stored in the Gnome Keyring.
To use the Gnome Keyring, you need to have the gnome-keyring package installed. This is generally already installed on most Linux systems. If it is not installed on your system, you will see an error when using the vault commands (the error mentions that you’re missing gnome-keyring). In this case, you should install both the gnome-keyring package, as well as libsecret, using the appropriate command:
Ubuntu command to install gnome-keyring and libsecret packages:
sudo apt-get install gnome-keyring libsecret-tools
RHEL command to install gnome-keyring and libsecret packages:
sudo dnf install gnome-keyring libsecret
Delete VaultValue Command
Behavior: Deletes a VaultValue from a vault.
Parameters: A VaultID.
Example:
DeleteVaultValue "myVaultID"
Example:
DeleteVaultValue vaultID:"myVaultID"
Get VaultValue Command
Behavior: Returns a VaultValue from a vault.
Parameters: A VaultID.
Example:
set mySecret to GetVaultValue("myVaultID")
Example:
set mySecret to GetVaultValue(vaultID:"myVaultID")
Set VaultValue Command
Behavior: Stores a VaultVaule in the specified vault.
Parameters: A vaultID and a value.
Example:
SetVaultValue "myVaultID", "myValue"
Example:
SetVaultValue vaultID:"myVaultID", value:"myValue"