Repository navigation
docs(configuration): quote database passwords and show an external override - #65
Conversation
…erride Explain that Compose expands `$` in an unquoted .env value, which characters the bundled stack's database URL cannot carry, and give a working override for external PostgreSQL and Redis. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configuration
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Code Review Completed! 🔥The code review was successfully completed based on your current configurations. Kody Guide: Usage and ConfigurationInteracting with Kody
Providing Context (Files & MCPs)Add these hints in your PR description (or a comment) to unlock deeper checks:
Current Kody ConfigurationReview OptionsThe following review options are enabled or disabled:
|
…kslash Co-Authored-By: Claude Opus 5.5 <[email protected]>
Silo Kody — review completeReview finished. Check the inline comments for findings and verify each suggestion against the code and tests. Reviewing changes in Silo
Review settingsReview OptionsThe following review options are enabled or disabled:
|
… rejects Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Silo Kody — review completeReview finished. Check the inline comments for findings and verify each suggestion against the code and tests. Reviewing changes in Silo
Review settingsReview OptionsThe following review options are enabled or disabled:
|
|
Thanks for this. The quoting rule, the character problem, and the override all check out against current I pushed three small commits on top:
The wording is otherwise yours. |
Problem
Related issue: #38
Silo-Server/silo-server#1635 removed the server repository's Docker guide. While working on Silo-Server/silo-server#1049, review turned up two things about the bundled database password that the configuration page doesn't cover, and the guide never did either:
$in an unquoted.envvalue. WithPOSTGRES_PASSWORD=compose-test$literalthe stack renderscompose-test, so an existing database's password no longer matches.POSTGRES_PASSWORDinto Silo'sDATABASE_URLwithout encoding it, so some characters break the URL.The "External PostgreSQL and Redis" section also lists what an override must do without showing one.
Approach
On
running-a-server/configuration.md:$, that a single-quoted value can't hold a'or end with a backslash (Compose reads that backslash as escaping the closing quote), and which characters the bundled database URL can't carry. Point toopenssl rand -hex 24as a value with neither problem.depends_on, and sets external URLs, with a note to percent-encode the password inDATABASE_URL.This only describes current behaviour. The stricter password requirement in Silo-Server/silo-server#1049 isn't released, so I've left it out. It can be added once that ships.
Validation
I reviewed the source and tested with Docker Compose 5.5.1 on macOS against
docker-compose.ymlfrom currentsilo-servermain. Nothing was run on a real device and no containers were started.docker compose configand leaves only thesiloservice.POSTGRES_PASSWORD='pa$word'renders aspa$word, and the unquotedcompose-test$literalrenders ascompose-test.net/url, which pgx uses to parseDATABASE_URL.#,%,/,?,",<,>,[,\,],^,`,{,|and}break parsing or change the password.@,$and:are fine.node --test scripts/test-docs-structure.mjspassed (8 tests). I didn't runbun run buildlocally; the PR build covers it. The change adds no links.Risks
Docs only. The character list describes Go's URL parsing, so a future server change that encodes the password would make it stricter than needed.
Checklist
AI Disclosure
AI-assisted with Claude Opus. I directed the task and designed the work.
gh), Docker Compose, Go.Note
Add password quoting guidance and external database override example to configuration docs
POSTGRES_PASSWORDvalues containing$need single quotes in.env, and lists password characters that break the bundled Silo database URL. Recommendsopenssl rand -hex 24values.DATABASE_URLandREDIS_URL, and disables automatic PostgreSQL tuning. Instructs users to percent-encode reserved characters inEXTERNAL_DB_PASSWORD.Macroscope summarized 9467fad.