Migrating security configurations