README v0.2 / 31 May 2018
Private Internet Access is the world's leading consumer VPN service. At Private Internet Access we believe in unfettered access for all, and as a firm supporter of the open source ecosystem we have made the decision to open source our VPN clients. For more information about the PIA service, please visit our website privateinternetaccess.com.
This repo contains all the code needed to build and run the Private Internet Access Firefox Web Extension. This extension allows a user to access our network of proxies across the world from their web browser. Users can choose a proxy server location and connect to it directly from the extension. Additional privacy and security features include Tracking Protection, Fingerprint Protection, blocking ip discovery through WebRTC, and can automatically block ads and tracking through PIA MACE™.
Please be advised that connecting to a proxy through our extension only protects traffic from that particular browser and not on applications that may be installed on the operating system itself.
This client allows a user to sign-in to their PIA account and choose a particular proxy server to route all their browser traffic through. The client itself is has additional features such as:
- Block WebRTC IP Detection
- Disable Network Prediction
- Tracking Protection
- Fingerprint Protection
- Disable Website Referrer
- Disable Hyperlink Auditing
- Remove UTM Parameters
- PIA MACE™ (block ads, trackers, and malicious content)
- Allow direct connections for whitelisted sites
Please start by ensuring that all the requirements in the Installation section of this README is installed. For more information, please refer to that section.
Building the client is as simple as running the build command:
browser=firefox build=debug grunt
For Windows users, please set your environment variables using:
set browser=firefox
set build=debug
grunt
The unpacked extension can be installed from the following url in firefox about:debugging
- Git (latest)
- NodeJS 8.1.0 or greater
- Firefox Browser (support for v57 and above)
Git Please use these instructions to install Git on your computer if it is not already installed: Installing Git
NodeJS We recommend installing NodeJS via nvm on MacOS and Linux. On Windows, you can simply use the node installer found here.
Using the terminal:
git clone https://github.com/pia-foss/extension-firefox.git
or use a graphical interface like Git Desktop to download this repository into a directory of your choosing.
The extension uses NodeJS and NPM to build itself. NPM comes packaged with every NodeJS installation.
To install all dependencies the extension needs to build run:
npm install
Before building the extension, the Grunt CLI tool will need to be installed. Grunt can be install by running the following command:
npm install -g grunt
To build the extension, run the command below. When the build is finished ./builds/<build name>
will have been created, and it can be loaded as a temporary add-on in Firefox.
browser=firefox build=debug grunt
For windows users, please use:
set browser=firefox
set build=debug
grunt
A build can be configured to include the git branch and commit SHA it is being built from by including gitinfo=yes at command line:
browser=firefox build=debug gitinfo=yes grunt
For Windows users, please use:
set browser=firefox
set build=debug
set gitinfo=yes
grunt
The git information is shown on the extension settings page if the build was configured to include it. By default this feature is turned off but enabled when publishing a QA build to the add-on store.
- Enter "about:debugging" into Firefox's address bar.
- Tick "Enable add-on debugging" if it isn't already.
- Click "Load Temporary Add-on", and choose the path to the manifest file in the build directory.
Optionally, web-ext run
from the ./build/debug
directory can be used in development.
Requirements
- npm
Running Tests
Simply run the npm command
`npm test`
Ensure that a config/oneskyauthfile.json
exist before uploading translations. This file should contain the public and secret keys for your 1sky account
Ensure that the ONESKY_PROJECT_ID environment variable is set
The extension supports all locales found in src/_locales
. The translations are
translated by the 1sky service. src/_locales/en/messages.json
can be uploaded to 1sky
using the following grunt task:
grunt oneskyImport
Translations for all locales can be downloaded with the following task:
grunt oneskyExport
These instructions are still in flux.
Ensure that you've created a web-ext api key and secret beforehand
Ensure that the web-ext
npm package is installed globally
First build the extension as per the instructions in the Building Section of this README.
Ensure that you have an account on addons.mozilla.org and have your api key and secret ready.
Detailed information on the signing procedure and the account creation process can be found here.
Change into the ./build/debug
directory and run the following:
web-ext sign --api-key {apiKey} --api-secret {secretKey}
This should create a new .xpi
file that can be uploaded to the add-on store via the addons website. This is a manual process for now until an automated procedure can be established.
By contributing to this project you are agreeing to the terms stated in the Contributor License Agreement (CLA) here. For more details please see CONTRIBUTING.md. Issues and Pull Requests should use these templates: ISSUES and PULL REQUESTS
- Robert Gleeson
- Edward Kim
- Amir Malik
- Manish Jethani
- Pericles
This project is licensed under the MIT (Expat) license, which can be found here.