OIDC authentication for HashiCorp Vault
Ansible Automation Platform supports zero trust access to HashiCorp Vault using OpenID Connect (OIDC)-based workload identity, eliminating the need to store Vault credentials in Ansible Automation Platform.
For each automation job configured with a Vault OIDC credential, Ansible Automation Platform issues a JSON Web Token (JWT) to authenticate the workload with HashiCorp Vault. Vault then validates this token via OIDC and applies your configured policies to either allow or deny access to the requested secrets.
JWTs are issued with an expiration time that matches the job timeout when available. When the timeout is not available, a configurable platform default is used.
- Configure the HashiCorp Vault server to allow OIDC/JWT Authentication.
- Configure credentials in Ansible Automation Platform to use either of these credential types: HashiCorp Vault Secret Lookup (OIDC) or HashiCorp Vault Signed SSH (OIDC).
- Configure the HashiCorp Vault server
You must perform a one-time configuration of the Vault server to enable OIDC authentication with Ansible Automation Platform. This configuration allows OIDC-enabled credential plugins to use JWT-based workload identity to request secure, short-lived tokens instead of relying on static passwords. - OIDC credential types for HashiCorp Vault
Ansible Automation Platform supports OIDC credential types for HashiCorp Vault that use short-lived JSON Web Tokens instead of static credentials, providing secure, automatic authentication without the need to store or rotate Vault secrets. - Claims for workload identity
Ansible Automation Platform uses OpenID Connect (OIDC) and short-lived JSON Web Tokens (JWTs) with digitally signed claims to verify identity across systems. Understanding this claims structure allows you to create secure access control policies. - Example HashiCorp Vault Policy
HashiCorp Vault policies secure sensitive data by granting path-based access. When creating the JWT Role for Ansible Automation Platform JWT authentication, the role must reference a valid policy to maintain administrator security control.