Skip to content

Commit 4d3d2d7

Browse files
Merge pull request #979 from yasinBursali/fix/dream-agent-key-generation
fix(security): generate dedicated DREAM_AGENT_KEY in installers
2 parents 27fbc0e + dd7cac6 commit 4d3d2d7

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

dream-server/installers/macos/lib/env-generator.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,8 @@ generate_dream_env() {
132132
livekit_api_key=$(new_secure_hex 16)
133133
local dashboard_api_key
134134
dashboard_api_key=$(new_secure_hex 32)
135+
local dream_agent_key
136+
dream_agent_key=$(new_secure_hex 32)
135137
local openclaw_token
136138
openclaw_token=$(new_secure_hex 24)
137139
local qdrant_api_key
@@ -221,6 +223,7 @@ LANGFUSE_PORT=3006
221223
#=== Security (auto-generated, keep secret!) ===
222224
WEBUI_SECRET=${webui_secret}
223225
DASHBOARD_API_KEY=${dashboard_api_key}
226+
DREAM_AGENT_KEY=${dream_agent_key}
224227
N8N_USER=admin@dreamserver.local
225228
N8N_PASS=${n8n_pass}
226229
LITELLM_KEY=${litellm_key}

dream-server/installers/phases/06-directories.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,7 @@ Fix with: sudo chown -R \$(id -u):\$(id -g) $INSTALL_DIR/config $INSTALL_DIR/dat
205205
LITELLM_KEY=$(_env_get LITELLM_KEY "sk-dream-$(openssl rand -hex 16 2>/dev/null || head -c 16 /dev/urandom | xxd -p)")
206206
LIVEKIT_SECRET=$(_env_get LIVEKIT_API_SECRET "$(openssl rand -base64 32 2>/dev/null || head -c 32 /dev/urandom | base64)")
207207
DASHBOARD_API_KEY=$(_env_get DASHBOARD_API_KEY "$(openssl rand -hex 32 2>/dev/null || head -c 32 /dev/urandom | xxd -p)")
208+
DREAM_AGENT_KEY=$(_env_get DREAM_AGENT_KEY "$(openssl rand -hex 32 2>/dev/null || head -c 32 /dev/urandom | xxd -p)")
208209
DIFY_SECRET_KEY=$(_env_get DIFY_SECRET_KEY "$(openssl rand -hex 32 2>/dev/null || head -c 32 /dev/urandom | xxd -p)")
209210
QDRANT_API_KEY=$(_env_get QDRANT_API_KEY "$(openssl rand -hex 32 2>/dev/null || head -c 32 /dev/urandom | xxd -p)")
210211
OPENCODE_SERVER_PASSWORD=$(_env_get OPENCODE_SERVER_PASSWORD "$(openssl rand -base64 16 2>/dev/null || head -c 16 /dev/urandom | base64)")
@@ -358,6 +359,7 @@ LANGFUSE_PORT=${LANGFUSE_PORT}
358359
#=== Security (auto-generated, keep secret!) ===
359360
WEBUI_SECRET=${WEBUI_SECRET}
360361
DASHBOARD_API_KEY=${DASHBOARD_API_KEY}
362+
DREAM_AGENT_KEY=${DREAM_AGENT_KEY}
361363
N8N_USER=admin@dreamserver.local
362364
N8N_PASS=${N8N_PASS}
363365
LITELLM_KEY=${LITELLM_KEY}

0 commit comments

Comments
 (0)