feat(check): gRPC, SMTP, RADIUS and SNMP checks
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
This commit is contained in:
1 parent
302514dc35
commit
03f6e9137f
8 files changed
+675
-4
No files matched your search
@@ -126,7 +126,7 @@ func TestValidate(t *testing.T) {
|
||||
{TCP, "x.test:0", `{}`, "invalid_target"},
|
||||
{DNS, "x.test", `{"record":"SRV"}`, "invalid_record"},
|
||||
{TLS, "x.test:443", `{"min_days_valid":-1}`, "invalid_config"},
|
||||
{"smtp", "x.test", `{}`, "invalid_type"},
|
||||
{"gopher", "x.test", `{}`, "invalid_type"},
|
||||
}
|
||||
for _, tt := range tests {
|
||||
_, err := Validate(tt.typ, tt.target, json.RawMessage(tt.config))
|
||||
|
||||
Reference in new issue
Block a user