Checks (internal/check/db.go): target host:port; user, password, database, TLS (require = encrypted without verification, verify, disable); SQL types run a query (default SELECT 1) and can compare the first value (expect); MongoDB and Redis ping (Redis: ACL user, database 0–15). All connections through the network guard (MySQL via registered dial functions, SQL Server via connector dialer, MongoDB/Redis/pgx via dialers). Errors never repeat the password.
Secret monitor settings (monitorsecrets.go): check.SecretFields marks them; stored as sealed_<field> (AES-GCM, bound to type and field), stripped from API responses, console and GDPR export (secrets_set names what is set), kept when an edit leaves them empty, opened only when building a checker's job.
Schema: monitor type constraint is now a format check (00035); the check package validates types and settings, so new types need no migration.
Tests: each database against a real server (good and wrong credentials, password not in errors, private addresses refused without permission); API flow with a real checker signing in with the sealed password. Compose profile checks (MariaDB, MongoDB, SQL Server); CI runs MariaDB and MongoDB as services, SQL Server only locally (image too large for ephemeral runners).
Stacked on #99.
**Checks** (`internal/check/db.go`): target `host:port`; user, password, database, TLS (`require` = encrypted without verification, `verify`, `disable`); SQL types run a query (default `SELECT 1`) and can compare the first value (`expect`); MongoDB and Redis ping (Redis: ACL user, database 0–15). All connections through the network guard (MySQL via registered dial functions, SQL Server via connector dialer, MongoDB/Redis/pgx via dialers). Errors never repeat the password.
**Secret monitor settings** (`monitorsecrets.go`): `check.SecretFields` marks them; stored as `sealed_<field>` (AES-GCM, bound to type and field), stripped from API responses, console and GDPR export (`secrets_set` names what is set), kept when an edit leaves them empty, opened only when building a checker's job.
**Schema:** monitor type constraint is now a format check (`00035`); the check package validates types and settings, so new types need no migration.
**Tests:** each database against a real server (good and wrong credentials, password not in errors, private addresses refused without permission); API flow with a real checker signing in with the sealed password. Compose profile `checks` (MariaDB, MongoDB, SQL Server); CI runs MariaDB and MongoDB as services, SQL Server only locally (image too large for ephemeral runners).
Closes #93
🤖 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:17:22 +00:00
Each connects to host:port with the configured credentials and TLS mode,
signs in and runs a query (a ping for MongoDB and Redis), optionally
comparing the first value. Connections go through the network guard, and
errors never repeat the password. Tested against real servers.
Refs #93
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017GpWAskjmYtZpuQ5JwYTX3
Secret monitor settings such as database passwords are stored sealed,
bound to monitor type and field, never returned by the API, the console
or exports, kept when an edit leaves them empty, and opened only for the
checker's job. Monitor types are validated by the check package; the
database only checks their format. Compose gets a checks profile with
MariaDB, MongoDB and SQL Server, and CI tests against MariaDB and
MongoDB.
Closes#93
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017GpWAskjmYtZpuQ5JwYTX3
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Stacked on #99.
Checks (
internal/check/db.go): targethost:port; user, password, database, TLS (require= encrypted without verification,verify,disable); SQL types run a query (defaultSELECT 1) and can compare the first value (expect); MongoDB and Redis ping (Redis: ACL user, database 0–15). All connections through the network guard (MySQL via registered dial functions, SQL Server via connector dialer, MongoDB/Redis/pgx via dialers). Errors never repeat the password.Secret monitor settings (
monitorsecrets.go):check.SecretFieldsmarks them; stored assealed_<field>(AES-GCM, bound to type and field), stripped from API responses, console and GDPR export (secrets_setnames what is set), kept when an edit leaves them empty, opened only when building a checker's job.Schema: monitor type constraint is now a format check (
00035); the check package validates types and settings, so new types need no migration.Tests: each database against a real server (good and wrong credentials, password not in errors, private addresses refused without permission); API flow with a real checker signing in with the sealed password. Compose profile
checks(MariaDB, MongoDB, SQL Server); CI runs MariaDB and MongoDB as services, SQL Server only locally (image too large for ephemeral runners).Closes #93
🤖 Generated with Claude Code
https://claude.ai/code/session_017GpWAskjmYtZpuQ5JwYTX3