Skip to content

feat: /doctor from Telegram #50

Open

Description

@groupsky

Why

#32 adds /status and /pause from Telegram. Its third command, /doctor [NAME], needs pullgate doctor (#28), which does not exist yet.

Proposal

/doctor [NAME]: the checks of pullgate doctor that need no secrets, run unprivileged. The reply names problems and fixes, never IPs, keys or tokens. As with /status, the listener only writes a request file (doctor) with no data from the message; root reads it and acts. Rate-limit it as /status is.

Done when

  • /doctor and /doctor NAME work as above; tests with the fake Telegram server, including messages from another user or chat (no reply, no request).
  • The reply holds no IP address, key or token (a test).
  • /help lists it.
  • THREAT-MODEL.md: what a stolen bot token or a compromised listener can learn with /doctor, and why that is acceptable.

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