News for hackers. Stuff that matters.
Re:A ChatGPT mistake cost us $10k by jnsaff2 on Monday June 10, 2024 @02:58AM (#40630951)
This is how I felt when a Gitlab employee deleted the production database by doing it in the wrong terminal window.
Re:A ChatGPT mistake cost us $10k by phist_mcgee on Monday June 10, 2024 @03:20AM (#40631052)
Get into the habit of colour-coding your important SSH sessions, red/green/blue can give you a very powerful subconscious check before doing something very silly.
Re:A ChatGPT mistake cost us $10k by bloqs on Monday June 10, 2024 @04:44AM (#40631472)
How do you do this so that it lasts? I find mine resets to default
Re:A ChatGPT mistake cost us $10k by Edd1CC on Monday June 10, 2024 @05:49AM (#40631807)
Can’t you set it in the .zshrc file?
Re:A ChatGPT mistake cost us $10k by phist_mcgee on Monday June 10, 2024 @06:50PM (#40640178)
I use iTerm2 and have different profiles for different directories/remote hosts. iTerm switches the background colour automatically for me. I'm sure other terminal emulators would have similar features.

https://bsago.me/tech-notes/change-ssh-background-colour-wit....

Re:A ChatGPT mistake cost us $10k by HenryBemis on Monday June 10, 2024 @03:31AM (#40631117)
what phist wrote. Color code the backgrounds of your servers, different colors. So anyone who connects to 'take console' in any system is hit by a blinding electric Green/Blue/Red/Yellow and other striking colors.

I assume that all systems already have descriptive names App_DEV_Server1, App_PROD_Server5, etc.

It also helps if (ofc they would be right??) in separate IP groups/WLANS?

If you are running Windows, it's a good idea to use BGINFO.exe by SysInternals (or Winternals as we old people still call it), and display the most relevant info (showing Dev/Prod/UAT/etc.) with big-big-big letters.

Re:A ChatGPT mistake cost us $10k by codedokode on Monday June 10, 2024 @05:39AM (#40631753)
Why do employees have write access to production DB?
Re:A ChatGPT mistake cost us $10k by netdevnet on Monday June 10, 2024 @06:57AM (#40632184)
Lazy attitude towards proper role management and poor engineering practices. More common in small companies or small teams managing their own service (db and app)

Really all you need is logging and potentially temporary read access to the db if you need some info that you can't derive from the logs.

Re:A ChatGPT mistake cost us $10k by jnsaff2 on Monday June 10, 2024 @07:10AM (#40632274)