Skip to content

[Bug]: API Keys menu missing in UI even for owner, fresh deploy with ENCRYPTION_KEY #2388

@legolas-pro

Description

@legolas-pro

Summary

API Keys section does not appear in the left sidebar UI even when logged in as an organization owner. This happens on a fresh deploy with ENCRYPTION_KEY set before first login.

Environment

  • Image: ghcr.io/decocms/mesh/mesh:latest
  • Deployment: Docker Swarm
  • Auth: email/password (default)
  • ENCRYPTION_KEY set in service env before first login

Steps to Reproduce

  1. Fresh deploy MCP Mesh with ENCRYPTION_KEY defined.
  2. Create user (owner).
  3. Create organization “Dinamo”.
  4. Set organization as active.
  5. Log in to UI and check left sidebar.

Expected

  • “API Keys” appears in left sidebar for organization owner.

Actual

  • “API Keys” menu item is missing.
  • Reproduces across browsers.

Evidence

  • Migrations run successfully and include apikey table:

    • apikey
      ✅ Better Auth migrations completed successfully
  • Org activation request returns 200:
    - POST /api/auth/organization/set-active 200

  • No API key related UI is visible even as owner.

Notes

  • I fully removed the database volume and redeployed to avoid encryption key mismatch.
  • Issue still persists after fresh user/org creation and org activation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions