Re: initdb recommendations
"Jonathan S. Katz" <[email protected]>
| Newsgroups | gmane.comp.db.postgresql.devel.documentation |
|---|---|
| Message-ID | <[email protected]> |
On 4/8/19 8:25 AM, Peter Eisentraut wrote: > On 2019-04-05 18:11, Jonathan S. Katz wrote: >> + <para> >> + We recommend using the <option>-W</option>, <option>--pwprompt</option>, >> + or <option>--pwfile</option> flags to assign a password to the database >> + superuser, and to override the <filename>pg_hba.conf</filename> default >> + generation using <option>-auth-local peer</option> for local connections, >> + and <option>-auth-host scram-sha-256</option> for remote connections. See >> + <xref linkend="client-authentication"/> for more information on client >> + authentication methods. >> + </para> > > As discussed on hackers, we are not ready to support scram-sha-256 out > of the box. So this advice, or any similar advice elsewhere, would need > to recommend "md5" as the setting --- which would probably be embarrassing. Well, it's less embarrassing than trust, and we currently state: "Also, specify -A md5 or -A password so that the default trust authentication mode is not used"[1] We could also modify it to say : "and <option>-auth-host scram-sha-256</option> for remote connections if your client supports it, otherwise <option>-auth-host md5</option>" Jonathan [1] https://www.postgresql.org/docs/current/creating-cluster.html
signature.asc
(application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEE+oS2la8r95ogZD/x8QSccp8cZScFAlyrQWAACgkQ8QSccp8c ZSfzxhAAg+dfJwFAUm4kdne1kz3iBSDyQrZo2hW5dlZxlH1FK4ksv6KdgWMXQzb1 SSodBcE4l4fVfn7NMVtJY7FZ4H0Z0jy1bKVjZmTJygpe3U0McJYPp8ljWop/rbMV 9Aa5Xid5WGb8ajJR5ljIM2AS6d8vd1ZoVzNEV/XRGxcjVjBcf2U/+5+m9Tf9NhyS ir37OzgnTManaSIFkz+hcxaP/rHE6SmvpRHdzufyudGoVl0zvijFipHAUbg/w6Hi 5mfllS5aEIXzoVUheIVJnPQrhEScZIvEy6pOKcNPG5eR8JJNLHQfFyJo6klykcrh HDG9Iuf1dkeIPyF8HR3W0PuEyf1a2PomGO0+NckZfeDAEhuyM/dod51L1RPaALHm KJow/m+oezrVUgB7KP5WOtlrqEIOQCGJ9U3A2hggWBY8zQeP65u3IPQWNdzjBlQh imaJ7dF3zdJgCCjapilon4nnH9sI+RqT8+WKRHsgd8sPSTXcSG+qXOfq6zhjwNVq 4c0JXrkQu8kLMaE2Ddj5ZBViDYkkLn6/MEKmZ/PdH7fEhmt3rpt94IUYAvhiXgtS /ow/k0XYVcIjd776o06RuFOrQnP6vU2a1VGz/XxUOAZhgnMQ7BFGznP+eWyoR5Mw 17K35o09y6/g0WcgsGFcA3p3yQW0yM0WFfoppE8nIB/qcJ3lT+Q= =YAmz -----END PGP SIGNATURE-----