HashiCorp Vault and Nomad can be integrated using workload identity, a newer approach that replaces the deprecated token-based method. Workload identity uses JWT tokens signed by Nomad to authenticate with Vault, eliminating the need to manage Vault tokens manually. The setup involves configuring JWT auth method in Vault, creating roles with bound claims for specific workloads, and updating Nomad server/client configurations. Terraform can automate the Vault configuration by defining roles, policies, and auth backends as code, making the integration more secure and easier to provision.
Table of contents
» The previous Vault integration» The Vault + Nomad workload identity integration» Infrastructure as codeSort: