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

Feature request: Add vault entity support #174

Closed
OperationalDev opened this issue Sep 18, 2018 · 3 comments
Closed

Feature request: Add vault entity support #174

OperationalDev opened this issue Sep 18, 2018 · 3 comments

Comments

@OperationalDev
Copy link
Contributor

Use Case

It would be cool to mange identity entities in vault with Terraform.

Right now, we're doing it with a combination of the UI/cli, but Terraform would just be better.

Example Cli

vault write identity/entity name="bob" policies="base" \
     metadata=department="the unhashibles" \
     metadata=title="overlord"

vault write identity/entity-alias name="bob" \
     canonical_id=be57e6db-bf5d-a246-e931-fda108fc2639    \
     mount_accessor=auth_ldap_b44f9dc1

Example Code

resource "vault_entity" "bob" {
  name     = "bob"
  policy   = ["base"]
  metadata = <<EOF
    {
      "department": "the unhashibles",
      "title": "overlord"
    }
  EOF
}

resource "vault_alias" "bob" {
  name         = "bob"
  canonical_id = "${resourse.vault_entity.bob.id}"
  backend      = "ldap"
}
@cvbarros
Copy link
Contributor

cvbarros commented Nov 7, 2018

I think #220 is waiting review/update that would implement this

@OperationalDev
Copy link
Contributor Author

#220 adds identity groups support. I've reused most of @simonswine contribution to add entity support. See pull request #247

@tyrannosaurus-becks
Copy link
Contributor

I believe this is done! See here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants