Sharing a DB user password among units of the app
John Arbash Meinel
john at arbash-meinel.com
Tue Oct 29 13:11:37 UTC 2013
-----BEGIN PGP SIGNED MESSAGE-----
On 2013-10-29 16:38, Andreas Hasenack wrote:
> There is this charm with a db-admin relation to postgresql. In
> this relation, the charm gets access to a super user in postgresql
> and can do whatever it wants with it.
> When the first unit of the app comes up, it creates a random
> password and uses the DB admin user to create an unprivileged DB
> user with that password.
> Now I run add-unit, and another unit comes up. How can it get that
> Is this a case for a peer relation?
Yes. As I understand it, that is exactly what a peer relation is for.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.13 (Cygwin)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
-----END PGP SIGNATURE-----
More information about the Juju