mirror of
				https://github.com/optim-enterprises-bv/vault.git
				synced 2025-10-31 02:28:09 +00:00 
			
		
		
		
	Load existing CRLs on startup and after invalidate (#17138)
* Load existing CRLs on startup and after invalidate * changelog
This commit is contained in:
		| @@ -14,6 +14,9 @@ func Factory(ctx context.Context, conf *logical.BackendConfig) (logical.Backend, | |||||||
| 	if err := b.Setup(ctx, conf); err != nil { | 	if err := b.Setup(ctx, conf); err != nil { | ||||||
| 		return nil, err | 		return nil, err | ||||||
| 	} | 	} | ||||||
|  | 	if err := b.populateCRLs(ctx, conf.StorageView); err != nil { | ||||||
|  | 		return nil, err | ||||||
|  | 	} | ||||||
| 	return b, nil | 	return b, nil | ||||||
| } | } | ||||||
|  |  | ||||||
|   | |||||||
| @@ -82,6 +82,12 @@ func (b *backend) pathLogin(ctx context.Context, req *logical.Request, data *fra | |||||||
| 		return nil, err | 		return nil, err | ||||||
| 	} | 	} | ||||||
|  |  | ||||||
|  | 	if b.crls == nil { | ||||||
|  | 		if err := b.populateCRLs(ctx, req.Storage); err != nil { | ||||||
|  | 			return nil, err | ||||||
|  | 		} | ||||||
|  | 	} | ||||||
|  |  | ||||||
| 	var matched *ParsedCert | 	var matched *ParsedCert | ||||||
| 	if verifyResp, resp, err := b.verifyCredentials(ctx, req, data); err != nil { | 	if verifyResp, resp, err := b.verifyCredentials(ctx, req, data); err != nil { | ||||||
| 		return nil, err | 		return nil, err | ||||||
|   | |||||||
							
								
								
									
										3
									
								
								changelog/17138.txt
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								changelog/17138.txt
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,3 @@ | |||||||
|  | ```release-note:bug | ||||||
|  | auth/cert: Vault does not initially load the CRLs in cert auth unless the read/write CRL endpoint is hit. | ||||||
|  | ``` | ||||||
		Reference in New Issue
	
	Block a user
	 Scott Miller
					Scott Miller