How OpenBao cloud IAM authentication lets workloads log in without stored secrets
Workloads running on AWS, Azure or GCP should not carry a long-lived credential whose only job is to fetch other secrets. The cloud IAM auth methods in OpenBao let a workload present the identity the cloud platform already gives it, such as an instance role, a managed identity or a service account, and receive a short-lived OpenBao token in return. The secret that would otherwise sit in a configuration file or environment variable is replaced by a trust relationship between OpenBao and the cloud provider's identity system. The practical question for your team is which identity each workload already has, and whether that identity can be verified by OpenBao without a shared secret.
The AWS, Azure and GCP auth methods are not part of the core OpenBao binary. They are distributed in the openbao-plugins repository, so you must install and register the plugin that matches each cloud you use before any cloud login will work. Teams usually need these plugins when most of their workloads run in one cloud, since a single cloud auth method then covers most logins and keeps role definitions simple. Teams spread across several clouds will configure one method per provider and need to plan role names and policies so that equivalent workloads receive equivalent access. The OpenBao auth methods documentation lists the core methods, and it does not by itself confirm plugin availability, so check which plugins ship for the OpenBao release you plan to run before you design around them.
Before you commit to this pattern, confirm three things with your platform and security teams: which cloud identity types each workload uses, whether your OpenBao release and plugin packaging match your deployment process, and who owns the role definitions that bind a cloud identity to OpenBao policies. Cloud IAM login reduces stored secrets, but it moves trust into cloud account configuration, so changes to cloud roles or accounts become changes to who can read your secrets. Plan for that dependency from the start.
Which cloud auth method fits which workload
This table compares the AWS, Azure and GCP auth methods by the identity each workload presents, the platform it runs on and how well it fits mixed estates. Read each row against the platform your workload actually runs on, then check the exact role parameters in the plugin documentation for the OpenBao release you run.
| Workload location | Identity the workload presents | Auth method to evaluate | Fit for mixed or multi-cloud estates |
|---|---|---|---|
| Workloads on AWS (EC2, ECS, Lambda, EKS) | IAM role or instance identity signed by AWS | AWS auth method | Strong for AWS-only estates. Other clouds need their own method or AppRole/JWT/OIDC. |
| Workloads on Azure (VMs, App Service, AKS) | Managed identity or service principal token issued by Microsoft Entra ID | Azure auth method | Strong for Azure-only estates. Confirm which identity types your release accepts. |
| Workloads on Google Cloud (Compute Engine, GKE, Cloud Run) | Service account identity token or instance metadata identity | GCP auth method | Strong for GCP-only estates. Confirm how your release handles IAM and GCE identity types. |
| Mixed estates spanning two or three clouds | One native identity per cloud, each verified by its provider | Separate AWS, Azure and GCP roles in one mount per cloud | Workable with one role per provider, but policies and role naming must stay consistent across clouds. |
| Workloads on-premises or in a data center | No cloud-issued identity | AppRole or JWT/OIDC, depending on whether your identity provider issues tokens | Cloud auth methods do not apply. Choose AppRole for servers and pipelines or JWT/OIDC if an identity provider already issues tokens. |
| Workloads in another cloud or SaaS platform | Platform-specific token or workload identity | JWT/OIDC if the platform issues OIDC tokens, otherwise AppRole | Confirm that the platform's tokens can be validated by OpenBao before choosing this path. |
| Developer machines and interactive users | Person's own login, not a workload identity | Userpass or OIDC, not a cloud auth method | Cloud IAM auth is for workloads, so people should use their own login path. |
How a cloud workload's identity reaches OpenBao
The flow starts when the workload asks its cloud platform for a signed identity document or token from the instance metadata or identity service. The workload then sends that proof to the OpenBao cloud auth endpoint, which checks it against the role you configured and the trusted cloud data it holds. Only if every check passes does OpenBao return a token carrying the role's policies. Check that the trust boundary sits where you expect, since everything OpenBao trusts about the workload comes from the provider side of that line.
Cloud workload login: the provider issues identity, OpenBao verifies it against a role.
Installing the cloud auth plugins and enabling a method
This sequence takes a cloud workload from an unconfigured OpenBao cluster to a verified login with its native identity. Each step ends with a check that confirms the plugin, method, role and token behave as intended before the method is used in production.
Confirm the release and matching plugin build
The platform team records the OpenBao version running on every node, then pulls the openbao-plugins build that matches that release line from the project's release pages. Mismatched core and plugin versions are the most common cause of a failed plugin registration, so the team checks the plugin's release notes for the OpenBao version it supports. Confirm the cloud provider's identity requirements for the method you plan to use with the plugin documentation before going further. The step is complete when the team has a written record of the OpenBao version, the plugin version and the cloud identity type in the change ticket.
Install the plugin binary on every node
An operator copies the AWS, Azure or GCP auth plugin binary to the plugin directory on each OpenBao node, sets the same file ownership and permissions on all of them, and verifies the checksum published with the build. Installing the plugin on only the active node causes intermittent login failures after a leader change, so every node must hold an identical copy. The operator then restarts or reloads the service according to the change plan. The step is complete when the checksum matches on all nodes and each node reports the same plugin file hash.
Register the plugin in the catalog
The operator registers the plugin in the OpenBao plugin catalog under the auth type, binary name and SHA-256 value, using the plugin management commands for the installed release. Registration records the plugin in cluster storage, so the operator must run it against the cluster leader. Confirm the exact flags in the current plugin documentation before running them. The check is listing the plugin catalog for the auth type and confirming the entry shows the expected name and checksum. If the entry is missing or the checksum differs, the operator fixes the binary before enabling anything.
Enable the auth method at its path
The operator enables the cloud auth method at a deliberate path, such as one that names the provider and environment, so that policies and documentation can refer to it clearly. Choosing the path is a decision for the team, since it appears in every client login URL. The operator runs the enable command with the registered plugin name, then lists enabled auth methods. The step is complete when the list shows the new mount at the chosen path with the expected type and the default token settings the team agreed on.
Configure the trusted cloud settings
The operator writes the trusted cloud settings for the method, which tell OpenBao how to verify identity documents from the provider, such as the accounts, tenant or project the cluster will trust and any endpoint overrides for private networks. Only trust the accounts, tenants or projects that the owning team has approved in writing, because anything trusted here can request a login. Reading the configuration back confirms the values were stored as intended. The step is complete when the readback matches the change ticket and no unapproved identity source appears in the output.
Create a role with a bound policy
The operator creates a role that binds one workload identity, such as a specific instance profile, managed identity or service account, to a narrowly scoped OpenBao policy. Each role should bind as tightly as the provider allows, using the bound fields the plugin documents, and it should set a token lifetime short enough for the workload's job. The operator reads the role back to confirm the bound values, policy and token settings. The step is complete when the readback shows only the intended bindings and the policy grants access to the paths the workload needs and nothing else.
Test a login from a running workload
A test runs on the cloud workload the role is meant for, not on an operator laptop, so that the provider's real identity is presented to OpenBao. The workload logs in through the enabled path and receives a client token. The operator then looks up that token to confirm its policies match the role design and that no default or unexpected policies were attached. A login from a workload outside the bound identity should fail, and the team should confirm that denial in the audit log. The step is complete when the expected token policies appear, the denial is recorded, and the results are filed with the change.
How roles bind a workload to cloud identity and policy
The role is the control point of cloud IAM authentication in OpenBao. A role defines which cloud identities may log in, what attributes of that identity they must match, the token TTL they receive and the policies the resulting token carries. The matching fields differ by cloud: on AWS they can include account, IAM role or principal ARN, on Azure the subscription, resource group or managed identity, and on GCP the project or service account. Before writing any role, confirm the exact bound fields and their behavior for your chosen auth method in the OpenBao auth methods documentation, since the supported matching options vary between the AWS, Azure and GCP plugins and between IAM and EC2 style logins on AWS.
The most common mistake is a broad binding: a role that matches an entire account, subscription or project, or a single loose attribute such as a shared resource group. Any workload in that scope can then obtain the role's policies, including workloads nobody intended to hand secrets to. Write one role per workload class, bind it to the narrowest identity attributes the platform exposes, and grant only the policies that class needs. Keep token TTLs short enough that a stolen token has limited value, and confirm the maximum TTL and renewal behavior your team will rely on.
Test the bindings as part of the build, not after go-live. For each role, run a login from the intended workload and confirm the token carries only the expected policies. Then run negative tests from unrelated resources in the same account, subscription or project, such as a different instance, function, managed identity or service account, and confirm OpenBao rejects them. Record these results with the role definition so an auditor or a later change can see what each role was designed to exclude.
Trade-offs that shape the cloud auth design
Cloud IAM login removes long-lived secret IDs from your servers, but it moves the hard work into role design, identity mapping and plugin lifecycle. The cards below cover the choices that change day-to-day operations, so you can settle them before the first role is written.
Cloud identity instead of AppRole secret IDs
Cloud IAM login lets a workload prove who it is using the identity its platform already issues, so there is no secret ID to generate, store, deliver and rotate. The trade-off is dependence on the cloud control plane: a workload outside that cloud, or one whose instance identity cannot be verified, cannot log in this way and needs AppRole or another method. Check which workloads run on each cloud before you retire any AppRole secret IDs.
Auth methods docsOne role per service versus shared roles
A shared role is quicker to set up, but any workload that matches it receives the same policies, so one overly broad match widens access for every service behind it. One role per service makes each policy tied to a single workload and makes audit entries easier to read, at the cost of more roles to maintain. Ask which bound identifiers (account, role ARN, managed identity, service account) each role matches and who approves changes to them.
Mapping cloud identities to OpenBao entities
Each cloud login creates an alias, and the alias may or may not resolve to the same entity as a person's OIDC or LDAP login. Without deliberate mapping, the same service or engineer can appear as several unrelated identities, which complicates policy review and revocation. Decide which cloud identities should map to shared entities and document how that mapping is maintained as workloads are added or retired.
Local development without a cloud identity
Developers on laptops have no instance profile, managed identity or workload identity, so cloud login cannot serve them. Teams usually pick a separate method for people, such as OIDC or Userpass, which OpenBao documents for developer machines, and keep cloud login for workloads only. Confirm that no cloud role accepts a developer credential by accident, and that local development never uses production roles.
Auth methods docsRunning the plugins across a multi-node cluster
The AWS, Azure and GCP auth plugins come from openbao-plugins rather than the core binary, so each node that serves login requests must have the same plugin build installed and registered. A plugin present on one standby but missing on another produces login failures that appear only when traffic reaches that node. Plan the installation as a cluster-wide change, verify it on every node, and include the plugin in configuration management.
High availability docsKeeping plugin versions matched to core
A plugin built for one OpenBao release line may not work with another, so every core upgrade needs a matching plugin upgrade in the same change window. Confirm the compatible plugin release for your target core version before upgrading, and test cloud logins on a staging cluster first. Track both the core and plugin versions in your inventory so an upgrade does not silently break workload logins.
- Latest supplied patch
- 2.7.1
What differs across AWS, Azure and GCP
On AWS, the workload presents an identity that AWS itself vouches for. Depending on the login type the plugin supports, that proof is either a signed request identifying the calling IAM principal, or an instance identity document and its signature issued by the EC2 metadata service. OpenBao checks the proof against AWS, so no shared secret needs to be stored on the instance.
- Identity presented: An IAM role attached to an EC2 instance, or an IAM principal used by a container or function, depending on the login type. Confirm which principal types each mode accepts.
- Trusted data source: AWS Security Token Service validates signed requests, and the EC2 metadata service supplies the instance identity document. Confirm which AWS endpoints OpenBao must reach for your chosen mode.
- Configuration concepts: Roles bind to attributes such as account, region, role ARN or instance properties. Confirm the exact binding fields and whether instance tags can be checked in the plugin docs.
- Gotcha, metadata hop limits: A container may not reach the instance metadata endpoint if the hop limit is set too low, so the login fails from a pod even though the host works.
- Gotcha, private networks: Private subnets need a route to the regional STS endpoint or a VPC endpoint. Confirm this from the OpenBao nodes, not only from the workload.
Test each login from the container or pod that will actually authenticate, and confirm network reachability from the OpenBao side.
On Azure, the workload usually presents a managed identity, either system-assigned or user-assigned, attached to a virtual machine or a platform service. The workload asks the instance metadata service for a token for a specific resource, and OpenBao validates that token against Microsoft Entra ID. The trust chain therefore runs through your tenant, which is why tenant configuration is a central decision.
- Identity presented: A managed identity bound to a VM, scale set or app service. Confirm whether the plugin accepts system-assigned identities, user-assigned identities or both.
- Trusted data source: Microsoft Entra ID signs the tokens, and the instance metadata service issues them to the workload. Confirm which tenant and resource values the plugin expects.
- Configuration concepts: Roles bind to subscription, resource group, resource ID or managed identity object ID. Confirm the binding options and how the audience value must match in the plugin docs.
- Gotcha, link-local metadata: The metadata endpoint is only reachable from the VM itself, so a login attempted from a separate host or sidecar will not work without a different design.
- Gotcha, outbound access: OpenBao nodes need outbound reachability to Entra ID endpoints, and proxies or firewall rules frequently block them in regulated networks.
Confirm the audience and tenant values in a non-production tenant before you copy them into production roles.
On Google Cloud, the workload presents the service account attached to its compute resource, such as Compute Engine, GKE or Cloud Run. The workload obtains an identity token from the metadata server, and OpenBao verifies it against Google's signing keys or IAM. Service account keys can also be used, but a downloaded key is a long-lived secret, which weakens the benefit of native identity.
- Identity presented: The attached service account, or a workload identity mapping on GKE. Confirm which login types accept attached identities and which expect a token type of a particular form.
- Trusted data source: Google's metadata server issues identity tokens, and Google's signing infrastructure and IAM validate them. Confirm which key sources and issuers the plugin trusts.
- Configuration concepts: Roles bind to project, service account email, instance properties or labels. Confirm the available bound fields and any restriction on the audience value in the plugin docs.
- Gotcha, metadata reachability: The metadata server is only reachable from inside the instance or pod, so the login must run in the workload itself.
- Gotcha, GKE identity mapping: On GKE, the pod may present a different identity than the node, so binding to the node service account can grant access to every workload on it.
Run a login from each workload type and check which identity OpenBao records in the audit log before you widen any role.
Security and operational considerations for cloud logins
Cloud IAM login moves trust from a static secret to the cloud provider's identity system, so the decisions that matter are how far each role reaches, how the cloud identity is verified, and how quickly access ends. The cards below cover the checks to make before go-live and the response plan for a compromised account or revoked role.
Scope each role to one workload
A cloud auth role maps a cloud identity to OpenBao policies, so a broad role lets any matching workload read every secret those policies allow. Bind roles to specific accounts, regions, resource groups, service accounts or instance profiles, and keep one role per application boundary. Review the bound conditions before every new role is approved, because a condition that is too loose is the most common way a cloud login exposes more than it should.
Verify the cloud identity cannot be spoofed
Confirm that the login proves the identity from the cloud provider rather than from a value the workload supplies. Check which signed identity document, token or request the plugin validates, and whether the workload can influence the fields the role matches on. Test a login attempt from a workload that does not match the role and confirm that OpenBao rejects it.
Set token TTL and renewal deliberately
Tokens issued by a cloud login should be short-lived and renewed only while the workload is still running and still matches its role. Set the token TTL and maximum TTL on each role, and confirm that a workload that stops or changes identity loses access when its token expires. Ask the team to document how renewal behaves during a restart or redeploy.
Audit every login and its identity
Enable an OpenBao audit device and confirm that each cloud login records the authentication method, role and the cloud identity that logged in. Review these entries after rollout to check that the expected identities appear and that no unknown principal authenticates. Route the audit log to storage the operations team cannot alter, so that the record of who logged in stays reliable.
Limit what the returned token can do
A successful login returns a token with the policies attached to the role, so keep those policies to the paths the workload needs. Remove the default policy where it grants more than required, avoid wildcard paths, and test each policy with the token it produces. Confirm the scope with a read and a write attempt on paths the workload should not reach.
Respond to a compromised account or revoked role
Plan the response before an incident: who can disable a role, who can revoke tokens issued under it, and how the cloud account is isolated. Revoking the role stops new logins, while revoking the tokens it issued ends access that is already active. Practice this sequence in a test environment so that the team knows which steps are immediate and which need the cloud provider's own tools.
Questions teams ask before enabling cloud IAM auth
Can our team set up OpenBao cloud IAM auth without outside help?
Yes, if your team already runs OpenBao and has people who can manage cloud identities and cluster configuration. The core work is deciding which cloud identities may log in, which policies they receive, and how the plugin is installed consistently on every node. A team with one cloud and a small number of workloads can often handle this in-house by following the OpenBao auth methods documentation. Outside help is more useful when you run several clouds, have many workloads, face formal change control, or lack time to test failure paths. A partner can deliver this as a fixed-scope engagement with written deliverables. Before you decide, confirm your team's experience with plugin installation and your cluster topology.
What makes cloud IAM auth take more or less effort?
Effort rises or falls with five factors:
- Number of clouds: each provider has its own identity model, login flow and role binding rules.
- Number of workloads: each role needs a bound identity, a policy and a test.
- Existing auth methods: roles that overlap with AppRole, Kubernetes or OIDC need a mapping so people and machines do not end up with duplicate access.
- Cluster topology: the plugin must be present on active and standby nodes alike, and changes must be checked against your storage backend.
- Change process: approvals, change windows and evidence collection add steps that run alongside the technical work.
Ask for each factor to be counted in the written scope.
What do we need to provide for a cloud IAM auth project?
The project needs four things from your side. First, cloud account access with rights to read workload identities and to create trust configuration for each provider in scope. Second, cluster admin rights to install the plugins, create auth mounts and manage policies. Third, a test environment that matches production in OpenBao version, plugin version and topology, so login behavior can be checked before cutover. Fourth, named workload owners who confirm which identities should log in and what each one needs. Missing any of these usually adds waiting time, so confirm access and owners before work begins.
How do cloud auth plugins affect OpenBao upgrades?
The AWS, Azure and GCP auth plugins are installed separately from the core OpenBao binary, so every server upgrade also needs a matching plugin version on every node. Plan for version pinning, checksum verification of the plugin files, and a documented rollback path. Confirm with the plugin release notes that the plugin version works with your target OpenBao server version before you upgrade. After each step, test a login for every cloud in scope. A node that restarts without its plugin can fail logins for workloads that depend on it, so include plugin presence in your upgrade checklist.
Does cloud IAM auth replace AppRole in OpenBao?
In most environments, cloud IAM auth does not replace AppRole. It covers workloads that already carry a cloud identity, such as an instance, function or managed service identity. AppRole still fits servers, pipelines and systems that run outside a cloud identity, and OpenBao's documentation recommends AppRole for servers. Many estates use both, each with clear ownership: cloud IAM for cloud-native workloads and AppRole for everything else. Map each workload to one method during design so that a machine does not hold two overlapping roles with different policies. The OpenBao auth methods documentation lists the options available.
What should a quote for cloud IAM auth include?
A quote should follow from a written scope that lists what is included and what is excluded. Ask for these items to be stated: the clouds and auth methods in scope, the workloads and roles in scope, the cluster topology and storage backend, the plugin installation and version pinning approach, role and policy design, login testing in a non-production environment, the production cutover steps, handover documentation, and any upgrade or support work. Also ask for a list of assumptions and client responsibilities, such as the access and owners described above. DeployOpen does not publish a price list, so the written scope is the basis for any quote.
Limits to confirm in your environment
The cloud IAM plugins sit outside the core OpenBao binary, so their availability depends on the release you run, the storage and HA layout you choose and the cloud region your workloads live in. Confirm the items below before you write the design, since each one can change which login path is viable.
Plugin build matches your release
The AWS, Azure and GCP auth plugins ship from the openbao-plugins repository, and each build must match the OpenBao server version you run. Check that the plugin version you install is published for your exact release line before you plan the rollout. Confirm this in the plugin repository and the release notes for the OpenBao version you plan to deploy, and record the plugin hash in your change records.
OpenBao releasesPlugin availability in your target release
Plugin packaging has changed across OpenBao releases, so a cloud auth method that works on one minor line may not be packaged the same way on another. Confirm that the AWS, Azure and GCP auth methods are available for the release you intend to run, and check whether any of them are still in the core binary on that version. Verify this against the auth methods documentation before you schedule the upgrade.
Auth methods docsNetwork reachability to cloud identity services
Cloud login depends on OpenBao nodes or the plugin reaching cloud identity endpoints, such as the APIs used to verify instance identity documents, managed identity tokens or service account tokens. Map which component makes each outbound call, which hosts and ports it needs, and whether egress proxies or firewall rules block them. Workloads also need a route to OpenBao itself, so test both directions from each network zone.
Behavior across storage and HA setup
Auth plugins run on every node, and standbys forward or redirect requests to the active node, so a plugin mismatch between nodes can cause intermittent login failures. Check that each node in your Raft or PostgreSQL cluster runs the same plugin build, and test logins against a standby during a leader change. Confirm how the plugin behaves under your chosen HA backend before you rely on it for production workloads.
OpenBao HA docsSovereign and restricted cloud regions
Sovereign clouds, government regions and air-gapped or restricted networks often use different identity endpoints, certificate chains or DNS names from the public commercial cloud. Confirm which identity endpoints your cloud account exposes in that region, whether the metadata or token services behave the same way, and whether your organization allows the outbound calls at all. If the endpoints are not reachable, a cloud IAM login path may need to be replaced with another method.
How DeployOpen scopes and delivers cloud IAM auth
DeployOpen plans, implements, hardens, documents and supports self-hosted open-source platforms inside your own cloud accounts, data centers or air-gapped networks. For OpenBao cloud IAM authentication, that means agreeing the workload identities, plugin installation and role design in writing first, then building and testing them in your environment so your teams can review the result.
How we scope
- Most engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts.
- The written scope lists which AWS, Azure or GCP workload types will log in, and which ones stay on other methods.
- We confirm the cloud accounts, subscriptions or projects, and the OpenBao version and plugin package you will run.
How we build
- We install the cloud auth plugins from the openbao-plugins package on each node and verify the plugin version matches the server.
- We configure auth roles with bound identity conditions, then test that a non-matching workload is refused.
- We test login from each target workload type and record the policies and token settings each role issues.
How we hand over
- You receive configuration as code, role definitions, a plugin installation record and the test results from each workload type.
- We document the trust settings for each cloud provider so your security team can review who can authenticate and why.
- We walk your platform and security teams through the runbook for adding a workload, rotating trust settings and removing a role.
How we support
- Ongoing support, upgrades and continuous testing are available as retainers, including checks when OpenBao releases change plugin behavior.
- A retainer can cover re-testing roles after cloud account changes, new workload types or plugin upgrades.
- Ask any quote to state which upgrade, retest and incident response tasks are included and which are billed separately.

