Improved security.yml configuration