Hello, I am having an issue using secretless provider when using Conjur as my secrets management tool. When I run my application I get an error in the secretless broker logs, error 404 variable not found. I use the conjur cli to verify that the secret exists, and it does. The application works when using a secretless.yml file that has the password hardcoded. Any suggestions on what to check?
The following are details on my setup.
Docker command used to run container:
docker run --network host --env CONJUR_AUTHN_LOGIN=host/secretlessBrokerApp/secretlessBrokerApp-01 --env CONJUR_AUTHN_API_KEY=apiKey --env CONJUR_ACCOUNT=conjuraccount --env CONJUR_APPLIANCE_URL=http://ec2.us-east-2.compute.amazonaws.com -it cyberark/secretless-broker -debug
Logs from secretless broker:
2020/02/11 00:05:18 Secretless v1.5.0-4dfeef3 starting upâŚ
2020/02/11 00:05:18 Initializing health check on :5335âŚ
2020/02/11 00:05:18 Initialization of health check done. You can access the endpoint at /live
and /ready
.
2020/02/11 00:05:18 [WARN] Plugin hashes were not provided - tampering will not be detectable!
2020/02/11 00:05:18 Trying to load ./secretless.ymlâŚ
2020/02/11 00:05:18 Configuration file ./secretless.yml loaded
2020/02/11 00:05:18 [INFO] Waiting for new configurationâŚ
2020/02/11 00:05:18 [DEBUG] Got new configuration
2020/02/11 00:05:18 Registering reload signal listenersâŚ
2020/02/11 00:05:18 [INFO] Validating config against available plugins: ssh,ssh-agent,mssql,pg,mysql,basic_auth,conjur,generic_http,aws
2020/02/11 00:05:18 [WARN] Starting TCP listener on 0.0.0.0:3306âŚ
2020/02/11 00:05:18 [INFO] mysqlDB: Starting service
2020/02/11 00:05:18 [INFO] Waiting for new configurationâŚ
2020/02/11 00:06:10 Instantiating provider âliteralâ
2020/02/11 00:06:10 Instantiating provider âconjurâ
2020/02/11 00:06:10 Info: Conjur provider using API key-based authentication
2020/02/11 00:06:11 ERROR: Resolving credential âsecretlessBrokerSecrets/DBPasswordâ from provider âconjurâ failed: 404 Not Found. Variable âsecretlessBrokerSecrets/DBPasswordâ not found in account âconjuraccountâ.
2020/02/11 00:06:11 [ERROR] mysqlDB: Failed on handle connection: failed on retrieve credentials: ERROR: Resolving credential âsecretlessBrokerSecrets/DBPasswordâ from provider âconjurâ failed: 404 Not Found. Variable âsecretlessBrokerSecrets/DBPasswordâ not found in account âconjuraccountâ.
output from conjur cli verifying secret exists:
PS C:\Users\Louis.Cervantes> conjur init -u ec2.us-east-2.compute.amazonaws.com -a conjuraccount
File C:/Users/Louis.Cervantes/.conjurrc exists. Overwrite (yes/no): yes
Wrote configuration to C:/Users/Louis.Cervantes/.conjurrc
PS C:\Users\Louis.Cervantes> conjur authn login -p password -u user
Logged in
PS C:\Users\Louis.Cervantes> conjur variable value secretlessBrokerSecrets/DBPassword
Password
secretless.yml: