The act that protects the private information of both citizens and soldiers is the privacy act of 1974. Without this, the government and private entities would be able to access your personal data, and potentially use it for morally dubious purposes, or find out information you might want to be kept a secret.