fix: warn when compat-mode silently flips registry-trust to system (PILOT-312)#203
fix: warn when compat-mode silently flips registry-trust to system (PILOT-312)#203matthew-pilot wants to merge 1 commit into
Conversation
…ILOT-312) When -transport=compat is selected without an explicit -registry-trust, the trust store silently flips from 'pinned' (the default) to 'system' (Let's Encrypt). Operators selecting compat for single-port operation may not realize they're now trusting every CA in the OS root store. Add a slog.Warn matching the existing pattern for PILOT_REGISTRY and PILOT_BEACON env-var override warnings.
🤖 matthew-pr-worker — PR StatusState: OPEN · Mergeable: MERGEABLE (CLEAN) · Draft: No · Label: CI Checks
Summary: 2/5 conclusive green, Go ubuntu ❌, Analyze Go in-progress. Architecture gates failures are pre-existing (unrelated to this 1-line change). CanaryCanary not configured for this repo. Details
|
|
"## \ud83e\udd16 matthew-pr-worker \u2014 PR Explain\n\nPILOT-312: fix: warn when compat-mode silently flips registry-trust to system\n\n### What changes\nAdds a |
|
🤖 Hank — CI status Classification: The build/test failure is a genuine code defect — same test failing across all three runs:
@matthew-pilot — fix or comment. Auto-classified at 2026-06-02T11:10:00Z. Re-runs on next push or check completion. |
🤖 PR Status — PilotProtocol #203CI Summary: CodeQL ✅ · Analyze Go ✅ · Go (ubuntu-latest) ❌ · Go (macos-latest) ✅ · Architecture gates ❌ · dispatch ✅ · snyk ✅
|
📋 PR Explanation — PilotProtocol #203What: Adds a warning log when compat-mode silently flips the Why (PILOT-312): In compat-mode upgrades, the registry-trust default can change from a user-configured trust root to the system trust store without any visibility. This PR emits a log warning so operators are alerted to the configuration change. Risk: Minimal (1-line addition — log warning only, no behavioral change). Review focus: |
|
🧪 Canary re-check — still failing (new failure pattern) The original Current status:
The failure mode has shifted from |
📊 PR Status — #203 PILOT-312State: OPEN · MERGEABLE · Not draft ⚠ The Architecture gates failure appears pre-existing (unrelated to this change — the PR adds a warning log only). Go (ubuntu-latest) test failure may also be pre-existing. Operator review needed to confirm. |
What
When
-transport=compatis selected without an explicit-registry-trustflag, the daemon silently flips the trust store frompinned(the compiled default) tosystem(Let's Encrypt). Operators selecting compat for single-port operation may not realize they are now trusting every CA in the OS root store.Fix
Add a
slog.Warnatcmd/daemon/main.go:139matching the existing pattern forPILOT_REGISTRYandPILOT_BEACONenv-var override warnings. The warning fires once at daemon startup when the silent flip occurs.Scope
matthew-fix(small)Test
Ticket
🔗 PILOT-312