trailofbits / algo

Set up a personal VPN in the cloud
https://blog.trailofbits.com/2016/12/12/meet-algo-the-vpn-that-works/
GNU Affero General Public License v3.0
28.98k stars 2.32k forks source link

Fails at "[wireguard : Generate public keys]" task on aws #1535

Closed mrphs closed 5 years ago

mrphs commented 5 years ago

Describe the bug

Algo fails at [wireguard : Generate public keys] task on aws with the following message:

FAILED! => {"msg": "Unexpected templating type error occurred on (set -o pipefail\n echo \"{{ lookup('file', wireguard_pki_path + '/private/' + item) }}\" |\n wg pubkey): coercing to Unicode: need string or buffer, int found"}

To Reproduce

  1. Run algo with aws variables:
./algo -e "server_name=$server_name
                 dns_adblocking=true
                 ssh_tunneling=true
                 region=us-east-1
                 aws_secret_key=$secret_key
                 aws_access_key=$access_key"
  1. Pick Amazon EC2 as the cloud provider
  2. Watch it fail at TASK [wireguard : Generate public keys]

Expected behavior

Wireguard should generate public key and algo should move on to the next task

davidemyers commented 5 years ago

Could this be the issue with user names discussed in #1435?

mrphs commented 5 years ago

@davidemyers ah I do indeed have numbers in my usernames