Skip to content

Monitor considered up whenever TCP succeeds yet TLS failsΒ #7265

Description

@770grappenmaker

πŸ“‘ I have found these related issues/pull requests

I have been unable to find related issues and/or pull requests.

πŸ›‘οΈ Security Policy

πŸ“ Description

As the title says. I have a setup where I am proxying a service that uses TLS. The TCP connection to the proxy succeeds, and I have then configured uptime-kuma to attempt a TLS handshake. The handshake fails, because the remote immediately disconnects, since the backend of the proxy is down. However, the monitor is still up:

Image

πŸ‘Ÿ Reproduction steps

  1. Start some sort of TCP server (netcat?) that immediately disconnects after the first data packet is sent. Alternatively, use some sort of TCP proxy service that points to nothing
  2. Add a monitor to uptime-kuma for this faulty TCP server
  3. Observe the message "TLS connection failed", yet the monitor is up

πŸ‘€ Expected behavior

The monitor is reported as DOWN and the appropriate notifications get sent out

πŸ˜“ Actual Behavior

Monitor stays up even though no successful connection was made whatsoever

🐻 Uptime-Kuma Version

2.2.1

πŸ’» Operating System and Arch

Alpine Linux v3.22 (Linux 6.12.74-0-virt x86_64)

🌐 Browser

Firefox

πŸ–₯️ Deployment Environment

  • Runtime Environment:
    • Docker: Version 28.3.3 (Build 980b85681696fbd95927fd8ded8f6d91bdca95b0)
    • Docker Compose: Version 2.36.2
  • Database:
    • SQLite: Embedded
  • Database Storage:
    • Filesystem:
      • Linux: ext4
    • Storage Medium: NVMe
  • Uptime Kuma Setup:
    • Number of monitors: 10

πŸ“ Relevant log output

There is no relevant log output :(

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature-requestRequest for new features to be added

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions