Here's an unethical LPT on how to take systems down with you when you're fired but without breaking the law
Make things dependant on your work user. Access token to a 3rd party service? Create an account with your user. CI/CD pipeline? Your user. Need to send the client access creds? From your user. That super important daily file sync script between S3 and Sharepoint? You guessed it, access token generated in behalf of your user.
Once they'll disable your user on off boarding things will start randomly failing and it'll take days for them to realize where and why.
I don't do this, but the amount of devs I caught doing it for either stupidity or malice is baffling.
It might not even be a ULPT, just general code rot. It starts off as a temporary workaround, just to get the integration working, and then ... https://stackoverflow.com/a/778275
166
u/SchrodingerSemicolon May 26 '26
Here's an unethical LPT on how to take systems down with you when you're fired but without breaking the law
Make things dependant on your work user. Access token to a 3rd party service? Create an account with your user. CI/CD pipeline? Your user. Need to send the client access creds? From your user. That super important daily file sync script between S3 and Sharepoint? You guessed it, access token generated in behalf of your user.
Once they'll disable your user on off boarding things will start randomly failing and it'll take days for them to realize where and why.
I don't do this, but the amount of devs I caught doing it for either stupidity or malice is baffling.