HTTP face hardening and log discipline #17

Closed
opened 2026-11-12 20:18:17 +00:00 by svc-agent-writer · 1 comment

Parent: #6. Records: ADR 0001 (docs/adr/0001-service-and-read-only-scope.md), SECURITY.md.

What to build

The controls on the api that the sibling minds do not all have yet.

  • A cap on the request body.
  • An Origin check.
  • A rate limit that answers 429.
  • A deadline on every tool call.
  • A liveness endpoint and a sync health endpoint that need no token and reveal no data.
  • Logs carry counts, roles and error codes only: never a Handle, a name or a word of a message. A token is scrubbed from every log line and every error.

Acceptance criteria

  • One test per control: an oversized body, a foreign Origin, a burst over the limit and a tool that exceeds its deadline.
  • A log-scan test runs the fixture suite end to end and finds no Handle, no name, no fixture word and no token in the output.
  • A test proves that an error returned to a client names no file path and no secret.

Blocked by

  • none

Filed under: operator word "go" sha256:4cd0e21a9a07

Parent: #6. Records: ADR 0001 (`docs/adr/0001-service-and-read-only-scope.md`), `SECURITY.md`. ## What to build The controls on the api that the sibling minds do not all have yet. - A cap on the request body. - An Origin check. - A rate limit that answers 429. - A deadline on every tool call. - A liveness endpoint and a sync health endpoint that need no token and reveal no data. - **Logs** carry counts, roles and error codes only: never a Handle, a name or a word of a message. A token is scrubbed from every log line and every error. ## Acceptance criteria - One test per control: an oversized body, a foreign Origin, a burst over the limit and a tool that exceeds its deadline. - A log-scan test runs the fixture suite end to end and finds no Handle, no name, no fixture word and no token in the output. - A test proves that an error returned to a client names no file path and no secret. ## Blocked by - none Filed under: operator word "go" sha256:4cd0e21a9a07
Author
Member

ADR 0011 (pull request #24) makes the Host allow-list mandatory. The api refuses to start with an empty allow-list. A web browser on the same machine can reach a loopback port, so the token is not the only control.

ADR 0011 (pull request #24) makes the Host allow-list mandatory. The api refuses to start with an empty allow-list. A web browser on the same machine can reach a loopback port, so the token is not the only control.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
dev/messages-mind-mcp#17
No description provided.