mirror of
				https://github.com/grafana/grafana.git
				synced 2025-02-25 18:55:37 -06:00 
			
		
		
		
	redact provider_config (#5915)
This commit is contained in:
		
				
					committed by
					
						
						Torkel Ödegaard
					
				
			
			
				
	
			
			
			
						parent
						
							5b9366a9c3
						
					
				
				
					commit
					5ba6bab237
				
			@@ -190,7 +190,7 @@ func ToAbsUrl(relativeUrl string) string {
 | 
			
		||||
 | 
			
		||||
func shouldRedactKey(s string) bool {
 | 
			
		||||
	uppercased := strings.ToUpper(s)
 | 
			
		||||
	return strings.Contains(uppercased, "PASSWORD") || strings.Contains(uppercased, "SECRET")
 | 
			
		||||
	return strings.Contains(uppercased, "PASSWORD") || strings.Contains(uppercased, "SECRET") || strings.Contains(uppercased, "PROVIDER_CONFIG")
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func shouldRedactURLKey(s string) bool {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user