This service checks a domains DMARC and DKIM settings.
pipenv install
pipenv run service
When running the service subscribes to the topic specified with SUBSCRIBE_TO, which is domains.* by default.
Publishing a message on that topic will trigger the service to run it's checks.
nats pub domains.8017518 '{"domain": "pensezcybersecurite.gc.ca", "domain_key": "8017518", "user_key": "1", "shared_id": 1, "selectors": []}'
You can watch for the output using nats sub "domains.*.dns" or to catch everything nats sub "domains.>"
Figure out a way to clean up the log output.