dograh/scripts
Manuel Bruña 17054e3f26
feat(scripts): generate REDIS_PASSWORD on setup, plumb through compose (#458)
* feat(scripts): generate REDIS_PASSWORD on setup, plumb through compose

Per the discussion on #453, this takes the recommended path of extending
the setup scripts rather than introducing a parallel compose file.

  - scripts/setup_remote.sh now generates REDIS_PASSWORD alongside
    OSS_JWT_SECRET and POSTGRES_PASSWORD and writes it to the rendered
    .env (with a short comment noting it can be rotated, unlike the
    postgres password which is baked into the volume on first init).
  - scripts/start_docker.sh now generates REDIS_PASSWORD on first run
    if missing, mirroring the existing OSS_JWT_SECRET pattern (reuses
    generate_secret, which falls back through python3 → openssl →
    /dev/urandom).
  - docker-compose.yaml and docker-compose-local.yaml now interpolate
    ${REDIS_PASSWORD:-redissecret} in the redis --requirepass, the redis
    healthcheck, and the api REDIS_URL.

The :-redissecret fallback preserves backwards compatibility for users
with an existing .env that predates this change — they keep the old
value until they regenerate. New installs (via either script) get a
secure random hex.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>

* Harden local Docker secret setup

---------

Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>
Co-authored-by: Abhishek Kumar <abhishek@a6k.me>
2026-06-21 13:11:31 +05:30
..
lib fix: force FORCE_TURN_RELAY for local IPs in setup 2026-05-16 18:37:38 +05:30
AGENTS.md chore: fix AGENTS.md 2026-05-14 15:02:57 +05:30
CLAUDE.md chore: add powershell version for setup_local 2026-05-14 15:01:11 +05:30
dump_docs_openapi.py chore: update documentation for telephony 2026-05-02 16:59:17 +05:30
format.sh feat: add openai realtime models (#298) 2026-05-16 18:05:23 +05:30
generate_sdk.sh feat: add Tuner Integration to Dograh (#311) 2026-05-20 14:37:33 +05:30
lint.sh Add alembic and start services scripts 2025-09-26 09:09:06 +05:30
makemigrate.ps1 Feat/add developer docs for windows (#213) 2026-04-03 07:04:13 +05:30
makemigrate.sh Add alembic and start services scripts 2025-09-26 09:09:06 +05:30
migrate.ps1 Feat/add developer docs for windows (#213) 2026-04-03 07:04:13 +05:30
migrate.sh Add alembic and start services scripts 2025-09-26 09:09:06 +05:30
pre_commit.sh Add alembic and start services scripts 2025-09-26 09:09:06 +05:30
prepare-slack-message.sh fix: slack message body (#59) 2025-11-22 13:59:07 +05:30
release_sdks.sh chore: release sdks 2026-05-31 17:13:42 +05:30
rolling_update.sh Merge branch 'main' of github.com:dograh-hq/dograh 2026-04-22 15:26:49 +00:00
run_dograh_init.sh chore: refactor setup scrpts (#288) 2026-05-14 14:45:34 +05:30
setup_custom_domain.sh chore: refactor setup scrpts (#288) 2026-05-14 14:45:34 +05:30
setup_fork.ps1 feat: add devcontainer based setup (#352) 2026-05-25 20:44:22 +05:30
setup_fork.sh feat: add devcontainer based setup (#352) 2026-05-25 20:44:22 +05:30
setup_local.devcontainer.md feat: add devcontainer based setup (#352) 2026-05-25 20:44:22 +05:30
setup_local.ps1 feat(scripts): generate REDIS_PASSWORD on setup, plumb through compose (#458) 2026-06-21 13:11:31 +05:30
setup_local.sh feat(scripts): generate REDIS_PASSWORD on setup, plumb through compose (#458) 2026-06-21 13:11:31 +05:30
setup_pipecat.sh chore: update documentation 2026-06-19 18:11:35 +05:30
setup_remote.sh feat(scripts): generate REDIS_PASSWORD on setup, plumb through compose (#458) 2026-06-21 13:11:31 +05:30
setup_requirements.ps1 chore: update documentation 2026-06-19 18:11:35 +05:30
setup_requirements.sh chore: update documentation 2026-06-19 18:11:35 +05:30
start_docker.ps1 feat(scripts): generate REDIS_PASSWORD on setup, plumb through compose (#458) 2026-06-21 13:11:31 +05:30
start_docker.sh feat(scripts): generate REDIS_PASSWORD on setup, plumb through compose (#458) 2026-06-21 13:11:31 +05:30
start_services.sh Merge branch 'main' of github.com:dograh-hq/dograh 2026-04-22 15:26:49 +00:00
start_services_dev.ps1 feat: add devcontainer based setup (#352) 2026-05-25 20:44:22 +05:30
start_services_dev.sh feat: add devcontainer based setup (#352) 2026-05-25 20:44:22 +05:30
start_services_docker.sh feat: an option to setup remote server with docker compose build (#280) 2026-05-13 17:22:14 +05:30
stop_services.ps1 Feat/add developer docs for windows (#213) 2026-04-03 07:04:13 +05:30
stop_services.sh feat: add rolling updates for production deployment (#175) 2026-03-02 14:44:04 +05:30
update_remote.sh feat(scripts): generate REDIS_PASSWORD on setup, plumb through compose (#458) 2026-06-21 13:11:31 +05:30