News for hackers. Stuff that matters.
Re:Immutable Infrastructure: No SSH by tgeek on Monday July 13, 2015 @09:44AM (#9878001)
I find the better pattern here is to limit and discourage SSH and then monitor and log the hell out of it. There are numerous tools out there that can centralize any actions being taken on a host and sending it to a log that can be centralized. Outright removing all SSH puts you in a rough spot if things go south with some piece of software that your system monitoring/centralized logging don't cover 100%, and makes it way hard to do things like strace on a process.
Re:Immutable Infrastructure: No SSH by grhmc on Monday July 13, 2015 @09:46AM (#9878011)
Or if one of the problems of the server caused logging to not correctly start :)
Re:Immutable Infrastructure: No SSH by aalbertson on Monday July 13, 2015 @04:43PM (#9880922)
Which is certainly a valid case, but I would argue that if that IS the case, and it cannot autorecover, then that is a good candidate for the instance to self terminate.
Re:Immutable Infrastructure: No SSH by Sanddancer on Monday July 13, 2015 @05:14PM (#9881142)
If logging never started, then your service heartbeat script should have caught it and raised an alert. Logging being down is Kinda Important.
Re:Immutable Infrastructure: No SSH by sneak on Monday July 13, 2015 @10:45AM (#9878392)
Also, make it part of the process that each time ssh is used, logging or monitoring is set up to catch what it was used for, much the same way that a test is added when a bug is discovered.