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]: Support allowed_domains as HCL list instead of CSV string on vault_ssh_secret_backend_role #2333

Open
smaddock opened this issue Sep 29, 2024 · 0 comments

Comments

@smaddock
Copy link

smaddock commented Sep 29, 2024

Description

Currently the allowed_domains field of the vault_ssh_secret_backend_role resource accepts multiple domains as a comma-separated string. HCL supports lists natively, but using one currently returns:

Inappropriate value for attribute "allowed_domains": string required.

This makes configurations less readable, harder to debug, and requires more overhead to concatenate the string.

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

  • vault_ssh_secret_backend_role

Potential Terraform Configuration

resource "vault_ssh_secret_backend_role" "host" {
  allow_host_certificates = true
  allowed_domains         = ["host1.com", "host2.com"]
  backend                 = vault_mount.ssh.path
  key_type                = "ca"
  name                    = "host"
}

References

No response

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
Development

No branches or pull requests

1 participant