mirror of
				https://github.com/siderolabs/talos.git
				synced 2025-10-31 00:11:36 +01:00 
			
		
		
		
	fix: panic in osroot controller
Fixes #8753 There seems to be a problem in the machine config anyways, as `machine.ca.crt` is missing for the worker (this should break `apid` connectivity), but still Talos controller shouldn't enter a panic loop. Signed-off-by: Andrey Smirnov <andrey.smirnov@siderolabs.com>
This commit is contained in:
		
							parent
							
								
									e1711cd3c9
								
							
						
					
					
						commit
						ce8c86d640
					
				| @ -165,11 +165,11 @@ func NewRootOSController() *RootOSController { | |||||||
| 					osSecrets.AcceptedCAs = append(osSecrets.AcceptedCAs, &x509.PEMEncodedCertificate{ | 					osSecrets.AcceptedCAs = append(osSecrets.AcceptedCAs, &x509.PEMEncodedCertificate{ | ||||||
| 						Crt: osSecrets.IssuingCA.Crt, | 						Crt: osSecrets.IssuingCA.Crt, | ||||||
| 					}) | 					}) | ||||||
| 				} |  | ||||||
| 
 | 
 | ||||||
| 				if len(osSecrets.IssuingCA.Key) == 0 { | 					if len(osSecrets.IssuingCA.Key) == 0 { | ||||||
| 					// drop incomplete issuing CA, as the machine config for workers contains just the cert | 						// drop incomplete issuing CA, as the machine config for workers contains just the cert | ||||||
| 					osSecrets.IssuingCA = nil | 						osSecrets.IssuingCA = nil | ||||||
|  | 					} | ||||||
| 				} | 				} | ||||||
| 
 | 
 | ||||||
| 				osSecrets.CertSANIPs = nil | 				osSecrets.CertSANIPs = nil | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user