RegalRadio / mta-sts

The MTA-STS policy for all Regal Radio domains.
1 stars 0 forks source link

MTA-STS DNS record automatic update #1

Open wlabarron opened 3 years ago

wlabarron commented 3 years ago

When the MTA-STS policy changes, the _mta-sts TXT record also needs updated to have a new ID (signalling the policy has changed). Could this be done automatically using GitHub Actions and the Cloudflare API?

wlabarron commented 3 years ago

There doesn't seem to be a way to trigger a GitHub Action to run after a successful Cloudflare Pages deployment. Doing this step in the Pages deployment environment isn't ideal, as there's no way to securely store API credentials there (like you can with secrets here on GitHub). Could do this as a manually-run workflow?

The attempt so far: https://github.com/RegalRadio/mta-sts/blob/df067684748f70d6c4147a64640d102d6fa2bcc0/.github/workflows/dns.yml