The Simplest Way to Make Arista and Google Pub/Sub Work Like They Should

Published
Length
3 min read

Luis Felipe Dias

All posts

Pairing Arista and Google Pub/Sub lets teams stream live network events into cloud queues. Switches push state changes out, and cloud apps read those messages right away. This setup helps network teams spot broken links and track traffic drops fast. Instead of polling hardware on a timer, systems react to events in real time. Getting the two platforms to talk takes clear identity rules and clean network paths. How Arista and Google Pub/Sub share data and roles Arista switches track port stat

Your coding agents run with your access.

Claude Code reaches prod with a developer's credentials, and approval prompts get clicked through. hoop.dev checks every query, masks sensitive data, and holds risky changes for a human.

Pairing Arista and Google Pub/Sub lets teams stream live network events into cloud queues. Switches push state changes out, and cloud apps read those messages right away.

This setup helps network teams spot broken links and track traffic drops fast. Instead of polling hardware on a timer, systems react to events in real time. Getting the two platforms to talk takes clear identity rules and clean network paths.

How Arista and Google Pub/Sub share data and roles

Arista switches track port states, routing table updates, and hardware counters every second. An agent on the switch or a collector reads this local state data. That service then formats the updates and sends them to a cloud message topic.

Google Pub/Sub receives these network events and holds them for downstream apps. To write messages, the sender must log in with a valid cloud identity. Teams set up a dedicated service account in the cloud project for this task.

The cloud role on that account should only allow publishing to one specific topic. It does not need rights to read messages, delete topics, or change project rules. Once logged in, the collector pushes data over an encrypted link to the cloud endpoint.

Common failure modes and how to scope network paths

Many teams make the mistake of sharing one service account key across all switches. If one key leaks, an attacker can push fake data to every cloud topic. Rotating a shared static key also forces teams to touch every device at once.

Overbroad permissions create another big risk for production cloud setups. A publisher account with project-wide edit rights can break other cloud apps if compromised. Teams also run into trouble when they skip logging on message publish calls.

End-to-End Encryption: architecture patterns and best practices

Continue reading? Get the full guide.

Free. No spam. Unsubscribe anytime.

Without clear logs, you cannot tell which switch sent a bad update. To fix this, give each collector or site its own scoped cloud identity. Grant each role the minimum rights needed to write to its assigned topic.

You should also lock down the network path between your switches and the cloud. Route outbound telemetry traffic through a dedicated management network rather than open public links. Check that firewall rules only allow outbound traffic to the required cloud endpoints.

Keeping telemetry pipelines clean and safe

Network logs often hold sensitive internal details or user identifiers in payload fields. Before events leave the data center, teams should check what data gets exported. Filtering out unnecessary fields keeps storage costs down and reduces security risk.

Data masking can also rewrite matched fields like emails, phone numbers, or card numbers. This step keeps sensitive records out of downstream analytics lakes and alerting tools. Regular audits of your cloud roles ensure old collectors lose their write rights fast.

Add runtime guardrails and masking beside your databases and APIs

Login rules, role grants, and CI checks govern who connects to your stack. Yet any allowed script, engineer, or AI agent still runs commands with the full scope of its role. For workloads on Postgres, MySQL, SQL Server, MongoDB, ClickHouse, Kubernetes, SSH, or internal HTTP services, hoop.dev sits beside the service as an open-source proxy, a sidecar for your database or API.

Before a query runs, hoop.dev guardrails check the statement against your rules. An AI Analyzer you configure can score intent or hold risky calls for human review. Next, hoop.dev data masking rewrites sensitive fields in responses, and each verdict is logged per listener. Explore the MIT-licensed project on GitHub.

Frequently asked questions

How do Arista switches send events to Google Pub/Sub?

An agent or local collector streams state changes from the switch using standard telemetry protocols. That collector formats the data and publishes it to a Google Pub/Sub topic.

What cloud role does the Arista collector need?

Give the collector service account a role that only allows publishing to one topic. Do not grant project-wide admin rights or permission to read messages from subscriptions.

How can teams avoid static keys on network gear?

Run an off-box collector in a cloud or local host that supports workload identity. The switches stream to the local collector, which handles short-lived cloud logins safely.

The query runs. The emails stay hidden.