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 not_after for vault_pki_secret_backend_root_cert #2240

Open
mitsutaka opened this issue May 15, 2024 · 0 comments

Comments

@mitsutaka
Copy link

Description

Generating a new certificate of the vault API allows specifying the not_after to set the absolute end date instead of ttl. The documentation for the vault_pki_secret_backend_root_cert resource, this parameter can't currently be set when generating a new certificate in Terraform.

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

  • resource_vault_pki_secret_backend_root_cert

Potential Terraform Configuration

resource "vault_pki_secret_backend_root_cert" "ca" {
  backend  = vault_mount.pki.path
  
  ...

  not_after = "2025-01-01T00:00:00Z"
}

References

https://developer.hashicorp.com/vault/api-docs/secret/pki#not_after

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