Installing dependencies

Note

The GCP module can be configured in both the ThreatLockDown manager and the agent. The choice merely depends on where you want to reach the GCP services from.

Warning

The ThreatLockDown manager includes all dependencies installed, the following steps are only necessary when configuring the integration in a ThreatLockDown agent.

Python

The GCP module requires Python 3. Specifically, it's compatible with Python 3.7–3.11. While later Python versions should work as well, we can't assure they are compatible.

# yum update && yum install python3

The required modules can be installed with Pip, the Python package manager. Most of UNIX distributions have this tool available in their software repositories:

# yum update && yum install python3-pip

It is recommended to use a pip version greater than or equal to 19.3 to ease the installation of the required dependencies.

# pip3 install --upgrade pip

Google Cloud client library for Python

google-cloud-pubsub is the official python library supported by Google to manage Google Cloud Pub/Sub resources. It is used to pull the log messages from the Pub/Sub queue.

To install the dependencies, execute the following command:

# pip3 install google-cloud-core==1.7.1 google-cloud-pubsub==2.7.1 google-cloud-storage==1.39.0 pytz==2020.1 setuptools==68.0.0