fix: replace hardcoded credentials in docker-compose and harden server/.gitignore (#1527)#1677
Conversation
965709a to
cbde07c
Compare
|
Rebased on latest upstream/main and force-pushed. Changes: Replaced hardcoded |
|
Hi @carlosjarenom Thanks for the security cleanup here. One small thing to double-check: Could we keep |
…#1480) - Add ensure_gif_infinite_loop() and post_process_gifs_in_directory() in file_utils.py - Hook into TerminalToolkit.shell_exec() after blocking commands - Hook into chat_service.collect_previous_task_context() as safety net - Re-saves GIFs with loop=0 (infinite) using PIL, preserving frame durations/disposal - Removes invalid loop='infinite' attribute from MarkDown.tsx (was wrong approach per eigent-ai#1676 review) Fixes eigent-ai#1480
…igent-ai#1677 review) - build.args: use non-secret placeholder for database_url - environment: keep runtime substitution with ${POSTGRES_PASSWORD:-123456} - Both docker-compose.yml and docker-compose.dev.yml updated Fixes credential leak risk in image metadata (per @4pmtong review).
3b187c4 to
7d2aa72
Compare
Summary
Fix remaining security issues from #1527 (part 2 was already addressed in a prior commit).
Changes
1. Replace hardcoded database passwords in compose files
server/docker-compose.yml: Replace all instances of123456with${POSTGRES_PASSWORD:-123456}POSTGRES_PASSWORDenvironment variable for the Postgres servicedatabase_urlreferences inapi,celery_worker, andcelery_beatservices (both build args and runtime env)server/docker-compose.dev.yml: Same replacement for the Postgres service2. Harden
server/.gitignore.\envto prevent accidental credential commits from the server directoryalembic.iniwhich may contain database connection strings3. Update
server/.env.examplePOSTGRES_PASSWORD=CHANGE_MEplaceholdersecret_key=postgrestosecret_key=CHANGE_MEBackwards Compatibility
All substitutions use
${POSTGRES_PASSWORD:-123456}syntax, so existing deployments that don't setPOSTGRES_PASSWORDwill continue to work with the default value. New deployments can override by setting the variable in their.\envfile.Related