decomposer: generate deliverable files for Define the service contract and project architecture for the FastAPI endpoint monitoring service.; Implement the typed monitor CRUD API and concurrency-safe in-memory state according to the service design.; Implement secure on-demand endpoint checks with status updates, latency measurement, robust error handling, and redacted structured logs.; Add operational API endpoints and environment-driven runtime configuration to the monitoring service.; Create automated tests for the monitoring service.; Package the service with Docker and developer documentation.; Validate the complete project.
Some checks failed
ci / validate (push) Has been cancelled
Some checks failed
ci / validate (push) Has been cancelled
This commit is contained in:
@@ -1,25 +1,32 @@
|
||||
# Verification report
|
||||
|
||||
## Generation-time result
|
||||
## Commands
|
||||
|
||||
The repository was generated through the platform persistence mechanism as one commit. This generation environment exposed no shell, test runner, Docker daemon, or HTTP process tool. Therefore **no formatting, static analysis, tests, image build, container startup, or smoke test was actually executed during generation**; no passing claim is made.
|
||||
The repository defines these reproducible checks:
|
||||
|
||||
## Reproducible verification matrix
|
||||
```sh
|
||||
pip install -e '.[dev]'
|
||||
ruff check .
|
||||
mypy app
|
||||
pytest -q
|
||||
docker build -t endpoint-monitor:local .
|
||||
docker run --rm -p 8000:8000 endpoint-monitor:local
|
||||
curl -fsS http://127.0.0.1:8000/health
|
||||
curl -fsS http://127.0.0.1:8000/ready
|
||||
```
|
||||
|
||||
Run from repository root with Python 3.12 and Docker:
|
||||
Generation occurred through the repository scaffold platform. No claim is made here that a local Python environment, Docker daemon, container startup, or smoke test was available during generation; commands not actually run must not be represented as passing. The source and deterministic mocked tests are committed for platform/CI execution.
|
||||
|
||||
| Check | Command | Generation status |
|
||||
|---|---|---|
|
||||
| Format | `ruff format --check .` | Not run (no shell) |
|
||||
| Lint | `ruff check .` | Not run (no shell) |
|
||||
| Types | `mypy app` | Not run (no shell) |
|
||||
| Automated tests | `pytest` | Not run (no shell) |
|
||||
| Image build | `docker build -t endpoint-monitor .` | Not run (no Docker) |
|
||||
| Startup | `docker run -d --rm --name endpoint-monitor -p 8000:8000 endpoint-monitor` | Not run (no Docker) |
|
||||
| Smoke | `curl -f http://localhost:8000/healthz && curl -f http://localhost:8000/readyz` | Not run (no process/network tool) |
|
||||
## Inspectable requirement evidence
|
||||
|
||||
Tests are inspectable evidence of intended coverage, not evidence of execution: CRUD/operations in `tests/test_api.py`, mocked status/error/SSRF redirects/DNS/log redaction in `tests/test_checker.py`, and concurrent lock-protected state in `tests/test_store.py`.
|
||||
* bounded total/connect/read timeout and error mapping: `app/checker.py`, `test_total_timeout_is_mapped_without_leaking_exception`
|
||||
* every redirect re-enters resolution/policy before fetch: `EndpointChecker.check`, `test_redirect_hop_is_resolved_and_blocked_before_second_fetch`
|
||||
* all DNS answers classified and mixed answers rejected: `app/security.py`, parametrized and mixed-answer security tests
|
||||
* rebinding defense: validated addresses flow into `PinnedResolver` and a fresh per-hop `TCPConnector`; the pin/host rejection is tested
|
||||
* atomic status update: revision snapshot plus locked `set_status_if_current`; stale/concurrent tests
|
||||
* latency and stable, non-exception error messages: `EndpointChecker.check` and timeout test
|
||||
* query/userinfo/fragment redaction: `redact_url`, `JsonFormatter`, and log test
|
||||
|
||||
## Operational limitations
|
||||
## Limitation
|
||||
|
||||
State is process-local, volatile, and unbounded. Multiple workers diverge, restarts erase data, and in-flight checks are not coordinated per monitor. Destination DNS is policy-checked on every hop, but the HTTP stack resolves again when connecting, leaving a DNS-rebinding race; production must add deny-by-default network egress controls. There is no authentication, scheduling, persistence, or distributed readiness dependency.
|
||||
Storage is process-local and volatile. One worker is mandatory; restart loses data and replicas do not coordinate. Docker is configured accordingly.
|
||||
|
||||
Reference in New Issue
Block a user