Repository navigation
packaging(deb): ship unattended-upgrades whitelist so installs auto-update - #458
Merged
Merged
Conversation
…pdate Drop /etc/apt/apt.conf.d/52unattended-upgrades-mcpproxy as a deb conffile whitelisting the MCPProxy:stable apt origin. Without this, unattended-upgrades sees new releases in `apt list --upgradable` but never installs them because Ubuntu's default Allowed-Origins only covers Canonical origins. The deb is flagged "auto-updating" today only in spirit; this makes it true in practice on every host that runs the standard `unattended-upgrades` cron. Marked as `type: "config|noreplace"` + `packager: deb` so: - user edits survive package upgrades - apt removes it on purge - the file is skipped when nfpm builds .rpm (dnf-automatic uses a different config schema; tracking as a follow-up rather than shipping the wrong file) Extend smoke-test-debian.sh to assert the conffile is present and references the correct origin so future packaging refactors can't drop it silently. Closes #456 Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
Deploying mcpproxy-docs with
|
| Latest commit: |
8f54c91
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://c6493940.mcpproxy-docs.pages.dev |
| Branch Preview URL: | https://pkg-auto-update-conffile.mcpproxy-docs.pages.dev |
Contributor
📦 Build ArtifactsWorkflow Run: View Run Available Artifacts
How to DownloadOption 1: GitHub Web UI (easiest)
Option 2: GitHub CLI gh run download 25781785628 --repo smart-mcp-proxy/mcpproxy-go
|
electrolobzik
added a commit
to HaloCollar/mcpproxy-go
that referenced
this pull request
May 16, 2026
Brings in upstream's 9 commits since 2b9b5f9: - 0597762 fix(upstream): stop misclassifying transport errors as auth failures (smart-mcp-proxy#464) - aaec117 fix(diagnostics): correct bug-report URL (smart-mcp-proxy#465) - d27fa38 feat(server-detail): display + edit headers/env, with reveal & convert-to-secret (smart-mcp-proxy#466) - c086770 feat(webui): per-tool enable/disable + bulk Enable All/Disable All (smart-mcp-proxy#463) - 0ef75a8 chore(docs): remove stale root-level docs - 4b4b62a fix(ui): respect engaged flag in sidebar Setup pulse (smart-mcp-proxy#462) - 24aab3d docs(installation): add migrating-from-manual-install section (smart-mcp-proxy#459) - 9b79254 feat(doctor): surface snap-docker override hint when host needs it (smart-mcp-proxy#460) - be927b6 packaging(deb): ship unattended-upgrades whitelist so installs auto-update (smart-mcp-proxy#458) Conflicts resolved: 1. internal/management/service_test.go — purely additive on upstream's side (3 new headers/env t.Run blocks). Halo-main had no overlapping test work. Took upstream's additions verbatim. 2. oas/docs.go + oas/swagger.yaml — auto-generated by swaggo from Go annotations in source. Took --theirs on the conflict then regenerated with `make swagger` against the merged source so both halo-main- and upstream-introduced REST endpoints are reflected. Note on upstream's c086770 (per-tool enable/disable, upstream's version of smart-mcp-proxy#463): halo-main already has its own per-tool enable/disable work (via feat/per-tool-enable-disable + the security-hardening stack on top — admin gating, isToolCallable fail-closed, sentinel-error quarantine synthesis, etc.). The upstream version produced no merge conflicts because the file-level diffs aligned cleanly — the fork's hardening sits atop the same surface upstream landed. Sanity-checked: - `go build ./...` succeeds. - `go test -short ./internal/management/ ./internal/runtime/ ./internal/httpapi/ ./internal/storage/ ./cmd/generate-types/` passes. - internal/server pre-existing sandbox-environment flake (TestBinaryAPIEndpoints/GET_/servers) was verified to fail on pre-merge halo-main (ad31fde) too — not a regression.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
/etc/apt/apt.conf.d/52unattended-upgrades-mcpproxyas a deb conffile that whitelists theMCPProxy:stableorigintype: "config|noreplace"+packager: deb— user edits survive upgrades, apt removes on purge, rpm builds skip this filesmoke-test-debian.shto assert the conffile ships and references the right originWhy
Without this,
unattended-upgradeslists new mcpproxy releases as upgradable but never installs them — Ubuntu's defaultAllowed-Originsonly whitelists Canonical's origins. So the deb today auto-updates only when the user runsapt upgradeby hand. This 23-line change makes "I installed via the apt repo" actually mean "I get new releases automatically", which is what the project claims and what every other apt-managed package does.The
.rpmside has the analog problem withdnf-automaticbut the config schema is different (/etc/dnf/automatic.confis a full INI, not a drop-in dir). I'm not shipping a half-baked rpm fix in the same PR — that needs separate thinking. Tracked in #456.Test plan
nfpm package. Verified/etc/apt/apt.conf.d/52unattended-upgrades-mcpproxyappears indata.tar.gzand is listed inconffiles.Unattended-Upgrade::Allowed-Origins { "MCPProxy:stable"; };.contrib/linux-repos/smoke-test-debian.sh) re-run on next release — extended assertion will catch any regression where the file is dropped.sudo unattended-upgrade --dry-run --debug, verifyo=MCPProxy,a=stableappears inAllowed origins.Closes #456.
🤖 Generated with Claude Code