-
Notifications
You must be signed in to change notification settings - Fork 5
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
Access to containerized instances of postgres #174
Labels
Type: Feature
Add something new
Comments
Current thinking is:
|
Doing some prototyping and noticing:
|
mrjones-plip
added a commit
that referenced
this issue
Oct 25, 2024
4 tasks
mrjones-plip
added a commit
to medic/cht-docs
that referenced
this issue
Nov 9, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is your feature request related to a problem? Please describe.
CHT Sync deployments that use the built in postgres container in either Docker or Kubernetes (k8s) will need an easy way allow remote access to postgres server for either external dashboards (eg superset) or end users looking to do data analysis.
In both k8s and docker, postgres service is not remotely accessible, an intentional secure-by-default design.
Describe the solution you'd like
A sidecar service, which can be used in both Kubernetes and Docker, would be a great way to allow easy access to postgres. The sidecar would likely expose SSH, or some other tunneling service, for which an initial connection could be made (eg an SSH tunnel) and then postgres connections could be made on top of/through this.
Describe alternatives you've considered
Ephemeral access could be granted by admins who can run
kubectl
to create an account knowing it will get deleted when the container gets rebooted. Another solution might be to set up anautossh
sidecar that exposes the postgres service on some other, external infrastracture.Additional context
Medic is currently deploying CHT Sync internally for MoH Togo. Instead of using the deprecated, monolithic install of Postgres which has old couch2pg running directly on it, we'd like to use a more modern architecture where each CHT Core deployment gets it's own postgres and CHT Sync instance. This new style of deployment makes it very hard to do both persistent and ad hoc sql queries. This will be greatly simplified if we provide an out of the box solution which is both easy to configure and easy to deploy.
The text was updated successfully, but these errors were encountered: