Add Uptime Kuma push alerts for SSH logins with public-key auth context - #459
Draft
sylvainmetayer with Copilot wants to merge 3 commits into
Draft
Add Uptime Kuma push alerts for SSH logins with public-key auth context#459sylvainmetayer with Copilot wants to merge 3 commits into
sylvainmetayer with Copilot wants to merge 3 commits into
Conversation
Co-authored-by: sylvainmetayer <8873695+sylvainmetayer@users.noreply.github.com>
Co-authored-by: sylvainmetayer <8873695+sylvainmetayer@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add notifications for SSH connections using public key
Add Uptime Kuma push alerts for SSH logins with public-key auth context
Aug 13, 2026
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.
This PR implements SSH login notifications end-to-end: each opened SSH session now emits a Uptime Kuma push event, including details of the public key used when available. The goal is to alert on every SSH connection, not just service health.
Terraform: dedicated SSH login push monitor
tofu/pangolin_config/uptime_ssh_login.tfuptimekuma_monitor_push.ssh_loginoutput "uptime_ssh_login_url"for Ansible consumptionAnsible wiring: load monitor URL from shared tfstate
ansible/00-setup.yamlto readpangolin_config.tfstateand set:ssh_login_notification_healthcheck_urlssh_login_notificationrole in base host setup (all,!backups)Host-level SSH notification hook (PAM + sshd)
ansible/roles/ssh_login_notification/usr/local/bin/ssh-login-notifyExposeAuthInfo yesinsshd(/etc/ssh/sshd_config.d/50-expose-auth-info.conf)/etc/pam.d/sshdviapam_execSSH_USER_AUTHis present