← Back to issue list

Use a craft-providers callback hook to set the apt proxy by an app config

View original Github issue

Metadata

Project
craft-application
Number
#493
Type
issue
State
open
Author
lengau
Labels
Created
Updated
Closed

Current evaluation

Feature request to add an apt_proxy app config option and use a craft-providers callback hook to configure apt proxy in build instances. No maintainer response or labels; only a Jira bot comment. ProxyService exists but lacks apt_proxy config support.

Suggested action: needs triage

Reason: No maintainer has responded, labelled, or assigned this issue (only a Jira bot comment). The proxy service area has been actively developed (PRs #823, #849), but the specific apt_proxy config option is not yet implemented (no matches for 'apt_proxy' in codebase). Needs a maintainer to assess whether this is still wanted given the existing ProxyService architecture.

Impact: 45 Quick Win: 27.0 Staleness: 55 Complexity: 40 Confidence: 65 Support Request: 0

Issue body

### What needs to get done In the provider service, when creating an instance, send a callback to craft-providers (see: https://github.com/canonical/craft-providers/issues/665). The default implementation of this callback should use the config service to get the app's `apt_proxy` configuration and use it to configure the proxy in apt. This is roughly what's done in https://github.com/canonical/craft-application/blob/c971a6098d5c3b93787bca217090af885088e626/craft_application/fetch.py#L388-L405 When doing this, have the fetch service use this. ### Why it needs to get done Allow apt proxies in craft apps

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.8-27b
Impact: 45
Quick Win: 27.0
Staleness: 55
Complexity: 40
Confidence: 65
Support Request: 0
needs triage Feature request to add an apt_proxy app config option and use a craft-providers callback hook to configure apt proxy in build instances. No maintainer response or labels; only a Jira bot comment. ProxyService exists but lacks apt_proxy config support.
qwen/qwen3.6-35b-a3b
Staleness: 85
Complexity: 45
Confidence: 80
Support Request: 5
needs triage Feature request to implement a craft-providers callback hook for configuring apt proxy via app config. Currently unlabelled, inactive for over a year, awaiting maintainer assessment.
qwen3.6-35b-a3b-mtp-q6
Staleness: 85
Complexity: 40
Confidence: 80
Support Request: 10
needs triage Feature request to implement a craft-providers callback hook for configuring apt proxy via app settings. Unlabelled, inactive for over a year, awaiting maintainer triage and prioritization.
qwen3.6-35b-a3b-mtp-q6
Staleness: 90
Complexity: 40
Confidence: 85
Support Request: 5
close stale Implement a craft-providers callback hook to configure apt proxy via application settings. Inactive for over a year with no assignee or recent activity. Implementation is pending despite an existing Jira ticket.

Update history

No update history recorded yet.

Related work

  • Related To: craft-application#823 (confidence 75%)

    Added ProxyService which handles apt/pip/snapd proxy configuration in instances, but does not yet support an apt_proxy app config option.

  • Related To: craft-application#849 (confidence 70%)

    Early proxy configuration in instances via prepare_instance callback, the mechanism this issue would build upon.

Related issues

Issue Project State Summary Similarity
#828 Allow getting the apt proxy from the user's apt settings craft-providers open Enhancement to use user's apt proxy settings in craft-providers. Open 353 days with no maintainer comments or activity.
73%