Store the unified crl in a path that is not cluster local (#18848)

- I missed this in the original review, that we were storing the
   unified-crl in a cluster-local storage area so none of the other
   hosts would receive it.
 - Discovered while writing unit tests, the main cluster had the unified
   crl but the other clusters would return an empty response
This commit is contained in:
Steven Clark 2023-01-26 09:03:02 -05:00 committed by GitHub
parent d8e36a3916
commit 57ab764d68
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -1969,7 +1969,7 @@ WRITE:
writePath = legacyCRLPath
} else {
if isUnified {
writePath += unifiedCRLPathSuffix
writePath = unifiedCRLPathPrefix + writePath
}
if isDelta {

View File

@ -33,7 +33,7 @@ const (
deltaCRLPathSuffix = "-delta"
unifiedCRLPath = "unified-crl"
unifiedDeltaCRLPath = "unified-delta-crl"
unifiedCRLPathSuffix = "-unified"
unifiedCRLPathPrefix = "unified-"
autoTidyConfigPath = "config/auto-tidy"
clusterConfigPath = "config/cluster"
@ -1118,7 +1118,7 @@ func (sc *storageContext) resolveIssuerCRLPath(reference string, unified bool) (
if crlId, ok := crlConfig.IssuerIDCRLMap[issuer]; ok && len(crlId) > 0 {
path := fmt.Sprintf("crls/%v", crlId)
if unified {
path += unifiedCRLPathSuffix
path = unifiedCRLPathPrefix + path
}
return path, nil