Skip to content

packaging(deb/rpm): ship unattended-upgrades whitelist so installs auto-update by default #456

Closed

Description

@Dumbris

Problem

Installing mcpproxy via the apt repo (apt.mcpproxy.app) gives users an updatable package, but unattended-upgrades does not actually upgrade it. Ubuntu's default Allowed-Origins in /etc/apt/apt.conf.d/50unattended-upgrades only whitelists Canonical origins:

o=Ubuntu,a=noble
o=Ubuntu,a=noble-security
o=UbuntuESMApps,a=noble-apps-security
o=UbuntuESM,a=noble-infra-security

Our packages publish under Origin: MCPProxy, Suite: stable (see contrib/linux-repos/apt-ftparchive.conf), so apt list --upgradable lists new versions but the unattended-upgrades cron never pulls them. The user must drop a snippet under /etc/apt/apt.conf.d/ whitelisting o=MCPProxy,a=stable. Undocumented, silently breaks the "I installed via apt = it auto-updates" expectation.

Proposed fix

Ship /etc/apt/apt.conf.d/52unattended-upgrades-mcpproxy as a conffile inside the .deb:

Unattended-Upgrade::Allowed-Origins {
    "MCPProxy:stable";
};

On hosts where unattended-upgrades is installed (default on Ubuntu Server), this immediately enables auto-upgrades for mcpproxy releases.

The .rpm side has an equivalent (dnf-automatic) — worth a follow-up but separate change.

Implementation notes

  • Add the file to packaging/linux/ (e.g. apt-unattended-upgrades.conf).
  • Add a contents entry in packaging/linux/nfpm.yaml with type: config|noreplace so apt treats it as a conffile.
  • Smoke test (contrib/linux-repos/smoke-test-debian.sh) currently only checks mcpproxy --version — extend to assert the conffile exists.

Context

Discovered during a manual-install → deb migration on kubic (Ubuntu 24.04). One of three independent gaps surfaced from one move; see also #455 (migration docs) and the doctor-snap-docker-check issue.

Activity

  1. added a commit that references this issue on Jun 8, 2026
    be927b6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions