Skip to content

feat(openssh): add config file for PermitRootLogin#17082

Draft
corvus-callidus wants to merge 1 commit intotomls/base/mainfrom
lyrydber/tomls/base/main/permit-root-login
Draft

feat(openssh): add config file for PermitRootLogin#17082
corvus-callidus wants to merge 1 commit intotomls/base/mainfrom
lyrydber/tomls/base/main/permit-root-login

Conversation

@corvus-callidus
Copy link
Copy Markdown
Contributor

@corvus-callidus corvus-callidus commented May 7, 2026

Summary

Add an sshd drop-in config file with PermitRootLogin no.

Change Log
  • Add a drop-in config file to prevent root login via SSH
Does this affect the toolchain?

NO

Associated issues
Links to CVEs
  • N/A
Test Methodology
  • Local build, manual installation and validation on AZL4 VM
  • build server build

Copilot AI review requested due to automatic review settings May 7, 2026 22:02
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request updates the azurelinux-release component to ship an OpenSSH sshd_config.d drop-in that explicitly disables SSH root login by default, and refreshes the rendered spec + component lock fingerprint accordingly.

Changes:

  • Add 50-permit-root-login.conf with PermitRootLogin no under /etc/ssh/sshd_config.d/.
  • Update azurelinux-release spec(s) to include/install/package the new drop-in (and bump Release to 14).
  • Update the azurelinux-release lock input-fingerprint to match the new component inputs.

Reviewed changes

Copilot reviewed 4 out of 5 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
base/comps/azurelinux-release/azurelinux-release.spec Adds Source24, installs the drop-in for variants, updates file lists, bumps Release, and updates changelog.
base/comps/azurelinux-release/50-permit-root-login.conf New sshd drop-in setting PermitRootLogin no.
specs/a/azurelinux-release/azurelinux-release.spec Rendered spec updated to reflect the component spec changes.
specs/a/azurelinux-release/50-permit-root-login.conf Rendered copy of the new sshd drop-in.
locks/azurelinux-release.lock Updated input-fingerprint after component change.

Comment thread base/comps/azurelinux-release/azurelinux-release.spec Outdated
Comment thread base/comps/azurelinux-release/azurelinux-release.spec Outdated
Comment thread base/comps/azurelinux-release/azurelinux-release.spec Outdated
Comment thread base/comps/azurelinux-release/azurelinux-release.spec Outdated
Comment thread base/comps/azurelinux-release/azurelinux-release.spec Outdated
@corvus-callidus corvus-callidus marked this pull request as draft May 7, 2026 23:19
@corvus-callidus corvus-callidus force-pushed the lyrydber/tomls/base/main/permit-root-login branch from 6915dd1 to b7fcf60 Compare May 8, 2026 18:06
Add a config file with the PermitRootLogin setting to no.

Fixes: AB#19769
@corvus-callidus corvus-callidus force-pushed the lyrydber/tomls/base/main/permit-root-login branch from b7fcf60 to 33564b9 Compare May 8, 2026 18:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants