maintenance: extend SFTP connection options #4293
All Vouch review confidence checks passed
Residual risk 0.17 = Change Risk (0.42) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.42 · 336 lines diff across 4 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.348
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #4293"
general
weight: 0.35
Duansg
Summary
Upgrade behavior
This is an intentional fail-closed change for 1.9.0. Existing SFTP monitors are not automatically migrated to skip verification. Before or immediately after upgrading, operators must either:
1. obtain and verify the server fingerprint through a trusted channel, then configure one or more
SHA256:...values; or2. explicitly select the dangerous skip-verification option as a short-lived recovery measure.
Until one of those policies is configured, the affected SFTP monitor reports a configuration error and does not connect. Plain FTP monitors are unchanged.
ssh-keyscanis documented only as a way to retrieve a key, not as proof of identity. Operators must compare the resulting fingerprint through a trusted channel.Regression proof
"false"strings are normalized as disabled rather than treated as truthy.Validation
FtpProtocolTest: 10 passed.FtpCollectImplTest: 8 passed../mvnw -pl hertzbeat-startup -am -DskipTests package: all 24 reactor modules passed.git diff --check: passed.AI assistance: used for draft implementation and test iteration.
Human validation: failing-first protocol and UI contracts, focused backend/frontend tests, Checkstyle, ESLint, source package proof, and production frontend build all passed.
Risk notes: existing SFTP monitors without an explicit policy fail closed after upgrade; the upgrade guide documents the required operator action and temporary recovery option.