<div dir="ltr">Hi Nico,<div><br></div><div>You and I completely agree that unexpected discrepancies often cause problems, break workflows, and make people hate security changes. I&#39;ve been a Debian developer for over 13 years and a UNIX sysadmin for longer than that. There are many cases where I&#39;ve made arguments similar to yours inside Google, sometimes even mentioning &quot;knife ssh&quot; itself (yes I&#39;ve used Chef), and we&#39;re more compatible with customers&#39; non-GCE automation because of such arguments.</div>


<div><br></div><div>Despite all of that, adding this account management daemon in GCE makes sense, as do the other carefully chosen integration bits we add. Our account daemon can certainly be disabled without harm (e.g. via systemctl in CentOS 7), doesn&#39;t interfere with UNIX ways of working, and doesn&#39;t dictate what we do about the root account. It&#39;s even careful not to remove keys which were added separately by users, distinguishing carefully via comment lines. All of the software we add is of course free and open source software, typically under the Apache License 2.0, and also typically human-readable Python, shell, systemd unit files, or the like. Some of our software is even packaged in RPMs (built via a hacky internal process); we do plan to reach out to coordinate proper RPM packaging and integration into a suitable CentOS repository.</div>


<div><br></div><div>Regarding your specific concerns about root&#39;s passwd data, we don&#39;t change that. I forget whether we change CentOS&#39;s root SSH login setting; we do change a few other things like disabling password SSH auth and putting in some connection keepalive settings, but it&#39;s quite close to stock config. We try to keep our deviations justifiable, and if you think any are not, we&#39;d like to hear about them. :) As one example justification, the SSH connection keepalive is because TCP connections that remain idle too many minutes will get dropped by the GCE firewall.</div>


<div><br></div><div>- Jimmy<br><div><div><br></div><div>We aren&#39;t changing root&#39;s passwd data.</div></div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Jul 14, 2014 at 6:44 PM, Nico Kadel-Garcia <span dir="ltr">&lt;<a href="mailto:nkadel@gmail.com" target="_blank">nkadel@gmail.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="">On Mon, Jul 14, 2014 at 12:14 PM, Jimmy Kaplowitz &lt;<a href="mailto:jkaplowitz@google.com">jkaplowitz@google.com</a>&gt; wrote:<br>


&gt; As further data points, Debian on AWS EC2 uses the &#39;admin&#39; username, and all<br>
&gt; Google-supported images on Google Compute Engine (including CentOS) don&#39;t<br>
&gt; have a default account at all, but rather use integrated SSH key management<br>
&gt; via our metadata server and an open source daemon we install into the guest.<br>
<br>
</div>But you&#39;re not changing root&#39;s uid, gid, shell, home directory, or<br>
group memberships, right?  It&#39;s all fun and games until someone<br>
touches old tools that have worked consistently for more than a decade<br>
with an unexpected discrepancy between UNIX historical settings, and<br>
someone&#39;s untested &quot;security enhancement&quot;. It&#39;s the sort of thing that<br>
makes people hate security changes.<br>
<br>
Blocking direct login access by locking the password and/or blocking<br>
SSH root access are all understandable, but should *not* be changed<br>
from upstream&#39;s defaults without considerable thought. They *will*<br>
break procedures that are applied to both systems, especially those<br>
that rely on remote SSH key or direct root privileges such as the<br>
&quot;knife ssh&quot; command from chef and other SSH based multiple-target<br>
tools.<br>
<br>
Having to pipe the commands through some kind of sudo adds complexity.<br>
Don&#39;t get me wrong, I agree that in most cases it can and should be<br>
turned off for security reasons. But changing the defaults is going to<br>
burn sys-admin&#39;s very valuable time. Is it worth the security<br>
enhancement to make their lives more difficult?<br>
<div class="HOEnZb"><div class="h5">_______________________________________________<br>
CentOS-devel mailing list<br>
<a href="mailto:CentOS-devel@centos.org">CentOS-devel@centos.org</a><br>
<a href="http://lists.centos.org/mailman/listinfo/centos-devel" target="_blank">http://lists.centos.org/mailman/listinfo/centos-devel</a><br>
</div></div></blockquote></div><br></div>