mirror of
				https://github.com/apache/cloudstack.git
				synced 2025-11-04 00:02:37 +01:00 
			
		
		
		
	CLOUDSTACK-505: Do not log the command response object for the createSSHKeyPair command.
Signed-off-by: Chip Childers <chip.childers@gmail.com>
This commit is contained in:
		
							parent
							
								
									46b16e5917
								
							
						
					
					
						commit
						e4a5173199
					
				@ -586,7 +586,11 @@ public class ApiServer implements HttpRequestHandler {
 | 
			
		||||
            return;
 | 
			
		||||
        }
 | 
			
		||||
        auditTrailSb.append(" " + HttpServletResponse.SC_OK + " ");
 | 
			
		||||
        auditTrailSb.append(result);
 | 
			
		||||
        if (command.equals("createSSHKeyPair")){
 | 
			
		||||
            auditTrailSb.append("This result was not logged because it contains sensitive data.");
 | 
			
		||||
        } else {
 | 
			
		||||
            auditTrailSb.append(result);
 | 
			
		||||
        }
 | 
			
		||||
        /*
 | 
			
		||||
         * if (command.equals("queryAsyncJobResult")){ //For this command we need to also log job status and job
 | 
			
		||||
         * resultcode for
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user