at_server
at_server copied to clipboard
fix: Introduce time duration for apkam keys to auto expire
- What I did
- Introduce APKAM keys to auto expire after specified time duration.
- How I did it
- In at_commons, introduced
Duration apkamKeysExpiryDuration
to capture the time duration set by the user. This time duration is propagated to the secondary server. - In the secondary server, once enrollment is approved, set the TTL value to the
Duration apkamKeysExpiryDuration
in milliseconds. This will ensure that the key expires and is subsequently deleted from the keystore.
- How to verify it
- Added a unit test to verify the changes.
- Description for the changelog
- fix: Introduce time duration for apkam keys to auto expire