Monitor and troubleshoot HashiCorp Vault
Monitor health
Track Vault integration status:
Troubleshoot common issues
Connection failures
Symptoms: Platform cannot retrieve secrets, authentication errors in logs.
Solutions:
Verify the Vault URL
Confirm the vault_url value is correct, reachable from the Platform server, and includes the correct port (default: 8200).
Check Vault server status
Verify that Vault is running and unsealed. A sealed Vault returns errors for all requests.
Look for Sealed: false in the output.
Confirm authentication credentials
For token auth, verify that the token file exists and contains a valid, non-expired token:
For AppRole auth, verify the role_id and secret_id are correct and the secret_id has not expired.
TLS certificate errors
Symptoms: Platform logs contain UNABLE_TO_VERIFY_LEAF_SIGNATURE.
Cause: Platform cannot verify the SSL certificate chain presented by the Vault server.
Solution: Add the Vault certificate chain to Itential Platform on every Platform server in your environment.
Copy the Vault certificate chain into the file
Copy the contents of all SSL certificates in the chain in order: end-user certificate first, then intermediate certificates, then the root certificate.
To retrieve the certificate chain directly from the Vault server:
When Vault certificates are rotated, update /etc/pki/tls/certs/vault.cert with the new chain, then restart Platform.
Secret not found
Symptoms: Platform cannot retrieve a specific secret; adapter or integration fails to start.
Solutions:
Verify the secret reference format
Confirm the reference uses the correct syntax with a space between the path and key directives:
Common mistake: missing the space before $KEY_.
Verify the Vault path
Confirm the secret exists at the specified path in Vault. The path in a $SECRET reference is relative to the kv-v2 mount point and does not include /data/.
Token expiration
Symptoms: Vault integration stops working after a period of time.
Solutions:
Renew or replace the token
Renew the token if it is still valid:
If the token has expired, generate a new one and update the token file at the path configured in vault_token. Restart Itential Platform after replacing the token.
Consider using AppRole authentication
AppRole authentication with a periodically-renewed secret_id is better suited for long-running production deployments than static tokens. See Connect Platform to HashiCorp Vault for AppRole configuration details.