News for hackers. Stuff that matters.
Re:Google outage – resolved by domano on Monday December 14, 2020 @08:16AM (#25417112)
I remember how one of our engineers had his docker daemon connected to production instead of his local one and casually did a docker rm -f $(docker ps -aq) .

Same thing happened to me but with CI, which felt bad enough already.

Re:Google outage – resolved by selimnairb on Monday December 14, 2020 @09:23AM (#25417839)
"Hey let's make developers do two very different jobs, development, and operations. We'll call it DevOps. We'll save money. Everything will be fine."
Re:Google outage – resolved by alias_neo on Monday December 14, 2020 @08:50AM (#25417449)
No Engineer should have production access from their workstation. Period.

source: am Engineer =).

Re:Google outage – resolved by shawkinaw on Monday December 14, 2020 @09:03AM (#25417602)
Engineers shouldn’t deploy to prod directly, but sometimes it’s necessary to SSH into an instance for logs, stack dumps, etc. Source: worked for 2 big to very big tech cos.
Re:Google outage – resolved by alias_neo on Monday December 14, 2020 @09:22AM (#25417827)
For a large or v large tech co you should probably be aggregating logs to a centralised location that doesn't require access to production systems in this way. Stack dumps should also be collected safely off-system if necessary.

Perhaps my industry is a little more security conscious (I don't know which industry you're talking about), but this doesn't seem like good practice.

Re:Google outage – resolved by shawkinaw on Monday December 14, 2020 @09:54AM (#25418206)
Let me be clear, I agree it should not be normal to SSH into a prod box. Our logs are centrally aggregated. But it’s one thing to say it’s not normal, but quite another to say engineers shouldn't have access, because I totally disagree with that.
Re:Google outage – resolved by throwaway201103 on Monday December 14, 2020 @11:00AM (#25419016)
What normally (should) happens in that unusual case is that the engineer is issued a special short-lifetime credential to do what needs to be done. An audit trail is kept of when and to whom the credential was issued, for what purpose, when it was revoked, etc.
Re:Google outage – resolved by adwww on Monday December 14, 2020 @09:54AM (#25418200)
Who fixes the centralised log system when that needs debugging?

Unless prohibited in something like banking, following best practice to the letter is sometimes unacceptably slow for most industries.

Re:Google outage – resolved by mlnj on Monday December 14, 2020 @09:38AM (#25418031)
There should be tools that allow the team to gather such logs. Direct prod access is a recipe for disaster.
Re:Google outage – resolved by SteveNuts on Monday December 14, 2020 @09:22AM (#25417826)
Not having those things centralized is also a huge operational failure regardless of company size.
Re:Google outage – resolved by tasuki on Monday December 14, 2020 @08:54AM (#25417501)
Why not? (I think I can find some cases where production access from an engineer's workstation is a good idea)
Re:Google outage – resolved by alias_neo on Monday December 14, 2020 @09:19AM (#25417784)
It can be efficient, particularly in smaller companies, but that's where exactly this rule should be applied.

In some industries, security and customer requirements will at times mandate that developer workstations have no access to production. Deployments must even be carried out using different accounts than those used to access internal services, for security and auditing purposes.

There are of course good reasons for this; accidents, malicious engineers, overzealous engineers, lost/stolen equipment, risk avoidance, etc.

When you apply this rule, it makes for more process and perhaps slower response times to problems, but accidents or other internal-related issues mentioned above drop to zero.

Given how easy it is to destroy things these days with a single misplaced Kubernetes or Docker command, safeguards need to be put in place.

Let me tell you a little story from my experience;

I built myself a custom keyboard from a Numpad kit. I had gotten tired of typing so many docker commands in every day and I had the desire to build something. I built this little numpad into a full blown Docker control centre using QMK. A single key-press could deploy or destroy entire systems.

One day, something slid off of something else on my desk, onto said keyboard, pressing several of the keys while I happened to have an SSH session to a remote server in focus.

Suffice it to say, that little keyboard has never been seen since. On an unrelated topic, I don't have SSH access to production systems.

Re:Google outage – resolved by mlnj on Monday December 14, 2020 @09:42AM (#25418074)
This exactly. I have deleted database records from a production DB thinking I am executing on my development DB. I've kept separate credentials and revoked dev machine access to prod environment ever since.
Re:Google outage – resolved by tasuki on Monday December 14, 2020 @04:38PM (#25423711)
Congratulations - you found a counterexample yourself: engineers in small companies.