mirror of
				https://github.com/optim-enterprises-bv/vault.git
				synced 2025-10-31 02:28:09 +00:00 
			
		
		
		
	Remove sensitive fields when reading config data (#4216)
* Remove sensitive fields when reading config data * Do not use structs; build and return map explicitly * Revert tag in postgresql * Fix tests
This commit is contained in:
		 Calvin Leung Huang
					Calvin Leung Huang
				
			
				
					committed by
					
						 GitHub
						GitHub
					
				
			
			
				
	
			
			
			 GitHub
						GitHub
					
				
			
						parent
						
							08770c6366
						
					
				
				
					commit
					938b748914
				
			| @@ -86,7 +86,6 @@ func TestBackend_config_connection(t *testing.T) { | ||||
|  | ||||
| 	configData := map[string]interface{}{ | ||||
| 		"connection_url":       "sample_connection_url", | ||||
| 		"value":                "", | ||||
| 		"max_open_connections": 9, | ||||
| 		"max_idle_connections": 7, | ||||
| 		"verify_connection":    false, | ||||
| @@ -110,6 +109,7 @@ func TestBackend_config_connection(t *testing.T) { | ||||
| 	} | ||||
|  | ||||
| 	delete(configData, "verify_connection") | ||||
| 	delete(configData, "connection_url") | ||||
| 	if !reflect.DeepEqual(configData, resp.Data) { | ||||
| 		t.Fatalf("bad: expected:%#v\nactual:%#v\n", configData, resp.Data) | ||||
| 	} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user