From c2689fac50a353caf1dd0316969f98ecef49f256 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 7a0bc3df..297565d3 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 89b577e089a075959d0af27c6d9a857c8290354b 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 d7d78e70..0c4f0666 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 ad497f29229dee2410afb6e6c75c122ccc71275a 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 1ccb0374..c118e5f1 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