Skip to content

[P0][security] Object apiEnabled/apiMethods not enforced by REST #1889

Description

@os-zhuang

Part of the metadata liveness audit umbrella #1878 (P0 security cluster).

Problem

Object apiEnabled / apiMethods are not enforced by the REST layer. An object cannot actually be hidden from the API via these flags, nor can its allowed HTTP methods be restricted — the REST handlers serve every registered object regardless of these declarations. Authors who set apiEnabled: false expecting an object to be API-invisible get the opposite.

Decision required (enforce or remove)

  • Enforce: gate the REST routes on apiEnabled and validate the request method against apiMethods, returning 404/405 as appropriate.
  • Remove: drop apiEnabled/apiMethods from ObjectSchema if API exposure will always be all-or-nothing.

Evidence

  • docs/audits/2026-06-objectschema-property-liveness.md

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority:p0Critical: blocker, must ship before MVPsecurity

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions