Repository navigation
refactor: async Redis connection with retry/deduplication #2767
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -44,6 +44,8 @@ services: | |
| dokploy-network: | ||
| aliases: | ||
| - evolution-redis | ||
| ports: | ||
| - "6379:6379" | ||
| expose: | ||
| - "6379" | ||
|
|
||
|
|
@@ -60,11 +62,13 @@ services: | |
| - -c | ||
| - listen_addresses=* | ||
| environment: | ||
| - POSTGRES_DB=${POSTGRES_DATABASE} | ||
| - POSTGRES_DB=evolution_api | ||
| - POSTGRES_USER=${POSTGRES_USERNAME} | ||
| - POSTGRES_PASSWORD=${POSTGRES_PASSWORD} | ||
| volumes: | ||
| - postgres_data:/var/lib/postgresql/data | ||
| ports: | ||
| - "5432:5432" | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. π‘ Medium Β· PostgreSQL is reachable off-host When the Compose host is reachable from an untrusted network and the configured database password is weak or compromised, the Bind the PostgreSQL port to localhost for local development or restrict it to a trusted private network instead of publishing it on all host interfaces. Prompt for AI agentsIn `docker-compose.yaml` at line 71:
**PostgreSQL is reachable off-host**
When the Compose host is reachable from an untrusted network and the configured database password is weak or compromised, the `5432:5432` mapping binds PostgreSQL on every host interface, allowing remote clients to send login attempts directly to the database and, with a weak or compromised password, access application data using the configured database role.
Bind the PostgreSQL port to localhost for local development or restrict it to a trusted private network instead of publishing it on all host interfaces. |
||
| networks: | ||
| - evolution-net | ||
| - dokploy-network | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
π΄ Critical Β· Unauthenticated Redis is network-exposed
When the Compose host is reachable from an untrusted network, the published Redis port accepts connections on host interfaces, and Redis starts without authentication, so remote clients can read, alter, or delete cache data.
Remove the public Redis port mapping or bind it to localhost, and configure authentication if Redis must be reachable remotely.
Also at
docker-compose.yaml:70-71.Prompt for AI agents
From
AGENTS.mdL316: