Skip to content

[SECURITY] Authenticate credential, audit, and docs API endpoints #59

Closed

Description

@OkiriGabriel

Problem

The FastAPI server exposes sensitive routes with no authentication:

  • PUT /orgs/{org_id}/config — writes org API keys (Anthropic, GitHub, cloud, etc.)
  • GET /orgs/{org_id}/config/status — reveals which integrations are configured
  • GET /audit — returns full incident history (AI reasoning, actions, escalation)
  • /orgs/{org_id}/docs/* — upload/read/delete runbooks

The MCP tool configure_org_credentials has the same gap on SSE/HTTP transports — any connected client can store keys for any org_id.

Impact

Anyone who can reach the agent HTTP port can read/write tenant credentials and audit data. This undermines the BYOK multi-tenant model documented in README.

Proposed solution

  1. Add platform-level auth (Bearer admin token or mTLS) on all mutating and sensitive read endpoints
  2. Enforce org-scoped authorization (caller can only access orgs they are permitted for)
  3. Protect MCP credential tools when transport is not stdio
  4. Document auth requirements in docs/API_REFERENCE.md (currently missing for /orgs/{org_id}/config)
  5. Add regression tests asserting 401/403 without valid credentials

References

  • api/server.py (lines 264–338)
  • devops_mcp/registry.py (configure_org_credentials)
  • README.md (BYOK credential registration example)

Activity

  1. added
    enhancement
    security
    on Aug 31, 2026
  2. self-assigned this
    on Oct 15, 2026
  3. added a commit that references this issue on Oct 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementsecurity

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions