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:
parent
d8e36a3916
commit
57ab764d68
|
@ -1969,7 +1969,7 @@ WRITE:
|
|||
writePath = legacyCRLPath
|
||||
} else {
|
||||
if isUnified {
|
||||
writePath += unifiedCRLPathSuffix
|
||||
writePath = unifiedCRLPathPrefix + writePath
|
||||
}
|
||||
|
||||
if isDelta {
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue