Troubleshooting Steps

ARTIFACTORY: How to Set Up Hashicorp Vault with Artifactory

AuthorFullName__c
Sam Rosenstein, Yoav Harel
articleNumber
000005152
ft:sourceType
Salesforce
FirstPublishedDate
2021-10-12T11:56:01Z
lastModifiedDate
2024-04-15
VersionNumber
4
When trying the save the connection with the above settings, you may run into the following errors:

TLS Error
[jffe ] [ERROR] [471aeefed3e7deaa] [                              ] [main                ] - http request failed with the message - Verification of the connection configurations is not allowed when TLS is not enabled in Access and the platform

Solution
Enable TLS for BOTH Artifactory and Access as mentioned in the Prerequisites section above.

HTTPS Error - Getting below error in the UI when pressing the ‘Save’ button:
"Client sent an HTTP request to an HTTPS server" 
Solution
In order to proceed, need to use https://<VAULT_IP>:<PORT>

Environment Variables Error
root@machine:/home/samr# vault auth enable approle
Error enabling approle auth: Post "https://127.0.0.1:8200/v1/sys/auth/approle": http: server gave HTTP response to HTTPS client

Solution
The VAULT_ADDR and VAULT_TOKEN env variables weren’t set