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

Fixes issue where the CLI would fail to connect to local service if there are credential files in ~/.postgresql #2567

Conversation

binaek
Copy link
Contributor

@binaek binaek commented Oct 20, 2022

No description provided.

@binaek binaek self-assigned this Oct 20, 2022
@@ -251,19 +201,31 @@ func generateServerCertificates(caCertificateData *x509.Certificate, caPrivateKe

// derive ssl status from out ssl mode
func sslStatus() string {
status := sslMode()
if status == "require" {
if serverCertificateAndKeyExist() {
return "on"
}
return "off"
}

// derive ssl mode from the prsesnce of the server certificate and key file
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo in comment

@@ -0,0 +1,15 @@
package db_common
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

config seems a bit of a generic filename - maybe ssl / cert?

@kaidaguerre kaidaguerre merged commit 4c490f1 into main Oct 27, 2022
@kaidaguerre kaidaguerre deleted the 1417-having-a-root-certificate-in-postgresql-directory-is-causing-steampipe-cli-to-fail branch October 27, 2022 16:46
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

Successfully merging this pull request may close these issues.

Having a root certificate in .postgresql directory is causing Steampipe CLI to fail
2 participants