A safe yum.conf would not break my server

I think your configuration is mostly fine

But as soon as you are using 3rd party repositories (EPEL, MariaDB, remi…) this means you rely on more providers, so you need to choose carefully the ones you trust.