Investigate a way to store credentials encrypted, as [Ansible](https://docs.ansible.com/ansible/latest/user_guide/vault.html) does.