This guide will show you how to integrate Google Cloud Platform (GCP) Pub/Sub with the Secure60 platform. GCP Pub/Sub is a messaging service that allows you to send and receive messages between independent applications. This integration enables you to collect and analyze GCP audit logs and other event data in real-time through Secure60.
This guide will explain how to configure the Secure60 Collector to pull data from GCP Pub/Sub subscriptions. The integration automatically normalizes GCP event data into the Secure60 Common Information Model (CIM) format, making it easy to analyze and correlate with other security data sources.
Set Up GCP Service Account
roles/pubsub.subscriber
roles/pubsub.viewer
Configure Secure60 Collector
Add the following environment variables to your Secure60 Collector .env
file:
GCP_PUBSUB_CREDENTIAL_PATH=/path/to/your/credentials.json
GCP_PUBSUB_PROJECT=your-gcp-project-id
GCP_PUBSUB_SUBSCRIPTION=your-subscription-id
Where:
GCP_PUBSUB_CREDENTIAL_PATH
: Path to your GCP service account credentials JSON file (Details below on how to map this file into the Secure60 Collector container and reference) OR Preferred: Provide an API Key as the valueGCP_PUBSUB_PROJECT
: Your GCP project IDGCP_PUBSUB_SUBSCRIPTION
: The ID of your Pub/Sub subscriptionThe Secure60 Portal Integrations page provides an intuitive UI to configure GCP Pub/Sub integration. You can enter your GCP Credential Path, Project, and Subscription directly in the portal, which will generate the correct environment variables for your collector deployment.
Deploy the Collector
If using Docker, mount the credentials file and update your run command:
docker run -i --name s60-collector \
-v /path/to/your/credentials.json:/etc/vector/gcp-credentials.json \
-p 80:80 -p 443:443 -p 514:514 -p 6514:6514 \
--rm -d --env-file .env secure60/s60-collector:1.07
Or using Docker Compose:
services:
s60-collector:
image: "secure60/s60-collector:1.07"
volumes:
- /path/to/your/credentials.json:/etc/vector/gcp-credentials.json
ports:
- "443:443"
- "80:80"
- "514:514"
- "6514:6514"
env_file:
- .env
The Secure60 Collector automatically normalizes GCP Pub/Sub events into the Secure60 Common Information Model. This includes:
To verify the integration is working:
Check the Secure60 Collector logs:
docker logs s60-collector
View events in the Secure60 Portal:
vendor="google"
and product="GPC"
Common issues and solutions:
Authentication Errors
Connection Issues
Data Not Appearing
For additional assistance, contact Secure60 Support at support@secure60.io