mirror of
				https://github.com/minio/minio.git
				synced 2025-10-29 15:55:00 -04:00 
			
		
		
		
	Fix: Only add SRV records that match the bucket name exactly (#7957)
Problem: MinIO incorrectly appends DNS SRV records of buckets that have a prefix match with a given bucket. E.g bucket1 would incorrectly get bucket's DNS records too. Solution: This fix ensures that we only add SRV records that match the key exactly
This commit is contained in:
		
							parent
							
								
									0373a1699b
								
							
						
					
					
						commit
						8b5e6e338c
					
				| @ -84,7 +84,7 @@ func (c *coreDNS) Get(bucket string) ([]SrvRecord, error) { | ||||
| 			if record.Key != "" { | ||||
| 				continue | ||||
| 			} | ||||
| 			srvRecords = append(srvRecords, records...) | ||||
| 			srvRecords = append(srvRecords, record) | ||||
| 		} | ||||
| 	} | ||||
| 	if len(srvRecords) == 0 { | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user