The Simplest Way to Make Azure Storage and Pulsar Work Like They Should

Published
Length
3 min read

Luis Felipe Dias

All posts

You link azure storage and pulsar to offload old message data into cheap cloud buckets. This workflow keeps your fast disks clear while saving long message logs for later use. Teams use Apache Pulsar to send millions of events between apps every day. Keeping all those events on local cluster disks costs a lot of money. Azure Storage gives you a cheap place to hold older message segments. When you pair them, your apps still read old and new data from one stream. How data moves between azure st

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.

You link azure storage and pulsar to offload old message data into cheap cloud buckets. This workflow keeps your fast disks clear while saving long message logs for later use.

Teams use Apache Pulsar to send millions of events between apps every day. Keeping all those events on local cluster disks costs a lot of money. Azure Storage gives you a cheap place to hold older message segments. When you pair them, your apps still read old and new data from one stream.

How data moves between azure storage and pulsar

Pulsar stores message logs in a layer called BookKeeper. As new messages arrive, BookKeeper groups them into small segments. Once a segment closes, the cluster can move it to cloud storage. This feature is called tiered storage.

To make this work, the cluster needs permission to write to your cloud bucket. You set up an identity in Azure and give it a role for one bucket. The Pulsar cluster uses this identity or a shared key to log in. Then the cluster copies sealed segments into your storage account.

Apps can also move data through Pulsar IO connectors. A sink connector reads events from a topic and writes files to a bucket. A source connector watches a bucket for new files and sends events to a topic. Both tools rely on clear roles and valid keys to move data safely.

Common failures when linking clusters and buckets

Many teams use one master storage key for every topic and connector. This setup creates a big risk if that key leaks. Anyone with the master key can read or delete every file in your account. You should use managed identities or scoped tokens instead of master keys.

Broad roles cause problems too. A connector that only reads files should not have permission to delete them. Give each job a role that only covers one container and one action. Separate your test buckets from your live buckets so test jobs stay isolated.

Azure RBAC + End-to-End Encryption: architecture patterns and best practices

Continue reading? Get the full guide.

Free. No spam. Unsubscribe anytime.

Network setup is another common trouble spot. Sending message segments over the public internet adds delay and raises security risks. You should route traffic through private network links inside your cloud virtual network. Also, check that your storage logs record every read and write request.

Unlogged reads make it hard to track who looked at sensitive message data. Message payloads often contain emails, phone numbers, card numbers, or national IDs. When engineers inspect topics or buckets to fix bugs, you need a clear audit trail. Data masking rewrites matched fields in results so sensitive strings stay safe during checks.

Keeping keys and roles clean across your team

Static keys in plain text files will break your pipeline when they expire. Teams often forget to update the cluster after they rotate a storage key. Moving to cloud roles that renew on their own stops these sudden outages. You also remove the need for engineers to copy secret keys by hand.

Audit your storage roles and topic permissions every month. Remove old service accounts that belong to retired apps or past projects. Keep your network rules tight and check your access logs often.

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

When should we use tiered storage instead of a sink connector?

Use tiered storage when apps still want to read old data through Pulsar topics. Use a sink connector when other tools need to read files directly from the bucket.

What happens if the storage key expires while the cluster is running?

The cluster cannot offload new segments or read old ones from the cloud bucket. New messages still land on local disks until those disks fill up.

How do we protect sensitive fields inside stored message segments?

Turn on encryption at rest for your storage container and use private network links. For live checks, use data masking to rewrite emails or card numbers in results.

The query runs. The emails stay hidden.