Skip to content

[security] authorize(ns) is pub with no gate consult — multi-actor policy bypass #394

@ohdearquant

Description

@ohdearquant

Integration codex security review S-1.

KhiveRuntime::authorize(ns) at crates/khive-runtime/src/runtime.rs:359 is pub and mints a NamespaceToken for any namespace with NO gate consultation. When a real Gate impl ships (replacing AllowAllGate), this bypasses the policy decision the moment something like build_edge/link_many calls authorize() internally.

Multi-actor deployments need authorize() to consult the gate. OSS single-user is unaffected.

Metadata

Metadata

Assignees

No one assigned

    Labels

    adr-alignmentADR v1 series alignment workfollow-upDeferred from another PR

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions