Skip to content

A Terraform Module for configuring Vault to configure the LDAP auth role for JumpCloud

Notifications You must be signed in to change notification settings

fdr2/terraform-vault-ldap-jumpcloud

Repository files navigation

Terraform Vault LDAP Jumpcloud

Configure Vault's LDAP authentication backend with Jumpcloud.

Issues a Vault token with the attached Nomad policy.

This module aligns with LDAP Auth Method

Usage

Add a module and assign a nomad policy for the tokens that will be issued.

  • Prerequisite: You should have the JumpCloud CA Chain in your terraform-root/tls path, or provide a path to it via jumpcloud_ad_cert_filename
variable "jumpcloud_group_policy" {
  default = {
    Engineering : {
      policies : ["vault-ops-policy", "vault-identity-mgmt-policy"]
      identities : {
        ops : { disabled : false }
      }
    }
    QA : {
      policies : ["vault-qa-policy"]
      identities : {
        qa : { disabled : true }
      }
    }
  }
}

module "vault-ldap-jumpcloud" {
  source = "./modules/terraform-vault-ldap-jumpcloud"
  jumpcloud_ad_bindpass  = var.vault_jumpcloud_ad_bindpass
  jumpcloud_ad_binduid   = var.vault_jumpcloud_ad_binduid
  jumpcloud_ad_orgid     = var.vault_jumpcloud_ad_orgid
  jumpcloud_group_policy = var.jumpcloud_group_policy
}

TODO

  • write local vault dev example
  • write tests

About

A Terraform Module for configuring Vault to configure the LDAP auth role for JumpCloud

Resources

Stars

Watchers

Forks

Packages

No packages published