Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When using "Show all databases" option, SSL setting is not honored. #234

Open
ooobii opened this issue Aug 16, 2023 · 2 comments
Open

When using "Show all databases" option, SSL setting is not honored. #234

ooobii opened this issue Aug 16, 2023 · 2 comments

Comments

@ooobii
Copy link

ooobii commented Aug 16, 2023

Hello! I have a server connection configured that is set to "Show all databases", with the ssl property set to true.

  • When I try to expand into one of the databases, I receive an error saying there is no hba entry for the connection with "ssl: off".
  • If I update my connection to point to a specific database (instead of empty in the configuration JSON), I am able to open the database that failed to open in the previous step.

Can we have an update to make sure that SSL settings when "Show all databases" is being used is honored, or maybe am I doing something incorrectly?

Cheers! 😃

@KubaSzostak
Copy link
Contributor

The same here: SSL connection is required. Please specify SSL options and retry. However, in the connection setting there is "ssl": true.

@Borvik
Copy link
Owner

Borvik commented Sep 5, 2023

There is no difference to the plugin in how it creates the connection to the database - the only thing different would be which database it's connecting to.

When you specify the database, that will be part of the connection string... for the show all, it still needs to connect to a database, so it connects to the default postgres database where it gets the list from.

The pg_hba.conf file can restrict based off of how, who, and what you are connecting to. So likely there is not an entry in there that allows you to connect to the postgres database itself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants