Secretless Broker: 'psql: FATAL: SSL not supported' when starting secretless broker

Secretless Broker: 'psql: FATAL: SSL not supported' when starting secretless broker

85
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/29 12:16:46 Secretless starting up...
2019/05/29 12:16:46 WARN: Config file and config manager specified - forcing 'configfile' configuration manager!
2019/05/29 12:16:46 Loading internal plugins...
2019/05/29 12:16:46 - ConfigurationManagers: [configfile k8s/crd]
2019/05/29 12:16:46 - ConnectionManagers: []
2019/05/29 12:16:46 - Providers: [file keychain kubernetes literal vault aws conjur env]
2019/05/29 12:16:46 - Handlers: [http/aws http/basic_auth http/conjur mysql pg ssh sshagent]
2019/05/29 12:16:46 - Listeners: [ssh-agent http mysql pg ssh]
2019/05/29 12:16:46 Completed loading internal plugins.
2019/05/29 12:16:46 Loading external library plugins...
2019/05/29 12:16:46 open /usr/local/lib/secretless: no such file or directory
2019/05/29 12:16:46 Registering shutdown signal listeners...
2019/05/29 12:16:46 Initializing configuration manager 'configfile'...
2019/05/29 12:16:46 Trying to load configuration file: test/pg_handler/fixtures/secretless.yml
2019/05/29 12:16:46 Configuration manager 'configfile' initialized (configSpec: 'test/pg_handler/fixtures/secretless.yml').
2019/05/29 12:16:46 Initializing connection managers...
2019/05/29 12:16:46 Configuration manager 'configfile' provided new configuration...
2019/05/29 12:16:46 Reloading...
2019/05/29 12:16:46 Initialization of plugins done.
2019/05/29 12:16:46 Initializing the proxy...
2019/05/29 12:16:46 Initializing health check on :5335...
2019/05/29 12:16:46 ----------------------------
2019/05/29 12:16:46 Registering reload signal listeners...
2019/05/29 12:16:46 Initialization of health check done. You can access the endpoint at `/live` and `/ready`.
2019/05/29 12:16:46 Starting all listeners and handlers...
2019/05/29 12:16:46 pg listener 'pg_listener' listening at: [::]:5555
2019/05/29 12:16:46 Shutting down 'pg' listener...
2019/05/29 12:16:46 Shutting down listener's handlers...
2019/05/29 12:16:46 Starting all listeners and handlers...
2019/05/29 12:16:46 WARN: Failed to accept incoming pg connection: %!(EXTRA *net.OpError=accept tcp [::]:5555: use of closed network connection)
2019/05/29 12:16:46 pg listener 'pg_listener' listening at: [::]:5555
2019/05/29 12:16:59 Handling connection &{{0xc0003d0080}}
2019/05/29 12:16:59 h.Client version : 80877103, (SSL mode: true)

The client output log may also show the following:

psql: FATAL:  SSL not supported


Environment


Secretless Broker 1.0

Cause


PG connections to secretless broker have SSLmode enabled

Resolution


  • PG connections to Secretless from the client must have sslmode set to disabled (e.g. psql "host=pg-host port=5555 sslmode=disable dbname=postgres"). Ensure that sslmode is set to connect in this manner.


Actions
  • Print
  • Copy Link

    https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA1hj0000001CITCA2&lang=en_US&refURL=http%3A%2F%2Fknowledgebase.paloaltonetworks.com%2FKCSArticleDetail