Skip to content

[Enhancement]: support not_after on vault_pki_secret_backend_root_sign_intermediate #1991

Open
@jeffreykoetsier

Description

Description

not_after argument is not supported on the vault_pki_secret_backend_root_sign_intermediate resource. This is a valid argument according to the Vault PKI API.

Although ttl argument can be used, it is impossible to use that to set Y10K as a "not valid after" value.

From Vault PKI 'root/sign-intermediate' API:

Set the Not After field of the certificate with specified date value. The value format should be given in UTC format YYYY-MM-ddTHH:MM:SSZ. Supports the Y10K end date for IEEE 802.1AR-2018 standard devices, 9999-12-31T23:59:59Z

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

  • vault_pki_secret_backend_root_sign_intermediate

Potential Terraform Configuration

resource "vault_pki_secret_backend_root_sign_intermediate" "int" {
  backend        = "pki"
  csr            = vault_pki_secret_backend_intermediate_cert_request.int.csr
  common_name    = "My Intermediate"
  not_after      = "9999-12-31T23:59:59Z"
}

References

Would you like to implement a fix?

No

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions