Skip to content

ci: fix sshd password auth in the release .deb test - #49

Merged
anhtuank7c merged 3 commits into
mainfrom
ci/release-test-sshd
Nov 24, 2026
Merged

anhtuank7c merged 3 commits into
mainfrom
ci/release-test-sshd

Conversation

@anhtuank7c

Copy link
Copy Markdown
Owner

Summary

The v0.8.0 release run failed in Test .deb (install + functional + uninstall): every test SSH login was refused before reaching PAM, so no auth event and no webhook alert were produced, and Publish signed apt+dnf repo was skipped. The release and its 22 assets are on GitHub, but apt/dnf users do not have 0.8.0 yet.

The test enabled PasswordAuthentication by editing sshd_config, which a drop-in under sshd_config.d overrides (first value wins and the include comes first). Now:

  • writes /etc/ssh/sshd_config.d/00-pamsignal-test.conf (password auth on, keyboard-interactive off so the method stays password as the ECS check expects, UsePAM yes, AllowUsers testpamuser);
  • fails early if sshd -T does not show passwordauthentication yes;
  • prints the ssh client stderr and the sshd journal for the next time something breaks.

No change to pamsignal itself.

Test plan

  • workflow_dispatch from this branch with ref=v0.8.0, attach_to_release=false: every build and test job green, publish skipped as intended (run 45427749805).
  • After merge: gh workflow run release-packages.yml --ref main -f ref=v0.8.0 -f attach_to_release=true to publish 0.8.0 to the apt/dnf repo.

🤖 Generated with Claude Code

anhtuank7c and others added 3 commits November 24, 2026 21:36
The v0.8.0 release run failed in the .deb functional test: all four
test SSH logins failed at once and no PAM auth event reached the
journal, so no alerts were sent and the repo publish was skipped. The
test enabled PasswordAuthentication by editing sshd_config, which a
drop-in under sshd_config.d overrides. Set it in a 00- drop-in, check
the effective value with sshd -T, and print ssh client and sshd output.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@anhtuank7c
anhtuank7c merged commit 36ae697 into main Nov 24, 2026
5 checks passed
@anhtuank7c
anhtuank7c deleted the ci/release-test-sshd branch November 24, 2026 16:53
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.

1 participant