Record last usage of ssh-key

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2017-06-19 14:08:55 +02:00
parent 962bda74e4
commit 947766d2df
Signed by: luzifer
GPG key ID: DC2729FDD34BE99E

View file

@ -65,6 +65,7 @@ EOF
if [ $? -eq 0 ]; then
info "[${KEY_NAME}] Should be loaded by now."
vault-patch --log-level=warn secret/ssh-key/${KEY_NAME} last_used=$(date -Iseconds)
else
error "[${KEY_NAME}] Was not added successfully."
fi