Air-gap
Introduction¶
This section is applicable only for the installation of Privacera Manager in an air-gapped network environment (i.e., without Internet access).
Warning
- This is not a standard installation setup.
Overview¶
An air gap network is a secure, isolated network environment with no Internet access. To install Privacera software in such a network, you must first download the Privacera Docker images and upload them to your Docker registry. Additionally, the Privacera Manager tarball must be hosted in an object store accessible to the compute host within the air gap network. A script named pm-airgap.sh is available to facilitate this setup process.
Prerequisites¶
Before proceeding with the installation, make sure you have the following prerequisites in place:
Important
Ensure that all Self-Managed Prerequisites are completed before proceeding with the instructions in this section.
Warning
Access to public GitHub is required for monitoring features to function. If the Linux host where you are running the script blocks this access, the features will not work. You must disable monitoring for now.
Support for restricted environments will be added in a future release
- A Linux host with Internet access is required to run the
pm-airgap.shscript. This host must have password-less SSH access to the Privacera jumphost. - A local Docker registry is needed to host the Privacera Docker images. Ensure you have the registry URL and credentials to push images to it.
- The compute host (Privacera jumphost) must be in the air gap network (no Internet access). This host should have access to the local Docker registry where Privacera Docker images are hosted.
- The jumphost must have permissions to create repositories and perform operations such as push, pull, delete, and modify the images in the your private hub.
- Obtain the following information from your Privacera Sales Representative:
- PRIV_MGR_PACKAGE: The format will be
https://<domain>/<filepath>/<file.tar.gz> - PRIV_MGR_IMAGE: The format will be
<PRIVACERA_HUB_HOST>/privacera-manager:<PRIV_MGR_IMAGE_TAG> - PRIVACERA_HUB_USER: Privacera Docker hub registry username
- PRIVACERA_HUB_PASSWORD: Privacera Docker hub registry password
- PRIV_MGR_PACKAGE: The format will be
-
Download the script. The airgap installation is performed using the scripts listed below.
a. Access a server (intermediate machine) with Internet access, which will be used to download the Privacera package and push the Docker images for Privacera Manager.
b. Run the following commands:
-
Update the Privacera Airgap configuration file
airgap-env.sh. This file contains the variables required for initial downloading and uploading Privacera components.Variable Name Description Sample Value PRIV_MGR_IMAGEDocker image for Privacera Manager, including the repository URL and image tag. "hub2.privacera.com/privacera-manager:rel_9.0.0.3"PRIV_MGR_PACKAGEURL for the Privacera Manager package, usually hosted on an S3 bucket or similar repository. "https://privacera-host/path/privacera-manager.tar.gz"PRIVACERA_HUB_USERUsername for accessing Privacera Hub, the central repository for Privacera images. "hub_user"PRIVACERA_HUB_PASSWORDPassword for accessing Privacera Hub. This should be securely stored. "hub_password"DESTINATION_HUB_URLThe private hub URL where you want to upload the Privacera Images. "<ECR_URL>"DESTINATION_HUB_USERUsername for accessing Private Hub. "dev"DESTINATION_HUB_PASSWORDPassword for accessing Privacera Hub. This should be securely stored. "private_hub_password"PM_HOSTNAMEThe Privacera Jumphost where you want to sync the Privacera Package. "10.210.1.30"PM_HOST_USERNAMEThe username which you created for Privacera where the packages will be copied. "privacera"REMOTE_DIRThe path in your Privacera Jumphost where you want to copy the Privacera package. It should be always /home/<PM_HOST_USERNAME>/privaceraDOWNLOAD_CORE_COMPONENTSThe Privacera Core components to download. It includes Privacera Manager, Ranger, Portal, Solr, Zookeeper, Ranger Tagsync and Usersync, Privacera Usersync, Auditserver and Audit Fluentd. y/nDOWNLOAD_MARIADBPrivacera Mariadb. y/nDOWNLOAD_DATASERVER_COMPONENTSPrivacera Dataserver components. It includes Dataserver. y/nDOWNLOAD_DISCOVERY_COMPONENTSPrivacera Discovery components. It includes Discovery, Kafka and Pkafka. y/nDOWNLOAD_MASKING_AND_ENCRYPTION_COMPONENTSPrivacera Masking and Encryption components. It includes Peg and Scheme Server. y/nDOWNLOAD_OPS_SERVER_COMPONENTSPrivacera Ops Server components. It includes Ops server. y/nDOWNLOAD_DIAGNOSTICS_COMPONENTSPrivacera Diagnostics components. It includes Diagnostics server and client. y/nDOWNLOAD_MONITORING_COMPONENTSPrivacera Monitoring components. y/nDOWNLOAD_CONNECTOR_COMPONENTSPrivacera Connector components. y/nPOLICYSYNC_MSSQL_IMAGEMSSQL Connector. If DOWNLOAD_CONNECTOR_COMPONENTSis set toythen you need to set the value for this.y/nPOLICYSYNC_POSTGRES_IMAGEPostgres Connector. If DOWNLOAD_CONNECTOR_COMPONENTSis set toythen you need to set the value for this.y/nPOLICYSYNC_SNOWFLAKE_IMAGESnowflake Connector. If DOWNLOAD_CONNECTOR_COMPONENTSis set toythen you need to set the value for this.y/nPOLICYSYNC_DATABRICKS_IMAGEDatabricks Connector. If DOWNLOAD_CONNECTOR_COMPONENTSis set toythen you need to set the value for this.y/nPOLICYSYNC_DREMIO_IMAGEDremio Connector. If DOWNLOAD_CONNECTOR_COMPONENTSis set toythen you need to set the value for this.y/nPOLICYSYNC_REDSHIT_IMAGERedshift Connector. If DOWNLOAD_CONNECTOR_COMPONENTSis set toythen you need to set the value for this.y/nPOLICYSYNC_POWERBI_IMAGEPowerBI Connector. If DOWNLOAD_CONNECTOR_COMPONENTSis set toythen you need to set the value for this.y/nPOLICYSYNC_BIGQUERY_IMAGEBigquery Connector. If DOWNLOAD_CONNECTOR_COMPONENTSis set toythen you need to set the value for this.y/nPOLICYSYNC_LAKEFORMATION_IMAGELakeformation Connector. If DOWNLOAD_CONNECTOR_COMPONENTSis set toythen you need to set the value for this.y/nPOLICYSYNC_DATABRICKS_UNITY_CATALOG_IMAGEDatabricks Unity Calalog Connector. If DOWNLOAD_CONNECTOR_COMPONENTSis set toythen you need to set the value for this.y/nPOLICYSYNC_VERTICA_IMAGEVertica Connector. If DOWNLOAD_CONNECTOR_COMPONENTSis set toythen you need to set the value for this.y/n -
Run the following commands to download packages and images of Privacera Manager:
The script will download the Privacera Manager package to the~/privacera/downloadslocation, retrieve and upload the required images to the private Docker repository, and synchronize the Privacera package with the remote jumphost. -
(Optional) If the synchronization failed in the previous step, re-run the script with the sync action to copy the Privacera Manager package to your Privacera Manager host.
Alternatively, you can manually copy the package from~/privacera/downloads/privacera-manager.tar.gzto the~/privacera/downloadsdirectory on the Privacera Manager host.
- A local Docker registry is needed to host the Privacera Docker images. Ensure you have the registry URL and credentials to push images to it.
- The compute host (Privacera jumphost) must be in the air gap network (no Internet access). This host should have access to the local Docker registry where Privacera Docker images are hosted.
- The jumphost must have permissions to create repositories and perform operations such as push, pull, delete, and modify the images in the your private hub.
- Obtain the following information from your Privacera Sales Representative:
- PRIV_MGR_PACKAGE: The format will be
https://<domain>/<filepath>/<file.tar.gz> - PRIV_MGR_IMAGE: The format will be
<PRIVACERA_HUB_HOST>/privacera-manager:<PRIV_MGR_IMAGE_TAG> - PRIVACERA_HUB_USER: Privacera Docker hub registry username
- PRIVACERA_HUB_PASSWORD: Privacera Docker hub registry password
- PRIV_MGR_PACKAGE: The format will be
-
Replace
PRIVACERA_RELEASE_VERSIONin the URL and then download the script.Bash -
After setting the above variables, run the following code in your shell to initialize these variables. Copy the output to a text file to be used in the next section.
-
Run the following wget command from the home folder of your Linux host to download the script.
-
Download packages and images of Privacera Manager
The script lists the packages and images downloaded and saved in
~/privacera/downloadsand~/privacera/downloads/imageslocations respectively. -
Push the images to internal repository. Run the script again with push action to upload the images to your private Repository and copy (.tar) packages to your Privacera Manager host.
-
Once the images are pushed to the internal repository, it will clean up images in the
~/privacera/downloads/imagesdirectory and it will prompt to copy package to Privacera Manager host using rsync over ssh. -
Run the script again with the sync action to copy the Privacera Manager package to your Privacera Manager host.
You can also manually copy the package fromBash ~/privacera/downloads/privacera-manager.tar.gzto the~/privacera/downloadsdirectory on the Privacera Manager host.
You will now have the following details ready: the hostname of your airgap Docker registry and the credentials needed to pull from it for configuration.
- Prev Prerequisites
- Next Setup