Skip to content

Debug controls and guards

Two small capabilities with outsized consequences. Debug controls decide whether internal mechanics are exposed; guards decide who may reach the system surfaces at all.

Debug controls are read and written, not toggled locally

observability.internal_mechanics_debug.v1

Two operations exist, reading the setting and writing it. Internal mechanics visibility is a control-plane record, so what a deployment exposes is one answerable value rather than a flag set per process.

This follows the platform's rule that behaviour comes from control-plane state rather than from environment switches. A node or a runtime does not decide its own debug posture. See Control plane as source of truth.

Three guards over the system surfaces

Guard Requires
Require system A system principal
Require bootstrap operator An actor authorised to operate bootstrap
Require runtime bootstrap reader The configured runtime bootstrap reader actor

The system surfaces are not governed by ordinary workspace roles, because they sit above tenancy. A workspace owner is authoritative inside a workspace and is not thereby authorised to change what a deployment is.

The reader guard refuses two ways

forbidden: bootstrap runtime reader actor is not configured
forbidden: bootstrap runtime reader actor required

The two messages separate a deployment that has not configured the reader from a caller that is not it. Without the distinction, an unconfigured deployment and an unauthorised caller would look identical, and only one of them is a permissions problem.

The system principal is decided by context

A system actor is authorised only when the auth context marks the caller a system principal. The name alone carries nothing.

flowchart LR
  RQ["Request<br/>actor: system"]
  subgraph AUTHZ["AUTHORISATION PATH"]
    direction TB
    AC[("Auth context<br/>from the credential")]
    SP{{"System principal check"}}
    RB{{"Role evaluation"}}
    AC --> SP
    SP --> RB
  end
  RQ --> SP
  SP -->|"marked"| OK["Permitted"]
  SP -.->|"not marked"| NO["Refused"]

The check reads the auth context, which comes from the credential, and never the actor name in the request. It sits in front of role evaluation, so no role binding can grant what the context does not carry.

That check happens in the ordinary authorisation path, before roles are consulted, so a request cannot acquire system authority by naming it. See RBAC evaluation.

Why guards are their own capability

Putting the three requirements in one place means a surface is protected by a named guard rather than by each endpoint re-implementing a check. Adding a system surface means naming which guard protects it, which is a decision that is visible in review.

What debug exposure does not change

Turning internal mechanics on exposes more about how the platform reached a result. It does not expose payload bodies, which stay in your storage and are reachable only through the governed payload access path. See The metadata-only ingest rule.