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

key_name parameter ignored in vault_pki_secret_backend_intermediate_cert_request resource creation #1943

Closed
sestegra opened this issue Jul 16, 2023 · 0 comments · Fixed by #1973

Comments

@sestegra
Copy link
Contributor

sestegra commented Jul 16, 2023

Terraform Version

Terraform v1.5.3 on linux_amd64
Vault v1.14.0 (13a649f860186dffe3f3a4459814d87191efc321), built 2023-06-19T11:40:23Z

Affected Resource(s)

  • vault_pki_secret_backend_intermediate_cert_request

Terraform Configuration Files

resource "vault_mount" "pki_int" {
  path                  = "pki_int"
  type                  = "pki"
  description           = "PKI engine hosting intermediate CA"
  max_lease_ttl_seconds = 157680000
}

resource "vault_pki_secret_backend_intermediate_cert_request" "csr" {
  backend      = vault_mount.pki_int.path
  type         = "internal"
  organization = "Example"
  common_name  = "Example Intermediate CA"
  key_type     = "ec"
  key_bits     = 256
  key_name     = "my_key"
}

Debug Output

N/A

Panic Output

N/A

Expected Behavior

The generated private key should be named my_key.

Actual Behavior

The generated private key has no name.

Steps to Reproduce

  1. terraform init
  2. terraform apply
  3. vault list -detailed pki_int/keys
Keys                                    is_default    key_name
----                                    ----------    --------
b3d64a33-6e49-ae16-43de-dc62981a1680    true          n/a

Important Factoids

N/A

References

N/A

sestegra added a commit to sestegra/terraform-provider-vault that referenced this issue Jul 16, 2023
Signed-off-by: Stéphane Este-Gracias <sestegra@gmail.com>
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant