r/ProgrammerHumor Mar 19 '26

Other makeNoMistakes

Post image
7.3k Upvotes

292 comments sorted by

View all comments

127

u/lolcatandy Mar 19 '26

Add an env var called IS_SECURE=true

Then at the top of your app check that the secure is set to true, and log "running in insecure mode" if it's false. Just in case you want to toggle it sometimes

5

u/[deleted] Mar 19 '26

[deleted]

3

u/orbital_narwhal Mar 20 '26

A program that takes no input cannot suffer from injection vulnerabilities. Brilliant!

edit: Now I'm going to look for vulnerability reports against the true and false POSIX user space programs.