Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support allowed_domains_template from hashicorp/vault #8509 #850

Closed
danielpops opened this issue Aug 21, 2020 · 1 comment · Fixed by #869
Closed

Support allowed_domains_template from hashicorp/vault #8509 #850

danielpops opened this issue Aug 21, 2020 · 1 comment · Fixed by #869

Comments

@danielpops
Copy link
Contributor

This is a feature request to support the recently added allowed_domains_template field, added in hashicorp/vault#8509

This functionality was recently implemented/merged, and is not yet available in any official release. It is not in v1.5.0, the latest release at the time of this writing, only in the master branch.

References

Are there any other GitHub issues (open or closed) or Pull Requests that should be linked here? For example:

@oliverisaac
Copy link

This is now in 1.5.3. I was able to hack it into terraform using:


resource "null_resource" "fix_cockroach_user" {
  for_each = var.cockroach_deployments

  provisioner "local-exec" {
    command = "vault read -format=json ${vault_mount.cockroach_pki[each.key].path}/roles/user | jq '.data | .allowed_domains_template = true' | vault write ${vault_mount.cockroach_pki[each.key].path}/roles/user -"
  }

  triggers = {
    on_change = jsonencode(vault_pki_secret_backend_role.cockroach_user[each.key])
  }

  depends_on = [
    vault_pki_secret_backend_role.cockroach_user
  ]
}

danielpops added a commit to danielpops/terraform-provider-vault that referenced this issue Sep 24, 2020
danielpops added a commit to danielpops/terraform-provider-vault that referenced this issue Sep 24, 2020
danielpops added a commit to danielpops/terraform-provider-vault that referenced this issue Sep 24, 2020
danielpops added a commit to danielpops/terraform-provider-vault that referenced this issue Sep 24, 2020
danielpops added a commit to danielpops/terraform-provider-vault that referenced this issue Sep 24, 2020
danielpops added a commit to danielpops/terraform-provider-vault that referenced this issue Sep 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants