[sec-check] fix: harden sshd drop-in — key-only auth, no root password login - #29
Merged
Merged
Conversation
…disable password auth PermitRootLogin yes + PasswordAuthentication yes shipped in the image exposed brute-forceable remote root login. Switch to key-only auth (PermitRootLogin prohibit-password, PasswordAuthentication no, KbdInteractiveAuthentication no). Refs #28 Signed-off-by: sec-check <sec-check[bot]@users.noreply.github.com>
This was referenced Aug 27, 2026
Merged
hanthor
approved these changes
Sep 2, 2026
hanthor
left a comment
Member
There was a problem hiding this comment.
PermitRootLogin prohibit-password, PasswordAuthentication no, KbdInteractiveAuthentication no — correct hardening. Confirmed only one sshd drop-in file exists in the repo, so there's no conflicting override. CI green.
Generated by Claude Code
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.
Security Fix
Cluster:
files/os/ssh/sshd_config.d/bluefin-server.conf,elements/bluefin-server/os-sshd-config.bst(sshd config only — disjoint from open PXE/installer PRs #22/#25/#26/#27).Shipped sshd drop-in set
PermitRootLogin yes+PasswordAuthentication yes, andzz-enable-sshd.presetenables sshd on first boot — exposing brute-forceable remote root login on every deployed host.Changes:
PermitRootLogin prohibit-password(key-only root access)PasswordAuthentication noKbdInteractiveAuthentication noPreset left untouched — sshd stays available, but key-only. Full removal of the bring-up preset is a maintainer decision tracked in the issue.
Refs #28
Filed by sec-check agent (ACMM L4/L5 — hold-gated mode). Hold-gated: human review required.
— hive: agent=sec-check backend=copilot model=kimi-k3