Password authentication failed for user "postgres" #953
Replies: 4 comments 1 reply
-
After restarting:
|
Beta Was this translation helpful? Give feedback.
-
For those searching this issue, you need to install a Docker-specific firewall to prevent miscreants changing the postgres password as Docker containers ignore local system firewalls, i.e. are wide open. |
Beta Was this translation helpful? Give feedback.
-
That's the problem, if the postgres port isn't protected, your db will be scanned out and altered. In the tutorial we use security group rather than local firewall so didn't hit your problem. |
Beta Was this translation helpful? Give feedback.
-
I'm currently using this: https://github.com/chaifeng/ufw-docker However, its far from ideal as it won't detect any IP changes when containers are stopped, removed and recreated (possibly restarted -- haven't checked). So the rules need to be re-added each time. There is a better approach and possibly it could be PRed into an updated docker-compose later on if such a repository is opened. |
Beta Was this translation helpful? Give feedback.
-
Just started seeing this from coordinator_db and it looks like other indexers are as well:
From coordinator_service:
From one node container:
From the other node container:
From the other node's query container:
Beta Was this translation helpful? Give feedback.
All reactions