Skip to content

Commit

Permalink
Default crl expiry (hashicorp#17693)
Browse files Browse the repository at this point in the history
  • Loading branch information
JNProtzman authored and jayant07-yb committed Mar 15, 2023
1 parent 6b83162 commit 3d56290
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions builtin/logical/pki/storage.go
Original file line number Diff line number Diff line change
Expand Up @@ -1174,6 +1174,12 @@ func (sc *storageContext) getRevocationConfig() (*crlConfig, error) {
result.Version = 1
}

// Depending on client version, it's possible that the expiry is unset.
// This sets the default value to prevent issues in downstream code.
if result.Expiry == "" {
result.Expiry = defaultCrlConfig.Expiry
}

return &result, nil
}

Expand Down

0 comments on commit 3d56290

Please sign in to comment.