- 
                Notifications
    
You must be signed in to change notification settings  - Fork 198
 
Labels
Team:Elastic-Agent-Control-PlaneLabel for the Agent Control Plane teamLabel for the Agent Control Plane team
Description
Elastic agent does not use custom Agent Binary Download settings set in Fleet policy.
How to reproduce:
- Create a non-existing Proxy setting in Fleet (the URL is not important, just check that there's nothing listening for that URL)

 - Create a new 
Agent Binary Downloadentry using the non-existing Proxy created at the previous step

 - Create a Fleet policy that uses the new 
Agent Binary Downloadentry

 - Trigger an upgrade from one of the affected version (tested this on 
9.1.4linux/amd64 elastic-agent) and see the upgrade succeeding even though the configured proxy is not there. The expected behavior is for the upgrade to fail since the packages cannot be downloaded using a non-existing proxy 
This bug has been introduced with #9122: in that PR the following behavior has been implemented
artifactDownloaderis created only once when theUpgraderis instantiated at application startup- artifactDownloader takes a pointer to the download settings at creation and then uses it for downloading packages
 - before the PR, Upgrader would refresh its own settings and use the latest version of those settings to download
 
Metadata
Metadata
Assignees
Labels
Team:Elastic-Agent-Control-PlaneLabel for the Agent Control Plane teamLabel for the Agent Control Plane team