That's really neat. I also had a similar need to dynamically manage DNS Record and decided to create a Kubernetes operator instead to manage it (<a href="https://github.com/pier-oliviert/phonebook">https://github.com/pier-oliviert/phonebook</a>).<p>I do like your approach, it's really refreshing. I'd probably want to split the API keys from the rest of the config files.<p>Great work!
Cloudflare provides a CLI that is officially supported: <a href="https://linuxcommandlibrary.com/man/flarectl" rel="nofollow">https://linuxcommandlibrary.com/man/flarectl</a><p>Not sure why they only distribute it as part of their go library but you can execute it by itself.