Secretless Broker: 'psql: FATAL: the backend does not allow SSL connections' when starting secretless broker
87
Created On 11/10/26 11:01 AM - Last Modified 11/10/26 16:02 PM
Symptom
When starting secretless broker, the broker fails to start. The following appears in the logs:
2019/05/29 12:46:58 Secretless starting up...
2019/05/29 12:46:58 Loading internal plugins...
2019/05/29 12:46:58 - ConfigurationManagers: [configfile k8s/crd]
2019/05/29 12:46:58 - ConnectionManagers: []
2019/05/29 12:46:58 - Providers: [aws conjur env file keychain kubernetes literal vault]
2019/05/29 12:46:58 - Handlers: [http/basic_auth http/conjur mysql pg ssh sshagent http/aws]
2019/05/29 12:46:58 - Listeners: [mysql pg ssh ssh-agent http]
2019/05/29 12:46:58 Completed loading internal plugins.
2019/05/29 12:46:58 Loading external library plugins...
2019/05/29 12:46:58 open /usr/local/lib/secretless: no such file or directory
2019/05/29 12:46:58 Registering shutdown signal listeners...
2019/05/29 12:46:58 Initializing configuration manager 'configfile'...
2019/05/29 12:46:58 Trying to load ./secretless.yml...
2019/05/29 12:46:58 Configuration file ./secretless.yml loaded
2019/05/29 12:46:58 Configuration manager 'configfile' initialized (configSpec: '?watch=true').
2019/05/29 12:46:58 Initializing connection managers...
2019/05/29 12:46:58 Configuration manager 'configfile' provided new configuration...
2019/05/29 12:46:58 Reloading...
2019/05/29 12:46:58 Initialization of plugins done.
2019/05/29 12:46:58 Initializing the proxy...
2019/05/29 12:46:58 Initializing health check on :5335...
2019/05/29 12:46:58 ----------------------------
2019/05/29 12:46:58 Initialization of health check done. You can access the endpoint at `/live` and `/ready`.
2019/05/29 12:46:58 Attaching filesystem notifier onto ./secretless.yml
2019/05/29 12:46:58 Starting all listeners and handlers...
2019/05/29 12:46:58 Registering reload signal listeners...
2019/05/29 12:46:58 pg listener 'pg_listener' listening at: [::]:5555
2019/05/29 12:46:58 Shutting down 'pg' listener...
2019/05/29 12:46:58 Shutting down listener's handlers...
2019/05/29 12:46:58 Starting all listeners and handlers...
2019/05/29 12:46:58 WARN: Failed to accept incoming pg connection: %!(EXTRA *net.OpError=accept tcp [::]:5555: use of closed network connection)
2019/05/29 12:46:58 pg listener 'pg_listener' listening at: [::]:5555
2019/05/29 12:47:03 Handling connection &{{0xc0003dc000}}
2019/05/29 12:47:03 h.Client version : 196608, (SSL mode: false)
2019/05/29 12:47:03 Instantiating provider 'literal'
2019/05/29 12:47:03 pg_handler backend connection parameters: [username password sslmode address]
2019/05/29 12:47:03 Sending startup message
The client output log may also contain the following:
psql: FATAL: the backend does not allow SSL connectionsEnvironment
Secretless Broker 1.0
Cause
Secretless broker has incompatible PG settings
Resolution
- Ensure that the backend details for PG in Secretless configuration match the connection details for the database.
- Attempt to connect directly to the database using the credentials to ensure that the backend is working properly.