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

Published
Length
3 min read

Luis Felipe Dias

All posts

Pairing azure key vault and port lets dev teams run self-service actions with stored secrets. Port triggers a job, and Azure Key Vault supplies the secret to the runner. Platform teams use Port as an internal developer portal for daily tasks. Engineers click a button in Port to spin up a database or deploy an app. Those jobs need API keys, tokens, or database passwords to do their work. Azure Key Vault holds those secrets in one central, safe place. When you link the two tools well, devs get fa

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 azure key vault and port lets dev teams run self-service actions with stored secrets. Port triggers a job, and Azure Key Vault supplies the secret to the runner.

Platform teams use Port as an internal developer portal for daily tasks. Engineers click a button in Port to spin up a database or deploy an app. Those jobs need API keys, tokens, or database passwords to do their work. Azure Key Vault holds those secrets in one central, safe place. When you link the two tools well, devs get fast actions without seeing raw keys.

How azure key vault and port move secrets and data

Port does not need to store your cloud secrets inside its own database. Instead, Port sends an action event to your chosen backend runner. This runner can be a GitHub workflow, an Azure pipeline, or a webhook worker. The runner gets the payload from Port and logs in to Azure. Once Azure checks the runner identity, the runner reads the secret from Key Vault.

Using managed identities or workload identity federation makes this flow much safer. The runner trades a short token from its platform for an Azure token. Azure checks the trust rule and hands back access to the right vault. Then the runner grabs the secret, runs the task, and sends the status back to Port. Port updates its catalog so the developer sees the finished result right away.

You can also sync vault metadata into the Port catalog for better visibility. A scheduled job can read secret names and expiration dates from Azure. It writes those non-sensitive details into Port as catalog entities. Teams can then track which app owns which secret and when keys expire. No actual secret values ever enter the developer portal during this sync.

Common failure modes and how to scope roles

Many teams start by sharing one broad service principal across all Port runners. If one workflow gets compromised, an attacker can read every secret in the vault. Another mistake is pasting static client secrets into runner variables and forgetting them. When those static keys expire, self-service actions in Port fail during busy work hours.

Unlogged secret reads also create blind spots during security audits. If ten different Port actions use the same Azure identity, logs look identical. You cannot tell which developer action in Port triggered a specific secret read. Teams also hit rate limits when catalog sync scripts poll Key Vault too often.

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

Continue reading? Get the full guide.

Free. No spam. Unsubscribe anytime.

Fix these issues by splitting Key Vaults or role assignments by app and stage. Give each runner its own identity with read rights to only the secrets it needs. Use Azure role-based rules instead of legacy vault access policies for finer control. Pass the Port run ID in your runner logs so you can trace every action. Set up alerts on your vault logs to spot unusual secret reads early.

Auditing secret usage across developer workflows

Security teams need a clear trail from a portal click to a cloud change. Start by turning on diagnostic logs for every vault in your Azure account. Send those logs to a central workspace where your team tracks cloud events. Next, make sure your Port actions require user approval for sensitive production tasks.

When a developer runs an action, Port records who clicked the button and why. Your runner should capture that context and log it alongside the job output. By matching timestamps and run IDs, you link the portal user to the vault read. This simple setup keeps audits fast and keeps your production keys safe.

Check database and API queries on the wire

Identity tools, roles, and network rules decide who opens a session. Setup alone cannot check what each query does or mask sensitive values in a response once a session starts. When workflows touch Postgres, MySQL, SQL Server, MongoDB, ClickHouse, Kubernetes APIs, SSH, or internal HTTP APIs, hoop.dev runs beside those services as an open-source proxy, a sidecar for your Postgres or API. It inspects requests coming in and results going back on the wire.

Your login details and client tools stay as they are while hoop.dev guardrails refuse bad deletes or drops before they run. On responses, hoop.dev data masking rewrites matched sensitive values in memory. Furthermore, hoop.dev holds SOC 2 Type II, is MIT licensed, and writes every query and decision to an audit trail that generates evidence for HIPAA, GDPR, and PCI DSS. See the source on GitHub.

Frequently asked questions

Should Port store raw secrets from Azure Key Vault in its catalog?

No, you should never put raw secret values inside your Port catalog entities. Only sync metadata like secret names, owner teams, vault names, and expiration dates.

How should a Port action runner log in to Azure Key Vault?

Use workload identity federation or an Azure managed identity on your runner host. This setup avoids static client secrets that someone has to rotate by hand.

How can we stop dev actions from reading production secrets in Key Vault?

Keep dev and production secrets in separate vaults with distinct Azure role assignments. Link your dev Port actions to a runner that only has dev vault permissions.

The query runs. The emails stay hidden.