Awesome Reviewers

Reviewer · Security

Explicit trust boundaries

When documenting or implementing security-sensitive behavior (threat models, authorization checks, isolation guarantees), explicitly and unambiguously state which actors and inputs are trusted versus untrusted, and precisely define what guarantees the system actually enforces at each boundary. Avoid vague wording that could be misread as promising stronger...

Instruction

When documenting or implementing security-sensitive behavior (threat models, authorization checks, isolation guarantees), explicitly and unambiguously state which actors and inputs are trusted versus untrusted, and precisely define what guarantees the system actually enforces at each boundary. Avoid vague wording that could be misread as promising stronger isolation than is actually provided.

Specifically:

  • Identify every actor/input (API clients, containers, images, build inputs, plugins, remote hosts) and state its trust level consistently across all modes (e.g., rootless and rootful must follow the same rules unless explicitly different).
  • State enforcement guarantees at the security boundary precisely. For example, for an authorization layer: “every API request goes through the active AuthZ plugin, the daemon never bypasses its decision, and it never processes a request differently from what was shown to the plugin” — not just “AuthZ-restricted clients are untrusted,” which could wrongly imply the system provides tenant isolation it does not.
  • Don’t claim a guarantee that depends on environment support without saying so. For example, “not applying requested resource limits is in scope” must be qualified with “as long as the relevant cgroup controllers are available,” since the guarantee cannot hold if the host lacks that capability.
  • Clarify the direction of trust for each operation: if a client can be attacked by a malicious server/daemon (e.g., docker cp reading attacker-controlled archive data), state that explicitly as a distinct boundary, rather than leaving it implied by a one-directional model.
  • When a delegated component (plugin, driver) can only enforce policy within its own granted privileges, say so explicitly, and clarify that bugs in that component’s own policy enforcement are not automatically a vulnerability in the core system unless they exceed their granted scope.

Applying this discipline prevents both under-reporting (missing attack surface) and over-reporting (false assumptions about guarantees that don’t exist), and gives developers and security reviewers a precise, actionable reference for what is and isn’t a vulnerability.