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

[Enhancement]: Allow setting num_uses and ttl for vault_approle_auth_backend_role_secret_id #2236

Closed
nwallace83 opened this issue May 8, 2024 · 0 comments · Fixed by #2345

Comments

@nwallace83
Copy link

Description

Generating an AppRole secret_id in the vault API allows specifying the num_uses and ttl as long as they are lower then the default value of the role. Per the documentation for the vault_approle_auth_backend_role_secret_id resource, these parameters can't currently be set when generating a secret_id in Terraform.

Affected Resource(s) and/or Data Source(s)

vault_approle_auth_backend_role_secret_id

Potential Terraform Configuration

resource "vault_approle_auth_backend_role_secret_id" "id" {
  backend   = vault_auth_backend.approle.path
  role_name = vault_approle_auth_backend_role.example.role_name

  ttl       = 3600
  num_users = 100
}

References

https://developer.hashicorp.com/vault/api-docs/auth/approle#generate-new-secret-id
https://registry.terraform.io/providers/hashicorp/vault/latest/docs/resources/approle_auth_backend_role_secret_id

Would you like to implement a fix?

None

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