ezra-buckingham / terry-the-terraformer

A CLI for deploying red team infrastructure across mutliple cloud providers, all integrated with a virtual Nebula network, and full ELK integration
https://github.com/ezra-buckingham/terry-the-terraformer/wiki
MIT License
110 stars 15 forks source link

suggestion: split redirector into multiple server types #55

Open tecknicaltom opened 1 year ago

tecknicaltom commented 1 year ago

A slight suggestion that you can feel free to close and ignore, but after getting familiar with the Terry code, it looks like it could be cleaner if the redirector server type were split into separate server types (e.g. dns_redirector). There are several places with conditional logic based on redirector_type and there's not much shared logic between these server types.

Thanks again for this great project. If you're not opposed to this idea, I may be able to quickly do it and submit a PR, though I'm not sure how it would handle upgrading existing operations' servers.

ezra-buckingham commented 1 year ago

I love this idea too and fully agree with you. I had more so just kept going down the first path (having them be the same server type and then using that redirector_type be the logic that separates the two. I may have some time to refactor it, but if you want to take a stab at it, go for it!

ezra-buckingham commented 1 year ago

Need to add an http redirector too

leebaird commented 1 year ago

I agree, knowing what type of redirector would be very helpful (http, https, dns).