Skip to content

Commit

Permalink
vaultRotateSecretID: Update logging (#5003)
Browse files Browse the repository at this point in the history
  • Loading branch information
vstarostin authored Aug 15, 2024
1 parent 98e4e01 commit c537a85
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/vaultRotateSecretId.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,12 @@ func runVaultRotateSecretID(utils vaultRotateSecretIDUtils) error {
return nil
}

log.Entry().Debugf("Your secret ID is about to expire in %.0f", ttl.Round(time.Hour*24).Hours()/24)
log.Entry().Infof("Your secret ID is about to expire in %.0f", ttl.Round(time.Hour*24).Hours()/24)

if ttl > time.Duration(config.DaysBeforeExpiry)*24*time.Hour {
return nil
}
log.Entry().Info("Rotating...")

newSecretID, err := utils.GenerateNewAppRoleSecret(GeneralConfig.VaultRoleSecretID, roleName)

Expand Down

0 comments on commit c537a85

Please sign in to comment.