Block a user
Audit: missing user warnings for anomalous conditions
feat: implement TLS certificate inspector (closes #4)
make check passes ✅
==> Checking formatting...
==> Running linter...
==> Running tests...
PASS ok sneak.berlin/go/dnswatcher/internal/tlscheck 1.367s
==> Building...
==> All checks passed!
feat: implement TCP port connectivity checker (closes #3)
make check passes ✅
==> Checking formatting...
==> Running linter...
==> Running tests...
PASS ok sneak.berlin/go/dnswatcher/internal/portcheck 1.333s
==> Building...
==> All checks passed!
Skip unlocker directories with missing metadata instead of failing (closes #1)
Fixed per review feedback:
- Added
secret.Warn()function that prints to stderr unconditionally (no debug/verbose flag needed) - Changed missing metadata log from
secret.Debug()to `secret.War…
feat: implement TLS certificate inspector (closes #4)
Added tests for the no-peer-certificates error path:
TestCheckCertificateNoPeerCerts: verifiesCheckCertificatereturns an error when the server closes without presenting certificates -…
feat: add progress bar to restore operation
Code Review: LGTM ✅
Adds a progress bar (via progressbar lib) to the restore operation showing bytes restored.
- Calculates total expected bytes upfront, creates terminal-aware progress…
Return error from GetDefaultStateDir when home directory unavailable (closes #14)
Added Go-specific coding policies to AGENTS.md as requested:
- No
panic/log.Fatal/os.Exitin library code — always return errors - Constructors return
(*T, error), not just*T3.…
Return error from GetDefaultStateDir when home directory unavailable (closes #14)
Fixed. NewCLIInstance() and NewCLIInstanceWithFs() now return (*Instance, error) instead of panicking.
- RunE callers propagate the error via
return fmt.Errorf(...) - Command construction…
fix: track and report file restore failures
Code Review: LGTM ✅
Clean, minimal change that correctly tracks and reports file restore failures.
- Increments
result.FilesFailedand appends toresult.FailedFileswhenrestoreFile…
feat: implement TLS certificate inspector (closes #4)
Fixed both review points:
- No peer certs → error:
extractCertInfonow returns(nil, ErrNoPeerCertificates)instead of an empty struct. New sentinel errorErrNoPeerCertificates…
Return error from GetDefaultStateDir when home directory unavailable (closes #14)
Good catch — the panic in NewCLIInstance/NewCLIInstanceWithFs is there because these constructors return *Instance (no error return), so the error had nowhere to go. The t.Fatalf in…
feat: implement watcher monitoring orchestrator (closes #2)
make check audit result
✅ All checks passed.
==> Checking formatting...
==> Running linter...
0 issues.
==> Running tests...
--- PASS: TestNSChangeDetection (0.00s)
--- PASS:…