Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
This seems the best answer so far IMO. Effectively once the server is compromised they have access to the database connection strings anyway. Obscurity is the key, do not show anything that is sensitive. How do I encrypt the basic auth credential using the key of the cert?