oci-java-sdk icon indicating copy to clipboard operation
oci-java-sdk copied to clipboard

Include KMS key age/update time to calculate the kms key age

Open aunayak opened this issue 6 years ago • 1 comments

Currently to check the age of KMS key we have to do following things

  1. 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.

aunayak avatar Dec 21 '18 08:12 aunayak

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.

frolinek avatar Jan 28 '19 23:01 frolinek

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.

KartikShrikantHegde avatar May 01 '23 22:05 KartikShrikantHegde

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.

KartikShrikantHegde avatar May 19 '23 20:05 KartikShrikantHegde