When configuring the key vault connection, ensure that the Agent secret name in the user interface(UI) exactly matches the key stored in the key vault.
Steps to verify:
Run the following command:
./discli keyvault deploySecret --listkeysThis will list all keys available across namespaces. Look for the key name under your relevant namespace, for example:
The key name (e.g.,Listing keys in 'precisely-keyvault-secret' agentaprolesecret SUCCESS: Total keys: 1agentaprolesecret) must exactly match the value configured as Agent secret name in the UI key vault connection.- If no keys are found, the output is
INFO: Secret 'precisely-keyvault-secret' missing in <namespace>It indicates that no keys have been deployed in that namespace.
- Error in UI: If the Agent secret name configured in the UI does not match any key
available on the Agent, the following error appears in the
UI.
[KEYVAULT-FILE-ERROR] KeyVault Agent Secret not accessible. Please verify the secret configuration and ensure the agent secret is properly mounted. - Optional: To explore additional options for this command, run
./discli keyvault deploySecret --helpThis displays supported flags such as
--listkeys, which can assist during validation and troubleshooting.