So secure wow

@strzalek @nealharris @rudle @indspenceable @nehakarajgikar

cherry-picked what looked like security-related commits from 3-0-lts.