SIDN / CycleHunter

Python software that reads zone files, extract NS records, and detect cyclic dependencies
https://tsuname.io
BSD 2-Clause "Simplified" License
37 stars 14 forks source link

CycleHunter automation: periodical runs and notification via e-mail #19

Open EduardoATpt opened 3 years ago

EduardoATpt commented 3 years ago

Hello,

It would be good to add a script that runs periodically on the crontab and if it finds a Cycle that sends an email.

Thank you.

gmmoura commented 3 years ago

I agree with @EduardoATpt : many TLD ops would like to automate this, and have an e-mail based notification system. @subbink : do you have some code for this?

btw, @EduardoATpt , I renamed it to to expand a bit the scope of the issue

subbink commented 3 years ago

@gmmoura : I do not have any code which can be shared at the moment.

christian-2 commented 3 years ago

FYI we do this with cronjob/cyclehunter in a Kubernetes cluster. The job delivers notifications via Kafka, but it could be email as well. (BTW running the container as root is unnecessary, we are therefore also patching USER nobody into Dockerfile.)

seb-at-nzrs commented 3 years ago

Thanks Christian. Would you be willing to contribute the changes or configuration to run in Kubernetes?

christian-2 commented 3 years ago

@seb-at-nzrs Yes, if you can provide a feature branch (e.g. feat/k8s-kafka) upstream I can prepare a PR with the following files. That PR perhaps should not go directly into master, because maintainers may want to take a closer look regarding how to specifically support both scenarios (without and with automation) in a single code base, i.e. branch.