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

Improve postgres service for use in nammayatri #3

Closed
srid opened this issue Jun 23, 2023 · 5 comments
Closed

Improve postgres service for use in nammayatri #3

srid opened this issue Jun 23, 2023 · 5 comments

Comments

@srid
Copy link
Member

srid commented Jun 23, 2023

https://github.com/juspay/passetto/pull/1/files#diff-d42ce6f4af2f6535fe936e696b7866ae0667acb573988e991dce1e76e03f84d1R34-R37

image
@shivaraj-bh
Copy link
Member

I see that initdbArgs is already an option under postgres.nix only thing that I have to add is an option to specify POSTGRES_HOST_AUTH_METHOD, right?

@srid
Copy link
Member Author

srid commented Jun 27, 2023

I'd think so, yes.

But, IIRC using initdbArgs in passetto didn't work for some reason (which is why it is commented out).

Ultimately, we want to make sure that the passetto PR works after this change (whatever that is).

@shivaraj-bh
Copy link
Member

shivaraj-bh commented Jun 28, 2023

As per discussion with @srid over a call. The following is the checklist to verify if the change made to resolve the issue works:

  • nix run on github:/nammayatri/passetto/nixify should start all the services on darwin (atm only works on linux)
  • Configure user authentication methods (pg_hba.conf) in services-flake.

@shivaraj-bh
Copy link
Member

This PR will allow you to manage user authentication methods by letting you configure pg_hba.conf file in Nix. Allowing us to get rid of POSTGRES_INITDB_ARGS = "--auth=scram-sha-256" and POSTGRES_HOST_AUTH_METHOD = "scram-sha-256".

Check here to see this in action on passetto repo.

@shivaraj-bh
Copy link
Member

Closing this issue as it has been resolved in nammayatri/passetto#1

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

2 participants