Show HN: Nigit – Expose Shell Scripts as HTTP API
1–8 of 8 posts
Re: Show HN: Nigit – Expose Shell Scripts as HTTP API
#2To sanitize/whitelist this kind of input as in json -> go -> shell.. I'm giving up, I'm too paranoid to even think about making this safe :)
Re: Show HN: Nigit – Expose Shell Scripts as HTTP API
#3While it's nice and handy I'd be cautious to let that run anywhere else than localhost. To sanitize/whitelist this kind of input as in json -> go -> shell.. I'm giving up, I'm too paranoid to even think about making this safe :)
One approach is to run it in a Docker container and access it from your other micro services and never expose it to the public. This is still handy because you can isolate that old program and act as if it is an API to your other micro services.
Re: Show HN: Nigit – Expose Shell Scripts as HTTP API
#4Re: Show HN: Nigit – Expose Shell Scripts as HTTP API
#5How did we end with everything being "API" and nothing being "service" any longer?
Re: Show HN: Nigit – Expose Shell Scripts as HTTP API
#6Re: Show HN: Nigit – Expose Shell Scripts as HTTP API
#7Re: Show HN: Nigit – Expose Shell Scripts as HTTP API
#8While it's nice and handy I'd be cautious to let that run anywhere else than localhost. To sanitize/whitelist this kind of input as in json -> go -> shell.. I'm giving up, I'm too paranoid to even think about making this safe :)
The next day, I showed him how I could break out of that protection by sending a request with a parameter like "host=x.customerb.tld\0.customera.tld" (with a NULL byte in between).
We did a few more rounds of whack-a-mole until I finally managed to convince him this was a fundamentally bad idea.