From 0ef1b5d8daf7c3584924e1b96f51601c3cb3f261 Mon Sep 17 00:00:00 2001 From: kennwhite Date: Mon, 19 Dec 2016 15:08:56 -0500 Subject: [PATCH 1/3] UI hints to ssh keys and message clean up Though the algo ssh key names are in the config file at the bottom, they don't seem to be displayed, and are easy to miss for new users. --- config.cfg | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/config.cfg b/config.cfg index 7a0bc3d..297565d 100644 --- a/config.cfg +++ b/config.cfg @@ -74,9 +74,10 @@ congrats: | "# Config files and certificates are in the ./configs/ directory. #" "# Go to https://whoer.net/ after connecting #" "# and ensure that all your traffic passes through the VPN. #" - "# Local DNS resolver and Proxy IP address: {{ local_service_ip }} " - "# The p12 password is {{ easyrsa_p12_export_password }} " - "# The CA key password is {{ easyrsa_CA_password }} " + "# Local DNS resolver and Proxy IP address: {{ local_service_ip }} #" + "# The p12 password is {{ easyrsa_p12_export_password }} #" + "# The CA key password is {{ easyrsa_CA_password }} #" + "# Shell access: ssh -i algo.pem root@{{ ansible_ssh_host }} #" "#----------------------------------------------------------------------#" SSH_keys: From 8a4057590ceafb4845675f1b57752c1a7cb3ce23 Mon Sep 17 00:00:00 2001 From: kennwhite Date: Mon, 19 Dec 2016 15:14:05 -0500 Subject: [PATCH 2/3] UI hints on entering API secrets It's not obvious to new users why some fields display and others are blank when entering values. Absent stars for secrets, this gives a small sanity nudge, and lessens likelihood of double pastes. --- algo | 3 +++ 1 file changed, 3 insertions(+) diff --git a/algo b/algo index d7d78e7..0c4f066 100755 --- a/algo +++ b/algo @@ -137,6 +137,7 @@ Enter the number of your desired region: digitalocean () { read -p " Enter your API token (https://cloud.digitalocean.com/settings/api/tokens): +[pasted values will not be displayed] : " -rs do_access_token read -p " @@ -185,11 +186,13 @@ ec2 () { read -p " Enter your aws_access_key (http://docs.aws.amazon.com/general/latest/gr/managing-aws-access-keys.html) Note: Make sure to use either your root key (recommended) or an IAM user with an acceptable policy attached +[pasted values will not be displayed] [AKIA...]: " -rs aws_access_key read -p " Enter your aws_secret_key (http://docs.aws.amazon.com/general/latest/gr/managing-aws-access-keys.html) Note: Make sure to use either your root key (recommended) or an IAM user with an acceptable policy attached +[pasted values will not be displayed] [ABCD...]: " -rs aws_secret_key read -p " From d2aa52f4e9af2c2b7cf3c4b46b38396679a90cd9 Mon Sep 17 00:00:00 2001 From: kennwhite Date: Mon, 19 Dec 2016 15:21:02 -0500 Subject: [PATCH 3/3] UX hint on profile name Add explicit label for Algo-generated VPNs. If the user has multiple (non-Algo) VPNs for home/office, there is typically a label other than an IP address and "IKEv2". This can be seen, for example, on OSX on the top menu bar for networks. --- roles/vpn/templates/mobileconfig.j2 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/vpn/templates/mobileconfig.j2 b/roles/vpn/templates/mobileconfig.j2 index 1ccb037..c118e5f 100644 --- a/roles/vpn/templates/mobileconfig.j2 +++ b/roles/vpn/templates/mobileconfig.j2 @@ -138,9 +138,9 @@ UserDefinedName {% if proxy_enabled is defined and proxy_enabled == true %} - {{ IP_subject_alt_name }} IKEv2 with proxy + Algo VPN {{ IP_subject_alt_name }} IKEv2 with proxy {% else %} - {{ IP_subject_alt_name }} IKEv2 + Algo VPN {{ IP_subject_alt_name }} IKEv2 {% endif %} VPNType IKEv2