Skip to content

[SECURITY] Unauthenticated /health exposes AUTO_APPLY, emergency stop, storage and org ID #225

Done

Description

@OkiriGabriel

Problem

GET /health needs no authentication (it's the liveness probe, and the IP allowlist skips it), but it returns operational details:

{"status": "ok", "auto_apply": "false", "emergency_stop": false,
 "storage_provider": "memory", "org_id": "acme-corp", "queue_worker": true}

Anyone who can reach the agent learns whether AUTO_APPLY is on (the agent will run changes without approval), whether the emergency stop is engaged, the storage backend, and the platform's org ID. That helps someone planning to abuse webhooks or prompt-inject alerts. #199 / #203 add the exact version too.

Proposed fix

  • /health returns only {"status": "ok"}, plus "version" if we decide that's acceptable.
  • Add GET /status (viewer token, the same auth as /audit) with the current fields plus queue depth and worker state.
  • Update the Docker HEALTHCHECK, k8s probes, docs/API_REFERENCE.md and the website's API page.
  • Tests: /health has no sensitive keys without a token; /status needs a token.

Files

api/server.py, docs/API_REFERENCE.md, k8s/deployment.yaml, tests/test_api.py

Activity

  1. added
    enhancement
    security
    on Nov 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementsecurity

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions