Remove SSH_AGENT_PID forwarding
This variable plays no role in using the agent for authentication, only in managing its life-cycle. Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
This commit is contained in:
		
				
					committed by
					
						
						Daniel Wagner
					
				
			
			
				
	
			
			
			
						parent
						
							82b0034bac
						
					
				
				
					commit
					ecbda0494b
				
			@@ -83,9 +83,8 @@ Environment variables
 | 
				
			|||||||
|                       | build servers. On desktop machines, an ssh-agent    |
 | 
					|                       | build servers. On desktop machines, an ssh-agent    |
 | 
				
			||||||
|                       | running outside the kas environment is more useful. |
 | 
					|                       | running outside the kas environment is more useful. |
 | 
				
			||||||
+-----------------------+-----------------------------------------------------+
 | 
					+-----------------------+-----------------------------------------------------+
 | 
				
			||||||
| ``SSH_AGENT_PID``     | SSH agent process id and authentication socket.     |
 | 
					| ``SSH_AUTH_SOCK``     | SSH authentication socket. Used for cloning over    |
 | 
				
			||||||
| ``SSH_AUTH_SOCK``     | Used for cloning over SSH (alternative to           |
 | 
					|                       | SSH (alternative to ``SSH_PRIVATE_KEY``).           |
 | 
				
			||||||
|                       | ``SSH_PRIVATE_KEY``).                               |
 | 
					 | 
				
			||||||
+-----------------------+-----------------------------------------------------+
 | 
					+-----------------------+-----------------------------------------------------+
 | 
				
			||||||
| ``DL_DIR``            | Environment variables that are transferred to the   |
 | 
					| ``DL_DIR``            | Environment variables that are transferred to the   |
 | 
				
			||||||
| ``SSTATE_DIR``        | bitbake environment.                                |
 | 
					| ``SSTATE_DIR``        | bitbake environment.                                |
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -103,7 +103,7 @@ class Context:
 | 
				
			|||||||
                            'No default locales set.', distro_bases)
 | 
					                            'No default locales set.', distro_bases)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        for key in ['http_proxy', 'https_proxy', 'ftp_proxy', 'no_proxy',
 | 
					        for key in ['http_proxy', 'https_proxy', 'ftp_proxy', 'no_proxy',
 | 
				
			||||||
                    'SSH_AGENT_PID', 'SSH_AUTH_SOCK']:
 | 
					                    'SSH_AUTH_SOCK']:
 | 
				
			||||||
            val = os.environ.get(key, None)
 | 
					            val = os.environ.get(key, None)
 | 
				
			||||||
            if val:
 | 
					            if val:
 | 
				
			||||||
                self.environ[key] = val
 | 
					                self.environ[key] = val
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -261,7 +261,7 @@ def get_build_environ():
 | 
				
			|||||||
        extra_white = env['BB_ENV_EXTRAWHITE'] + ' ' + ' '.join(env_vars)
 | 
					        extra_white = env['BB_ENV_EXTRAWHITE'] + ' ' + ' '.join(env_vars)
 | 
				
			||||||
        env.update({'BB_ENV_EXTRAWHITE': extra_white})
 | 
					        env.update({'BB_ENV_EXTRAWHITE': extra_white})
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    env_vars.extend(['SSH_AGENT_PID', 'SSH_AUTH_SOCK',
 | 
					    env_vars.extend(['SSH_AUTH_SOCK',
 | 
				
			||||||
                     'SHELL', 'TERM',
 | 
					                     'SHELL', 'TERM',
 | 
				
			||||||
                     'GIT_PROXY_COMMAND', 'NO_PROXY'])
 | 
					                     'GIT_PROXY_COMMAND', 'NO_PROXY'])
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user