Skip to content

docs: add private HTTP API recipe with least-privilege access #19

Closed

Description

@abruption

Request

Add one minimal private HTTP API recipe that demonstrates an explicitly configured Dots process reaching a permitted service over the tailnet.

Prerequisites and status

This proposed v0.3.0 example depends on the opt-in outbound proxy in #18 and should use the socket-aware CLI/diagnostics in #17 where appropriate. It is not an implemented or live-tested integration yet. The current port 18089 daemon transport shim must not be used as if it were the proposed application proxy.

Requested changes

  • Use generic placeholders such as <API_HOST>, <API_PORT>, <SOURCE_IDENTITY>, and <DESTINATION_IDENTITY>. Do not publish the maintainer's real hosts, tailnet identifiers, credentials, or infrastructure layout.
  • Show a least-privilege Tailscale grants example permitting only the intended source identity to the designated destination and TCP API port. Explain that broader existing policy can still allow access and must be reviewed; adding a narrow grant does not revoke broad access.
  • Require application authentication independently of tailnet membership and network grants. Use placeholders and a safe local secret-input method rather than embedding credentials in URLs, committed files, command history, or output.
  • Use HTTPS with certificate verification for credential-bearing requests, and explain any local test-only HTTP fixture separately. Do not recommend disabling TLS verification.
  • Provide one small read-only client request, explicitly opted into the localhost outbound proxy for that process only, with bounded connection/request timeouts and proxy-side name resolution where needed.
  • Explain server binding, the allowed port, application authorization, and how to diagnose DNS/proxy, network-policy, TLS, and HTTP authentication failures separately.
  • Include setup prerequisites, expected sanitized output, cleanup, and matching English/Korean instructions.
  • State plainly that this process configuration does not automatically propagate to MCP servers, connected plugins, or browsers.

Acceptance criteria

  • The recipe has no real credentials or private infrastructure identifiers and does not modify global proxy settings.
  • The policy example is limited to the chosen source, destination, protocol, and port, and explains how existing broader rules affect it.
  • Authorized live validation demonstrates a read-only request through the outbound proxy with valid application authentication.
  • Separate negative checks show that a disallowed network identity/port is blocked and invalid or absent application credentials are rejected even when network access is allowed.
  • Sensitive headers, tokens, and response data are omitted or redacted in examples and verification evidence.
  • Validation records distinguish local fixtures, live end-to-end checks, and untested behavior; a healthy daemon or local proxy alone does not satisfy the recipe.
  • Cleanup and proxy disable/rollback steps preserve existing tailnet access.

Scope

One generic private HTTP API example only. Serve, Aperture, NAS integration, full-device VPN routing, and exit-node support are outside v0.3.0 scope. This issue does not change the findings tracked in #16.

Activity

  1. added this to the v0.3.0 milestone on Oct 14, 2026
  2. added
    priority: medium
    on Oct 17, 2026
  3. abruption commented on Oct 17, 2026

    @abruption
    OwnerAuthor

    Priority and dependency update — 2026-10-18

    Priority: medium, milestone v0.3.0. The live recipe depends on #18 providing a verified application proxy; use #17 diagnostics to distinguish transport, DNS, TLS and application errors.

    Choose a disposable read-only test endpoint with generic placeholders, a valid HTTPS certificate and application authentication before the live recipe is validated. Exercise valid/absent/invalid credentials and an explicitly denied network case separately. Tailnet TCP reachability and an SSH greeting are prerequisite observations, not evidence that this authenticated HTTP recipe already works.

    Proceed with the executable recipe after #18's proxy paths and rollback have been verified. Vault integration remains deferred and is not the validation target for this issue.

  4. abruption commented on Oct 19, 2026

    @abruption
    OwnerAuthor

    Completed in PR #24 and published in v0.3.0. Offline CI and authorized live CLI/proxy/HTTPS/policy checks are documented in the PR. Remaining startup/context/version/update improvements are tracked separately in #25–#31; lifecycle research continues in #20. Retaining this issue in its shipped v0.3.0 milestone.

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

    priority: medium

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions