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-----
Hash: SHA1

On 2013-10-29 16:38, Andreas Hasenack wrote:
> Hi,
> 
> 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
> password?
> 
...


> 
> Is this a case for a peer relation?
> 
> 

Yes. As I understand it, that is exactly what a peer relation is for.

John
=:->

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.13 (Cygwin)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iEYEARECAAYFAlJvtAgACgkQJdeBCYSNAAN6fQCeLBJoTNNrWtIc2pnJdDLI80Kh
0VIAoIR31G9ip7f9lCYYHTY/7ZvM2zbo
=a8bp
-----END PGP SIGNATURE-----



More information about the Juju mailing list