proxy settings is not applied to services
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
snapd |
Fix Released
|
High
|
Zygmunt Krynicki |
Bug Description
snap version 2.44~pre1
core 18
Precondition: snap set system proxy.http=
Expected result:
proxy setting is available to applications and services
Actual result:
proxy is only available to applications
no daemon has proxy settings applied
Closer investigations shows following:
snapd will update /etc/environment with http_proxy value once config is applied
this is then picked by applications, when they are started
But services do not source /etc/environment at all and ignore the configuration.
Quick test shows why, service file is missing line: 'EnvironmentFil
$ systemctl cat snap.hello-
[Unit]
# Auto-generated, DO NOT EDIT
Description=Service for snap application hello-world.
Requires=
Wants=network.
After=snap-
X-Snappy=yes
[Service]
ExecStart=
SyslogIdentifie
Restart=no
WorkingDirector
TimeoutStopSec=30
Type=oneshot
[Install]
WantedBy=
Once service file is updated with 'EnvironmentFil
We likely need to update service file template, otherwise there is different behaviour between apps and daemons
tags: | added: mvo |
Changed in snapd: | |
status: | New → Confirmed |
Changed in snapd: | |
importance: | Undecided → High |
Changed in snapd: | |
status: | Confirmed → In Progress |
assignee: | nobody → Zygmunt Krynicki (zyga) |
milestone: | none → 2.44 |
Changed in snapd: | |
status: | In Progress → Fix Committed |
This is now fixed by https:/ /github. com/snapcore/ snapd/pull/ 8222