feat: gRPC, SMTP, RADIUS and SNMP checks #103

Merged
Sebi merged 3 commits from feat/protocol-checks into main 2026-11-22 17:53:06 +00:00
Owner

Stacked on #102.

  • gRPC: standard health service (grpc.health.v1), whole server or one service; must be SERVING. TLS verify/require/disable.
  • SMTP: greeting + EHLO; with encryption STARTTLS must succeed (verified or not), or implicit TLS for port 465.
  • RADIUS: Access-Request with user/password, signed with a Message-Authenticator (servers hardened against BlastRADIUS require it). Accept/Challenge = up; reject shows the Reply-Message; a wrong shared secret is reported as such.
  • SNMP v1/v2c: reads one OID; conditions any/eq/ne/contains and numeric gt/ge/lt/le. A silent agent gets a hint about community/version. (v3 is not included.)

Secrets: RADIUS secret and password, SNMP community — sealed, never returned (secrets_set). Redaction no longer touches dial errors, and replaces secrets of any length only where they stand alone (password=pw, user:pw@host, 'pw') plus their URL-encoded forms — short secrets used to garble whole messages.

Tests: all four against in-process servers (gRPC health server, SMTP with STARTTLS/SMTPS and a self-signed certificate, RADIUS server, SNMP agent built on gosnmp's codec); private addresses refused; API test that secrets never reach responses or the editor.

Closes #95

🤖 Generated with Claude Code

https://claude.ai/code/session_017GpWAskjmYtZpuQ5JwYTX3

Stacked on #102. - **gRPC:** standard health service (`grpc.health.v1`), whole server or one service; must be `SERVING`. TLS verify/require/disable. - **SMTP:** greeting + EHLO; with encryption STARTTLS must succeed (verified or not), or implicit TLS for port 465. - **RADIUS:** Access-Request with user/password, signed with a Message-Authenticator (servers hardened against BlastRADIUS require it). Accept/Challenge = up; reject shows the Reply-Message; a wrong shared secret is reported as such. - **SNMP v1/v2c:** reads one OID; conditions any/eq/ne/contains and numeric gt/ge/lt/le. A silent agent gets a hint about community/version. (v3 is not included.) Secrets: RADIUS secret and password, SNMP community — sealed, never returned (`secrets_set`). Redaction no longer touches dial errors, and replaces secrets of any length only where they stand alone (`password=pw`, `user:pw@host`, `'pw'`) plus their URL-encoded forms — short secrets used to garble whole messages. **Tests:** all four against in-process servers (gRPC health server, SMTP with STARTTLS/SMTPS and a self-signed certificate, RADIUS server, SNMP agent built on gosnmp's codec); private addresses refused; API test that secrets never reach responses or the editor. Closes #95 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_017GpWAskjmYtZpuQ5JwYTX3
Sebi added this to the M11 Uptime Kuma parity milestone 2026-11-22 15:51:35 +00:00
Sebi changed target branch from feat/messaging-checks to main 2026-11-22 17:52:40 +00:00
Sebi added 3 commits 2026-11-22 17:52:40 +00:00
gRPC asks the standard health service, optionally about one service.
SMTP waits for the greeting, says EHLO and, unless disabled, requires
STARTTLS or connects with implicit TLS. RADIUS sends an Access-Request
signed with a Message-Authenticator and tells a rejected login from a
wrong shared secret. SNMP v1/v2c reads one OID and compares its value
textually or numerically, hinting at the community when the agent stays
silent. All go through the network guard. Errors from dialing are no
longer passed through redaction, and secrets shorter than four
characters are left in messages instead of garbling them.

Refs #95

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017GpWAskjmYtZpuQ5JwYTX3
feat: protocol monitors in the editor and API docs
ci / image (pull_request) Successful in 2m57s
ci / lint (pull_request) Canceled after 12m11s
ci / test (pull_request) Canceled after 12m0s
ci / build (pull_request) Successful in 8m16s
365152d164
Editor fields and translations for gRPC, SMTP, RADIUS and SNMP; the
RADIUS secret and password and the SNMP community are sealed like other
monitor secrets.

Closes #95

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017GpWAskjmYtZpuQ5JwYTX3
fix(check): redact secrets of any length without garbling messages
ci / build (pull_request) Successful in 11m57s
ci / test (pull_request) Successful in 7m28s
ci / image (pull_request) Successful in 4m28s
ci / lint (pull_request) Successful in 12m16s
8b30ab4e79
Skipping secrets under four characters left short passwords readable
whenever a client repeated them. Secrets are now replaced wherever they
stand alone, as clients print them (password=pw, user:pw@host, 'pw'),
but not inside longer words, and their URL-encoded forms are replaced
too, which connection URLs in errors carry.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017GpWAskjmYtZpuQ5JwYTX3
Sebi merged commit 10ac23582b into main 2026-11-22 17:53:06 +00:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: ZB-Server/uptimesebi#103