Secretless Broker: "Conjur provider could not retrieve access token using the authenticator client" when starting secretless broker
89
Created On 11/10/26 10:55 AM - Last Modified 11/10/26 16:01 PM
Symptom
When starting secretless broker, the broker fails to start. The following appears in the logs:
2019/05/30 16:16:38 Secretless starting up...
2019/05/30 16:16:38 WARN: Config file and config manager specified - forcing 'configfile' configuration manager!
2019/05/30 16:16:38 Loading internal plugins...
2019/05/30 16:16:38 - ConfigurationManagers: [k8s/crd configfile]
2019/05/30 16:16:38 - ConnectionManagers: []
2019/05/30 16:16:38 - Providers: [aws conjur env file keychain kubernetes literal vault]
2019/05/30 16:16:38 - Handlers: [http/basic_auth http/conjur mysql pg ssh sshagent http/aws]
2019/05/30 16:16:38 - Listeners: [mysql pg ssh ssh-agent http]
2019/05/30 16:16:38 Completed loading internal plugins.
2019/05/30 16:16:38 Loading external library plugins...
2019/05/30 16:16:38 Registering shutdown signal listeners...
2019/05/30 16:16:38 Initializing configuration manager 'configfile'...
2019/05/30 16:16:38 Trying to load configuration file: /etc/secretless/secretless.yml
2019/05/30 16:16:38 Configuration manager 'configfile' initialized (configSpec: '/etc/secretless/secretless.yml').
2019/05/30 16:16:38 Initializing connection managers...
2019/05/30 16:16:38 Initialization of plugins done.
2019/05/30 16:16:38 Initializing the proxy...
2019/05/30 16:16:38 Initializing health check on :5335...
2019/05/30 16:16:38 Initialization of health check done. You can access the endpoint at `/live` and `/ready`.
2019/05/30 16:16:38 Waiting for valid configuration to be provided...
2019/05/30 16:16:38 Configuration manager 'configfile' provided new configuration...
2019/05/30 16:16:38 Reloading...
2019/05/30 16:16:38 ----------------------------
2019/05/30 16:16:38 Registering reload signal listeners...
2019/05/30 16:16:38 Starting all listeners and handlers...
2019/05/30 16:16:38 pg listener 'test-app-pg-listener' listening at: [::]:5432
2019/05/30 16:16:38 mysql listener 'test-app-mysql-listener' listening at: [::]:3306
2019/05/30 16:16:49 Instantiating provider 'conjur'
2019/05/30 16:16:49 Info: Conjur provider using Kubernetes authenticator-based authentication
2019/05/30 16:16:49 logging in as host/conjur/authn-k8s/dev/apps/sgnn7-demo/service_account/test-app-secretlessnope.
2019/05/30 16:16:49 making login request to https://conjur-follower.conjur-0xx9.svc.cluster.local/api/authn-k8s/dev/inject_client_cert
2019/05/30 16:16:50 logging in as host/conjur/authn-k8s/dev/apps/sgnn7-demo/service_account/test-app-secretlessnope.
2019/05/30 16:16:50 making login request to https://conjur-follower.conjur-0xx9.svc.cluster.local/api/authn-k8s/dev/inject_client_cert
2019/05/30 16:16:54 logging in as host/conjur/authn-k8s/dev/apps/sgnn7-demo/service_account/test-app-secretlessnope.
2019/05/30 16:16:54 making login request to https://conjur-follower.conjur-0xx9.svc.cluster.local/api/authn-k8s/dev/inject_client_cert
2019/05/30 16:17:03 logging in as host/conjur/authn-k8s/dev/apps/sgnn7-demo/service_account/test-app-secretlessnope.
2019/05/30 16:17:03 making login request to https://conjur-follower.conjur-0xx9.svc.cluster.local/api/authn-k8s/dev/inject_client_cert
2019/05/30 16:17:19 logging in as host/conjur/authn-k8s/dev/apps/sgnn7-demo/service_account/test-app-secretlessnope.
2019/05/30 16:17:19 making login request to https://conjur-follower.conjur-0xx9.svc.cluster.local/api/authn-k8s/dev/inject_client_cert
2019/05/30 16:17:36 logging in as host/conjur/authn-k8s/dev/apps/sgnn7-demo/service_account/test-app-secretlessnope.
2019/05/30 16:17:36 making login request to https://conjur-follower.conjur-0xx9.svc.cluster.local/api/authn-k8s/dev/inject_client_cert
2019/05/30 16:17:56 logging in as host/conjur/authn-k8s/dev/apps/sgnn7-demo/service_account/test-app-secretlessnope.
2019/05/30 16:17:56 making login request to https://conjur-follower.conjur-0xx9.svc.cluster.local/api/authn-k8s/dev/inject_client_cert
2019/05/30 16:18:05 logging in as host/conjur/authn-k8s/dev/apps/sgnn7-demo/service_account/test-app-secretlessnope.
2019/05/30 16:18:05 making login request to https://conjur-follower.conjur-0xx9.svc.cluster.local/api/authn-k8s/dev/inject_client_cert
2019/05/30 16:18:16 logging in as host/conjur/authn-k8s/dev/apps/sgnn7-demo/service_account/test-app-secretlessnope.
2019/05/30 16:18:16 making login request to https://conjur-follower.conjur-0xx9.svc.cluster.local/api/authn-k8s/dev/inject_client_cert
2019/05/30 16:18:25 logging in as host/conjur/authn-k8s/dev/apps/sgnn7-demo/service_account/test-app-secretlessnope.
2019/05/30 16:18:25 making login request to https://conjur-follower.conjur-0xx9.svc.cluster.local/api/authn-k8s/dev/inject_client_cert
2019/05/30 16:18:45 logging in as host/conjur/authn-k8s/dev/apps/sgnn7-demo/service_account/test-app-secretlessnope.
2019/05/30 16:18:45 making login request to https://conjur-follower.conjur-0xx9.svc.cluster.local/api/authn-k8s/dev/inject_client_cert
2019/05/30 16:18:56 logging in as host/conjur/authn-k8s/dev/apps/sgnn7-demo/service_account/test-app-secretlessnope.
2019/05/30 16:18:56 making login request to https://conjur-follower.conjur-0xx9.svc.cluster.local/api/authn-k8s/dev/inject_client_cert
2019/05/30 16:18:56 ERROR: Provider 'conjur' could not be used! ERROR: Conjur provider could not retrieve access token using the authenticator client: Error: Conjur provider unable to log in to Conjur:
Environment
Secretless Broker 1.0
Cause
Kubernetes Authenticator auth details are incorrect or invalid
Resolution
- Ensure that the authenticator
authn-k8s/<id>is enabled on Conjur. - Ensure that the host is defined as one that can log in through this authenticator.
- Ensure that
CONJUR_AUTHN_LOGINandCONJUR_ACCOUNTvariables for Secretless match expected values in Conjur.