Repository navigation
[13.4-stable] debug: let sshd offer only publickey login - #6904
Merged
eriknordmark merged 1 commit intoOct 26, 2026
Merged
eriknordmark merged 1 commit into
eriknordmark merged 1 commit into
Conversation
sshd in the debug container ran with Alpine's defaults, which offer password and keyboard-interactive authentication to anyone who connects. No account has a password, so none of those logins could succeed, but that can only be established by inspecting the image, not from the network. Turning both methods off leaves what is allowed unchanged and makes it observable: the evetest port scans now require that SSH offers publickey only. Signed-off-by: eriknordmark <erik@zededa.com> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> (cherry picked from commit 97f726a) Backport note: 14.5-stable builds sshd from source and ships its own pkg/debug/ssh/sshd_config without a sshd_config.d include, so the two directives are appended to that file instead of a drop-in. The eve-debug hash bump in pkg/installer/Dockerfile is left to the usual hash update.
4 of 7 tasks
milan-zededa
requested review from
andrewd-zededa,
christoph-zededa,
naiming-zededa and
zedi-pramodh
October 22, 2026 08:47
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## 13.4-stable #6904 +/- ##
===============================================
+ Coverage 24.78% 32.66% +7.88%
===============================================
Files 8 9 +1
Lines 1138 1090 -48
===============================================
+ Hits 282 356 +74
+ Misses 788 654 -134
- Partials 68 80 +12 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
rene
approved these changes
Oct 25, 2026
6 of 8 tasks
shjala
added a commit
to shjala/eve
that referenced
this pull request
Nov 5, 2026
Build the verified upstream release to include the musl password authentication bypass fix before Alpine 3.22 packages it. Preserve publickey-only access and register the source-built version in the SBOM. Add an isolated regression that reproduces the bypass on 10.6p1 and verifies rejection, publickey login and SFTP on 10.6p2. Signed-off-by: Shahriyar Jalayeri <shahriyar@posteo.de> (cherry picked from commit 8553375) Backport notes: Adapt to the existing source build: bump the verified release, retain GPG verification, remove the utmpx patch already included upstream, install sshd-auth, align helper paths with the shipped SFTP configuration, and add the unchanged master SBOM helper and regression test stage. Refresh the installer debug image hash. Publickey-only authentication is already present via PR lf-edge#6904.
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.
Description
Backport of #6665 to
13.4-stable.Partial backport, cherry-picked with
-xfrom97f726ab16, with a different change of the same effect (the original does not apply). Only thedebug: let sshd offer only publickey logincommit is backported. The evetest port scan commit is part of the evetest backport (#6899) and the remaining commits of the PR do not apply to13.4-stable.13.4-stablebuilds sshd from source and ships its ownpkg/debug/ssh/sshd_configwithout asshd_config.dinclude, soPasswordAuthentication noandKbdInteractiveAuthentication noare appended to that file instead of a drop-in. The Dockerfile hash updates of the original commit are not applied.Without this fix
TestExternalPortScanKVMfails, because the port scan requires that SSH offers publickey only.PR dependencies
None.
How to test and validate this PR
Covered by the evetest test
TestExternalPortScanKVM(added to13.4-stableby #6899):Changelog notes
The SSH server of the debug container now offers only publickey login.
Checklist
For backport PRs (remove it if it's not a backport):
And the last but not least:
check them.