oci-java-sdk
oci-java-sdk copied to clipboard
Include KMS key age/update time to calculate the kms key age
Currently to check the age of KMS key we have to do following things
- List vaults -> list keys ->list key version-> get the last rotated key keyversion and calculate the number of days since its rotated
it id overburden and it would be better if keyage or last rotated date is available wen we list the keys instead of listing keys version and finding it out.
Thank you for the feedback. This seems like a reasonable improvement we can do to make life of our customers easier to follow the compliance and regulatory requirements related to key rotation. I have added this feature into our backlog and we will prioritize it according to other requests and work items.
Hi @aunayak , this seems to be an old issue, but did you try or can you try calculating it by calling GetKey, getting the active key version ocid from that, and call GetKeyVersion, and then getting the timeCreated from that?
Please feel free to give this a try and let us know if you are still facing an issue. Thanks.
Hi @aunayak , I am closing this ticket for now. Please give the above option a try and if you are still facing the issue, please feel free to re-open the ticket. Thanks.