Record last usage of ssh-key
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
962bda74e4
commit
947766d2df
1 changed files with 1 additions and 0 deletions
|
@ -65,6 +65,7 @@ EOF
|
||||||
|
|
||||||
if [ $? -eq 0 ]; then
|
if [ $? -eq 0 ]; then
|
||||||
info "[${KEY_NAME}] Should be loaded by now."
|
info "[${KEY_NAME}] Should be loaded by now."
|
||||||
|
vault-patch --log-level=warn secret/ssh-key/${KEY_NAME} last_used=$(date -Iseconds)
|
||||||
else
|
else
|
||||||
error "[${KEY_NAME}] Was not added successfully."
|
error "[${KEY_NAME}] Was not added successfully."
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue