← 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 use craft-providers' prepare_instance callback to set apt proxy from app config; upstream callback exists, but apt_proxy config is not yet implemented in craft-application.

Suggested action: keep open

Reason: Valid maintainer-filed enhancement. The prerequisite craft-providers#665 was implemented by merged PR #788, and craft_application/services/provider.py already accepts a prepare_instance callback, but repository search shows no apt_proxy configuration in craft-application, so the requested work remains.

Evaluated by: mr-cal-bot

Impact: 50 Quick Win: 16 Complexity: 55 Confidence: 70 Actionability: 70

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
~deepseek/deepseek-pro-latest
Impact: 50
Quick Win: 16
Complexity: 55
Confidence: 70
Actionability: 70
keep open Feature request to use craft-providers' prepare_instance callback to set apt proxy from app config; upstream callback exists, but apt_proxy config is not yet implemented in craft-application.
stealth/space-bunny-alpha
Impact: 45
Quick Win: 19
Complexity: 35
Confidence: 82
Actionability: 65
needs triage Add a provider warmup callback that configures apt from the app's apt_proxy setting and use it for fetch-service instances; the upstream hook is available via craft-providers PR #788.
qwen/qwen3.6-35b-a3b
Impact: 30
Quick Win: 11
Complexity: 40
Confidence: 70
Actionability: 60
needs triage Feature request to add apt proxy configuration via callback hook in craft-application, blocked on craft-providers#665. No labels or maintainer assessment yet.
qwen/qwen3.8-27b
Impact: 45
Quick Win: 27
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.

Update history

No update history recorded yet.

Related work

Related issues

No related issues found above the similarity threshold.