carlos / platform Public

system-pdf-status-gate

carlos system pdf status (GET /api/cli/system/pdf) is read-only but shared the scanning-change gate (apiSystemOperator, CARLOSSTOREOPERATORS only), so a deployment system operator got 403 "changing deployment-wide scanning needs a deployment operator". Seen on a self-hosted staging console on v0.36.2.

Change: the two read-only status doors (pdf status, antivirus status) use a new gate, apiSystemStatusReader, that admits CARLOSSYSTEMOPERATORS or CARLOSSTOREOPERATORS and refuses a member with a door-specific sentence. Non-persons still get a stranger's 404. Antivirus enable/disable and rotate-webhook-key keep the store-operator gate and message unchanged. docs/site/cli.md says who may run each.

Tests: TestSystemStatusDoorsAdmitEitherOperator (red before, green after), TestSystemScanningWritesStayStoreOperatorOnly (guard on the write doors). Census clean. One Astra review.

Commits 2
Discussions 0 0 open
Tasks 0/0 done

Discussions

  • No discussions on this branch yet.

Tasks

  • No tasks yet.

Activity