Add credentials using a generic EncryptedConfiguration class
#30067

dhh wants to merge credentials into master

We do not currently have an analysis of these two commits