1.1 KiB
1.1 KiB
Phase 1 Test Results
Validation run from /data/code/log-guardian after Phase 1 implementation.
Passed:
gofmt -w cmd internal
go test ./...
make validate-structure
make go-fmt
make go-test
make docker-build
Docker image built successfully as:
gitea.wayfinderak.com/wayfinderak/log-guardian:local
Unit/integration-style tests added:
- Basic auth middleware protects UI routes and leaves
/healthzunauthenticated. - Store defaults include rule cooldown and alert channel secret-preserving updates.
- Loki client label, label-value, and query-range behavior uses
httptestfixtures. - ntfy dispatcher delivery uses an
httptestfixture. - Rule engine suppresses duplicate incidents during cooldown.
Pending live production validation before Phase 1 can be called operationally complete:
- Remote Loki connectivity and label discovery.
- Remote Loki LogQL query validation.
- Self-hosted ntfy test notification received.
- Rule-generated ntfy alert received.
- Remediation dry-run evidence captured from a real rule.
- Security/privacy review of logs, prompts, secrets, alert tokens, and action permissions.