Skip to content

External control API and auth keys #3

Open

Description

@tdeverx

Goal

Create a REST API or local control API that allows external tools and optional companion interfaces to operate Contained safely.

Relationships

Potential foundation for the web UI in #2 and AI-assisted workflows in #6. Should use backend abstractions from #36 once those boundaries are decided.

Research / design checklist

  • Define the threat model for local and network access.
  • Decide whether the API should be HTTP, local-only IPC, app intents, or another transport.
  • Identify the smallest useful endpoint set.
  • Decide which APIs should stay read-only until the security model is proven.
  • Confirm how API calls flow through existing command builders and app state.

Implementation checklist

  • Keep CLI command construction behind ContainerCommands and ContainerClient.
  • Add Settings UI for key creation, rotation, and revocation before write actions are exposed.
  • Add tests for request validation, auth checks, and command routing decisions.
  • Update docs/wiki with API status, limits, and security expectations.

Acceptance criteria

  • API design avoids exposing secrets or privileged actions accidentally.
  • Auth keys have clear lifecycle and storage behavior.
  • Read-only and write-capable endpoints are explicitly separated.
  • Docs explain supported use cases and unsupported risks.

Activity

  1. added this to the future milestone on Jun 27, 2026
  2. changed the title [-]RestAPI[/-] [+]External control API and auth keys[/+] on Jul 1, 2026
  3. added
    other
    app
    and removed on Jul 1, 2026
  4. 1 remaining item

  5. added
    low
    needs-design
    repo
    planned
    and removed
    needs-design
    on Jul 1, 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

    appbackendlowotherplannedrepo

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions