Skip to content

feat: add init-env.sh credential bootstrap script#12

Merged
mcansem merged 1 commit into
mainfrom
phase/v1.0.0-init-env
Jul 22, 2026
Merged

feat: add init-env.sh credential bootstrap script#12
mcansem merged 1 commit into
mainfrom
phase/v1.0.0-init-env

Conversation

@mcansem

@mcansem mcansem commented Jul 22, 2026

Copy link
Copy Markdown
Owner

Generates and populates .env files per host role (management/app/agent):
auto-generates secrets via openssl, auto-detects DOCKER_GID, prompts only
for values that require human input, and keeps GRAFANA_DOMAIN consistent
across docker/observability/.env and docker/management-proxy/.env.

Closes a usability gap for less-experienced users of this public repo, who
would otherwise have to hand-invent ~15 config/secret values across four
.env files with no safeguard against the two-file GRAFANA_DOMAIN mismatch.

Updates scripts/README.md, jenkins/README.md, docker/app/README.md,
docker/observability/README.md, and docker/management-proxy/README.md to
reference the new script, and adds a Credentials section to
docs/deployment.md explaining why .env files never touch git.

Test plan

  • shellcheck scripts/init-env.sh (clean)
  • Ran init-env.sh end-to-end for management, app, and agent roles
  • Verified overwrite-decline path (existing .env not clobbered)
  • Verified invalid-role error path
  • Verified GRAFANA_DOMAIN written identically to both .env files
  • CI: shellcheck / markdownlint / compose-validate

Generates and populates .env files per host role (management/app/agent):
auto-generates secrets via openssl, auto-detects DOCKER_GID, prompts only
for values that require human input, and keeps GRAFANA_DOMAIN consistent
across docker/observability/.env and docker/management-proxy/.env.

Closes a usability gap for less-experienced users of this public repo, who
would otherwise have to hand-invent ~15 config/secret values across four
.env files with no safeguard against the two-file GRAFANA_DOMAIN mismatch.

Updates scripts/README.md, jenkins/README.md, docker/app/README.md,
docker/observability/README.md, and docker/management-proxy/README.md to
reference the new script, and adds a Credentials section to
docs/deployment.md explaining why .env files never touch git.
@mcansem
mcansem merged commit 2735374 into main Jul 22, 2026
3 checks passed
@mcansem
mcansem deleted the phase/v1.0.0-init-env branch July 22, 2026 10:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant