-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Option to not store password #15
Comments
Is it possible to use this option: auth-users-pass .secrets Then create a text file in the same directory called .secrets and in it place username and password on the first and second lines respectively. Protect this information from other users on your system: chmod 600 .secrets Ukd posted this information in https://www.privateinternetaccess.com/forum/discussion/20798/command-line-start-at-boot-linux-vpn |
Thanks for the comment, nextbeat82. There are two issues here. First is that those instructions are for openvpn configuation files, whereas pypia configures NetworkManager configuration files. I am not sure if NM supports storing auth details in a separate file-- I will have to look into it. The second issue though is whether this is any more secure. It's still a plaintext file sitting on your filesystem with the same permissions as the NetworkManager configuration files. If the NetworkManager config files do support storing auth details in a separate file, maybe one approach would be to store the auth details in an encrypted file which would be decrypted on boot, prior to NetworkManager initiating. |
Sorry still a beginner with some of this stuff. I didn't understand at first that the .ovpn files were different than the profiles that were created for NetworkManager. According to the nm-settings-keyfile description page, "...private keys and passphrases may be stored in plaintext inside the file". Before that it mentioned that "..files that are readable or writable by any user or group other than 'root'" are ignored for security reasons. Looks like storing creds in a separate file is possibile. Haven't looked into having a system query encrypted files yet. |
Thanks for the info, nextbeat82. After reading that nice link you sent, I am now under the impression that nm does not allow the option to store credentials in a file outside of the keyfile. There are several
Currently pypia uses the |
Hi @dagrha , |
thanks d4rkcat, I like your pia shell script, too. You have some nice options there, for example the firewall and port stuff. I have poked around a little bit in documentation for the networkmanager keyfiles (i.e. the confs in I tend to agree with you about the convenience vs security stuff. |
Right now the password to connect to the PIA VPN is stored in the configuration files. Even though the file is pretty well protected since it is only readable by root, this is not ideal in terms of security. At the very least I'd like to add the option to not store the password, which would require entering your password every time a VPN connection is initiated.
Ideally we'd use Keyring or Wallet to handle passwords, but since this script aims to be cross-platform with minimal dependencies, that approach would be tricky.
The text was updated successfully, but these errors were encountered: