Usage
Run it as gluon dev-db connection (in the repository, cargo run -p gluon-cli -- dev-db connection).
Point every Postgres Source connection to the database named in an environment variable's URL (`postgres://user:password@host:port/name`) at that URL: host, port and user in its row, the password rotated in the key service. A demo world's API on Pushleft runs it before it serves, so a restored connection follows the managed database's address and login. No such connection is not an error
Usage: gluon dev-db connection --url-env <URL_ENV>
Options:
--url-env <URL_ENV> The variable that holds the URL, never the URL itself (it would show in the process list)
-h, --help Print help
What it reads and writes
It points every Postgres Source connection to one database at that database's URL, read from the environment variable you name: host, port and user in the connection, the password rotated in the key service. A demo world on Pushleft runs it before the API serves, so a restored connection follows the managed database's address and login. It prints each connection it changed, or that there was none. Developer tooling: it runs only in dev mode.
Before you run it
The old password stops working for those connections at once, with no overlap.