In issue #882 the reference to vaults was added to the Keys and Secrets have been added.
Unfortunately, the information provided for Keys is limited.
In the current implementation, key information is gathered using a search query. Although this is fine, it gives limited information regarding a single key.
Using the get_key API call will provide a lot more information including:
- autoKeyRotationDetails
- isAutoRotationEnabled
- isPrimary
- protectionMode
- replicaDetails
- restoredFromKeyId
- timeOfDeletion
Based on the Key OCID, also the key versions can be obtained (using API call list_key_versions or get_key_version)
The same is actually true for secrets as well. The current solution provides information regarding secrets using a search query. This provides minimal information, but no detailed information using the get_secret API calls.
Why is this interesting to know? If I know the creation date of the current key or secret version, I can calculate when to rotate the key or secret based on customer specific requirements and notify the Admin in advance. This is currently not possible, as only the key creation date is available.
Hope this makes sense and can be considered as a usefull addition for a future release.
Kind regards,
Herman
In issue #882 the reference to vaults was added to the Keys and Secrets have been added.
Unfortunately, the information provided for Keys is limited.
In the current implementation, key information is gathered using a search query. Although this is fine, it gives limited information regarding a single key.
Using the get_key API call will provide a lot more information including:
Based on the Key OCID, also the key versions can be obtained (using API call list_key_versions or get_key_version)
The same is actually true for secrets as well. The current solution provides information regarding secrets using a search query. This provides minimal information, but no detailed information using the get_secret API calls.
Why is this interesting to know? If I know the creation date of the current key or secret version, I can calculate when to rotate the key or secret based on customer specific requirements and notify the Admin in advance. This is currently not possible, as only the key creation date is available.
Hope this makes sense and can be considered as a usefull addition for a future release.
Kind regards,
Herman