Page MenuHomeVyOS Platform

Commit-Archive Save doesn't use https_proxy
Open, NormalPublicBUG

Description

Hey,

we tried to use the git+https commit-archive backend, but were unable to use it as we need to use a proxy for outside communication.
The reason for this is that the git subprocess is being called without the https_proxy environment variable that we set in the vyos config.

I found the lines where the environment for git were defined and when I added the correct environment var the commits were able to be saved in git.
https://github.com/vyos/vyos-1x/blob/72e597d5c258b1730d59d9f8cd08331338cee5b5/python/vyos/remote.py#L361-L367

Thanks!

Best regards,
modzilla

Details

Version
ep1
Is it a breaking change?
Perfectly compatible
Issue type
Bug (incorrect behavior)

Event Timeline

Viacheslav changed the task status from Open to Needs reporter action.Apr 23 2024, 5:09 PM
Viacheslav subscribed.

@modzilla99 Could you provide an example of set commands to reproduce?

Hey,

sorry for the late reply.You don't need any special commands. The only thing you have to set is the proxy and the commit archive.

set system config-management commit-archive location 'git+https://vyos:abc@git.myorg.com/infrastructure/vyos-configuration'
set system proxy port '8888'
set system proxy url 'http://10.7.2.100'

Best regards,
Justin Lamp

Viacheslav changed the task status from Needs reporter action to Open.May 16 2024, 7:55 AM

looks like the problem was fixed in this task: T7048

https://github.com/vyos/vyos-1x/pull/4303

System-wide proxy config will implemented here https://vyos.dev/T1741 and still work correctly for all new sessions