get_secret to prepare the secret file