Add new function for reading/writing encrypted config files See merge request gitlab-org/gitlab!43220