Skip to content
New issue

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

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

Already on GitHub? # to your account

vault_ssh_secret_backend_role: Support default_users_template and templated default_user #1616

Closed
laugmanuel opened this issue Sep 26, 2022 · 0 comments · Fixed by #1725
Closed

Comments

@laugmanuel
Copy link
Contributor

Starting with the upcoming Vault 1.12.0, the default_user will be templatable. The Terraform provider should support this quickly, as it removes the burden from the user to supply the default_user on each SSH client auth request.

Terraform Version

Affected Resource(s)

  • vault_ssh_secret_backend_role

Terraform Configuration Files

resource "vault_ssh_secret_backend_role" "client" {
  name                    = "client"
  backend                 = vault_mount.ssh-client.path
  key_type                = "ca"
 
  allowed_users_template  = true
  allowed_users           = "{{ identity.entity.aliases.${vault_jwt_auth_backend.oidc.accessor}.name }}"

  # This should be implemented; this will be available from Vault 1.12.0 onwards
  default_users_template   = true
  default_user              = "{{ identity.entity.aliases.${vault_jwt_auth_backend.oidc.accessor}.name }}"
}

Debug Output

Panic Output

Expected Behavior

Terraform Vault provider supports default_users_template
Documentation is changed

Actual Behavior

currently not supported

Steps to Reproduce

Important Factoids

References

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants