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

@shopify/shopify-app-session-storage-postgresql : error: no pg_hba.conf entry for host #493

Open
scraper095 opened this issue Nov 19, 2023 · 4 comments
Labels

Comments

@scraper095
Copy link

scraper095 commented Nov 19, 2023

Issue summary

I tried to change the session storage from prisma to my postgresql,
I am using the same connection string as in the app itself, where everything works as expected.
In this case, i get the error:

error: no pg_hba.conf entry for host x, user y, database z, no encryption

as if it's ignoring ssl totally.
I have certs set up and use ssl_mode=require in my db string.

  • @shopify/shopify-app-* package and version:2.0.2
  • Node version:v18.18.2
  • Operating system:mac

Expected behavior

Should set up the session storage normally via ssl.

Can't connect

Steps to reproduce the problem

  1. Set app sessionStorage as PostgreSQLSessionStorage
  2. Try to connect it with ssl
@scraper095
Copy link
Author

update:
ended up patching the package with this solution:
#437

Copy link
Contributor

This issue is stale because it has been open for 90 days with no activity. It will be closed if no further action occurs in 14 days.

@github-actions github-actions bot added the Stale label Jan 20, 2024
@lmartins
Copy link

Looks like this is still a problem with the latest version 3.0.0. Any options other than patching the library?

@github-actions github-actions bot removed the Stale label Feb 16, 2024
Copy link
Contributor

We're labeling this issue as stale because there hasn't been any activity on it for 60 days. While the issue will stay open and we hope to resolve it, this helps us prioritize community requests.

You can add a comment to remove the label if it's still relevant, and we can re-evaluate it.

@github-actions github-actions bot added the Stale label Apr 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants