You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use git worktrees to run development of multiple features in parallel. Each worktree creates its own docker container with DB so that they don't share a single DB and can run completely in isolation. I have a worktree setup script that updates the connections JSON file with the new connection automatically but I cannot provide the password that way and have to manually enter it when connecting to the DB the first time.
Proposed solution
Allow creating connections via CLI, including setting the password.
Alternatives considered
To connect to a worktree DB I have to edit the connection once in the app to enter the password.
Going to solve this with a passwordSource field in connections.json instead of a CLI. Your script keeps editing the JSON the way it already does, plus one extra field per connection.
Three kinds:
file: read from a chmod 600 file
env: read an env var
command: run a shell command (works with op read, vault, sops, pass)
Skipping the CLI because the password would land in shell history and ps output, and a separately signed binary is a lot of overhead for one extra JSON field.
Let me know if this misses anything in your workflow before I start.
Activity
datlechin commentedon May 14, 2026
Thanks, real gap.
Going to solve this with a
passwordSourcefield inconnections.jsoninstead of a CLI. Your script keeps editing the JSON the way it already does, plus one extra field per connection.Three kinds:
file: read from a chmod 600 fileenv: read an env varcommand: run a shell command (works with op read, vault, sops, pass)For the worktree case:
Skipping the CLI because the password would land in shell history and ps output, and a separately signed binary is a lot of overhead for one extra JSON field.
Let me know if this misses anything in your workflow before I start.
noelgoodday commentedon May 15, 2026
Yes, this sounds good to me!
Thanks!
refactor(connections): cap command output, precise timeout, log malfo…
fix(connections): preserve password source across tunnel, duplicate, …
feat(connections): resolve connection passwords from file, env, or co…
noelgoodday commentedon May 29, 2026
Thank you!