Skip to content

Proxy Configuration

These are details for configuring a proxy service to allow access to Privacera services.

Proxy Configuration for Docker#

If your Docker host must use a proxy to access network resources, you must configure Docker to use the proxy and bypass it when necessary. Below is an example of the Docker configuration file. This file is usually located in the installing user’s home directory in .docker/config.json.

  1. Open the Docker configuration file.

    vi ~/.docker/config.json
    
  2. In the configuration file, add the following JSON to add proxy values.

    • PRIVACERA_HUB_REPO: Privacera Docker Hub repository where all the images are stored. To get the name of the repository, contact Privacera Sales.

    • auths: This section is managed by Docker and is usually already present. You do not need add it if it is not present.

    • noProxy: All IP addresses, hostnames, and CIDR blocks that must bypass the proxy, including the Privacera Manager host and Privacera services if hosted in Docker. Consult with your network team if you are uncertain what else must be in this section.

    {
        "auths": {
                "<PRIVACERA_HUB_REPO>": {
                        "auth": "<some_key>"
                }
        },
        "proxies": {
                "default": {
                        "httpProxy": "<your_http_proxy_IP_address_and_port>",
                        "httpsProxy": "<your_https_proxy_IP_address_and_port>",
                        "noProxy": "localhost,172.0.0.0/8,127.0.0.0/8,<local_IP_address>,
                                    privacera,dataserver,ranger,
                                    solr-1,zoo-1,auditserver,mariadb,
                                    access-request-manager"
                }
        }
    }
    
  3. Restart Docker service.

    sudo service docker restart