The Simplest Way to Make Azure Key Vault and Zscaler Work Like They Should

Published
Length
3 min read

Luis Felipe Dias

All posts

Teams use azure key vault and zscaler together to protect cloud secrets over private networks. Zscaler routes user traffic, and Azure Key Vault stores keys, passwords, and certificates. This setup lets developers fetch secrets without exposing the vault to the public internet. Your team gets safe network paths and central secret storage in one workflow. How azure key vault and zscaler handle logins and data flow A user or app starts by logging in through the identity provider. Zscaler checks

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.

Teams use azure key vault and zscaler together to protect cloud secrets over private networks. Zscaler routes user traffic, and Azure Key Vault stores keys, passwords, and certificates.

This setup lets developers fetch secrets without exposing the vault to the public internet. Your team gets safe network paths and central secret storage in one workflow.

How azure key vault and zscaler handle logins and data flow

A user or app starts by logging in through the identity provider. Zscaler checks the user identity and device posture before opening a network path. Once approved, Zscaler routes the traffic to a connector inside the Azure virtual network.

The vault rejects public web traffic when you turn on private endpoints. Only requests coming from the internal Azure subnet can reach the vault service. Zscaler bridges the user device to that private subnet without a traditional VPN.

Reaching the network does not grant the right to read secrets. The caller must also show a valid identity token from Microsoft Entra ID. Azure checks role assignments to see if that user or app can read a key.

Both checks must pass for the request to work. Zscaler controls the network path, and Azure controls the data permissions. When both checks pass, the vault sends the secret back over the encrypted tunnel.

Common failure modes and how to scope roles and network paths

Many teams set up broad network rules that expose the whole Azure virtual network. If a user only needs one vault, do not open the entire subnet. Set Zscaler rules to allow traffic only to the specific private IP and port.

DNS resolution often breaks when teams first turn on private endpoints for the vault. The user device must resolve the vault public name to its private IP address. You must set up private DNS zones in Azure and forward queries through Zscaler.

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

Continue reading? Get the full guide.

Free. No spam. Unsubscribe anytime.

Shared service accounts create another major risk in production setups. Teams often give one app identity read rights to every secret in the vault. If an attacker steals that token, they can read every database password and API key.

Split your secrets across separate vaults or scope role assignments to single keys. Give each app its own managed identity with the minimum role needed to run. Never share client secrets across different developer teams or staging setups.

Unlogged queries also hide bad behavior until a breach happens. Network logs in Zscaler only show that a user reached the vault IP address. They do not show which secret the user read or changed during that session.

Auditing secret reads and rotating keys in production

You must turn on diagnostic logs in Azure to see every vault action. Send those logs to a central workspace so security teams can review them. Check for failed read attempts and unusual login times from developer laptops.

Static secrets still cause problems even when you store them in a secure vault. Once a developer reads a database password, that password stays on their local machine. Set short expiration dates on keys and rotate credentials often to limit this risk.

Data masking also helps protect sensitive records once someone connects to a database. Masking rewrites matched fields like emails, phone numbers, card numbers, or national IDs in results. Combining network rules, strict vault roles, and data masking keeps production systems safe.

Govern statements and responses across databases and APIs

Good config and scoped roles are needed setup. They do not check single queries in flight or mask sensitive fields in returned rows. Across Postgres, MySQL, SQL Server, MongoDB, ClickHouse, Kubernetes APIs, SSH, and internal HTTP endpoints, hoop.dev runs beside each supported service as an open-source proxy, a sidecar for your database or API.

First, hoop.dev guardrails block banned queries before they run. Then hoop.dev data masking rewrites matched sensitive values in responses in memory. The audit trail records every statement and verdict per resource. Furthermore, hoop.dev holds SOC 2 Type II and is open source on GitHub.

Frequently asked questions

Why does my vault request fail with a forbidden error over Zscaler?

This happens when your traffic hits the public vault endpoint instead of the private IP. Check your Zscaler DNS settings so the vault domain resolves to the Azure private endpoint.

Should developers use shared service principals to read secrets?

No, shared accounts make it impossible to see who read a secret in the logs. Each developer should log in with their own personal identity and hold scoped read roles.

Does Zscaler inspect the secrets returned from Azure Key Vault?

Zscaler passes the encrypted traffic between the client and the private Azure subnet. If you turn on TLS inspection, make sure it does not break certificate pinning in Azure tools.

The query runs. The emails stay hidden.