Skip to content

[E2-2] API key roles — admin/operator/viewer RBAC #1432

@OneStepAt4time

Description

@OneStepAt4time

Finding: SD-AUTHZ-02 (MEDIUM) | Milestone: M-E2: Identity & Access (#16)

Problem: Any authenticated key can create and revoke other API keys.

Fix: Add role admin/operator/viewer to ApiKey. Key creation/revocation requires admin. Session operations require operator. Transcript/metric reads allow viewer.

Files: src/auth.ts, src/server.ts

Acceptance: An operator key cannot call POST /v1/auth/keys; returns 403.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions