The call of duty and a patriotic pedigree are given priority in Snowden’s account of his motivations – and he warns of dangers ahead