Security setups

Please review/merge.