Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

salt '*' system.reboot


> hubot restart all on prod

oh shit i meant stag fuckfuckfuckfuck


So have hubot second guess any changes to production unless you specifically told it you were messing with prod beforehand. Have it wait a few seconds before doing something important and listen for sounds of regret.

>hubot restart all on prod

hubot: > say "Hubot isn't responsible for hosing production because I actually meant staging"

>Hubot isn't responsible for hosing production because I actually meant staging

hubot: okay, don't say I didn't warn you.

>oh shit i meant stag fuckfuckfuckfuck

hubot: I hadn't started yet, but I'm doing it anyway just to teach you a lesson.


Why in the name of all that is holy do you have Hubot getting access to your production boxen?

Why does that seem like a good idea, ever?


My thought, exactly. Time to setup some good ACL :-) http://docs.saltstack.com/en/latest/ref/clientacl.html




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: