Skip to content

Commit

Permalink
Merge pull request #5117 from hashicorp/backport/panic-fix/honestly-h…
Browse files Browse the repository at this point in the history
…umble-robin

This pull request was automerged via backport-assistant
  • Loading branch information
hc-github-team-secure-boundary authored Sep 18, 2024
2 parents 0d798a5 + 62bc6fc commit f4d7d81
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions internal/credential/vault/jobs.go
Original file line number Diff line number Diff line change
Expand Up @@ -604,6 +604,9 @@ func (r *CredentialRenewalJob) renewCred(ctx context.Context, c *privateCredenti
if err != nil {
return errors.Wrap(ctx, err, op, errors.WithMsg("unable to renew credential"))
}
if renewedCred == nil {
return errors.New(ctx, errors.Unknown, op, "vault returned empty credential")
}

cred.expiration = time.Duration(renewedCred.LeaseDuration) * time.Second
query, values := cred.updateExpirationQuery()
Expand Down

0 comments on commit f4d7d81

Please sign in to comment.