Use a fixed bootstrap password for the simplerisk-minimal stack#140
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
update_stack_and_workflows.shregeneratedsimplerisk-minimal/stack.ymlwith a fresh random password on every run, written to bothDB_SETUP_PASSandMYSQL_ROOT_PASSWORD. That value is the bundled MySQL bootstrap/root password used only for first-run schema setup — mysql is not exposed outside the stack network, and SimpleRisk already generates its own random application DB password (SIMPLERISK_DB_PASSWORD) at first run. Randomizing a value that is then committed to this public repo is not a secret; it also madestack.ymlnon-deterministic, so code-development's newbump_downstream_versions.ymlforce-pushed docker on every run.This ships a fixed, documented default (
simplerisk_setup): the committed file becomes deterministic (a version bump changes only the image tag), the trial one-click still works zero-input under bothdocker compose upand Swarmdocker stack deploy, and the README now distinguishes the bootstrap vs application passwords.No image or entrypoint change — the
simplerisk-minimalimage (used by the EKS deployment) is untouched. EKS suppliesDB_SETUP_PASSvia its own Kubernetes Secret and does not readstack.yml, so nothing in its path changes.Design: code-development
docs/superpowers/specs/2026-06-07-docker-stack-bootstrap-password-design.md.Testing
update_stack_and_workflows.sh <version>twice produces byte-identical output; a version-only change moves just the image tag (verified locally).docker compose -f simplerisk-minimal/stack.yml up -d): first-run setup completed with the bootstrap password ("Setup has been applied successfully!") and the log showed an auto-generatedSIMPLERISK_DB_PASSWORD("a random password has been generated (...)"), confirming the committed bootstrap value only gates setup and the application credential is random per deployment.🤖 Generated with Claude Code