Skip to content

feat: add v0.3.0 CLI diagnostics and opt-in outbound proxies - #24

Merged
abruption merged 4 commits into
mainfrom
feat/v0.3.0-tools
Oct 18, 2026
Merged

abruption merged 4 commits into
mainfrom
feat/v0.3.0-tools

Conversation

@abruption

@abruption abruption commented Oct 17, 2026 •

Copy link
Copy Markdown
Owner

Summary

Progresses the v0.3.0 milestone: refs #17, #18, #19.

  • Add dots-ts cli with the installation socket and transparent interactive execution, plus read-only layered doctor diagnostics and an optional bounded TCP probe.
  • Add default-off localhost SOCKS5/HTTP proxy configuration, separate desired/running state, and explicit guarded apply with process/socket identity checks and rollback. Changed configuration cannot be applied from an SSH session. Defer interruption signals through bounded restart/recovery.
  • Install both companion helpers and preserve node identity. Source installations now need four files from the same revision: setup, shim, dots-ts, and dots_proxy.py.
  • Add English/Korean usage and private HTTPS API recipes with explicit proxy routing, TLS verification, application authentication, and least-privilege policy guidance.
  • Set development VERSION to 0.3.0 and document unreleased changes.

Validation

  • Bash syntax and ShellCheck pass.
  • Actual Python 3.8: 22 CLI/doctor tests pass; 31 proxy tests complete (30 pass, one Linux-only skip).
  • Actual Python 3.13: five isolated HTTPS/API recipe tests pass, including authentication rejection, certificate rejection, closed proxy, response redaction, and NO_PROXY handling.
  • Linux CI passed all 149 offline tests on each of Python 3.11 and 3.13, including installer tests; Bash syntax, ShellCheck, and GitGuardian checks passed. Final validation commit: 6b49024.
  • Read-only candidate smoke against the existing v0.2 Dots installation confirmed Running backend, socket response, daemon processes, and TCP reachability. Doctor correctly reported the two new helpers missing from that older installation. No live daemon/configuration/authentication state was changed.

Live acceptance evidence

  • Independent Dots terminal: native proxy enable/disable, SOCKS5 and HTTP CONNECT forwarding, and final strict-host-key external SSH recovery.
  • Real tailnet HTTPS test API through both native proxies: 10/10 checks passed (200 authenticated response, missing/wrong token 401, forbidden endpoint 403, and untrusted certificate rejection).
  • Separate live policy-denial experiment with server-alive control: reachable → timeout under restriction → reachable after exact policy restoration.
  • Temporary server stopped and test credentials removed; original daemon configuration and tailnet policy restored.

See the PR validation comments for dated evidence and precise scope. These were dedicated test endpoints, not a production API integration. External SSH during the brief enabled phase, live forced-failure rollback, and VM replacement were not tested. Milestone issues remain open for review; this PR does not publish a tag/release or deploy the complete v0.3 installation.

@abruption abruption added this to the v0.3.0 milestone Oct 17, 2026
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 17, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-17T23:34:39.682551Z 84dc138 PR opened
🔒 Security Review ✅ Completed 2026-10-17T23:29:07.738639Z 84dc138 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@abruption

Copy link
Copy Markdown
Owner Author

Additional validation on Dots (2026-10-18 KST)

Candidate revision: 6b49024. Connected via SSH with strict host-key verification and extracted tracked source into a private disposable directory, separate from the existing installation.

  • 149/149 tests passed on Dots, Python 3.13.5, in 29.899 seconds. Includes Linux-specific installer/process checks and the isolated HTTPS/CONNECT recipe fixtures.
  • Candidate raw CLI version exactly matched the installed CLI's stdout, stderr and exit status.
  • Live process identification, process start identity and Unix socket ownership passed; backend Running and authenticated; shim/sshd/tailscaled identified as running.
  • Desired and running native outbound proxies both disabled; no startup proxy flags and no pending restart.
  • Explicit doctor TCP probes reached the SSH port of the desktop and both server peers. The laptop probe timed out; the daemon's peer status independently reported that peer offline. This does not establish the cause of its offline state.
  • Doctor exited 1 as expected against the older v0.2 installation because the new helpers are not installed there; individual backend/authentication/socket/TCP results were evaluated separately.
  • The original daemon identity and socket ownership remained intact after probes. Installed files, authentication state and proxy settings were not changed.

These results validate candidate execution in Dots and existing tailnet TCP reachability. They do not validate live native SOCKS5/HTTP forwarding, real private API authentication or tailnet policy denial. Native proxy apply/restart remains a separate acceptance step requiring an independent Dots terminal as documented.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 84dc138777

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread tests/test_cli_doctor.py Resolved
Comment thread docs/private-http-api.md Resolved
Comment thread dots-ts Resolved
Comment thread docs/private-http-api.md Resolved
@abruption

Copy link
Copy Markdown
Owner Author

Native proxy trial completed on Dots

The user ran the staged trial from the independent Dots terminal on 2026-10-18 08:35:16–08:35:21 KST (2026-10-17 23:35:16–23:35:21 UTC), using the candidate proxy module from 6b49024.

Observed in the persisted result and independently checked afterward over strict-host-key SSH:

  • Native SOCKS5 on localhost:21080 and HTTP proxy on localhost:21081 enabled successfully; desired/running configuration matched.
  • SOCKS5 remote-name CONNECT and HTTP CONNECT both reached an existing tailnet peer's SSH service and received its SSH identification banner. No target SSH authentication or commands were attempted.
  • Both proxies disabled successfully; daemon returned Running, no pending restart, and the originally absent outbound-proxy.json was removed.
  • Follow-up external SSH authentication and command execution succeeded with StrictHostKeyChecking=yes. Both trial listener ports were independently confirmed closed.

Evidence: result-20261017T233516Z-979.jsonl, final passed=true, restored=true.

This establishes live native proxy forwarding and final SSH recovery. External SSH during the brief enabled phase was not independently sampled. Real private HTTPS API authentication, policy-denial cases, forced rollback failure paths, and VM replacement remain outside this trial. No release or merge performed.

@abruption

Copy link
Copy Markdown
Owner Author

Live network-policy denial check (2026-10-18 KST)

Using the candidate doctor TCP probe from Dots through its real Tailscale daemon:

Phase SSH :22 HTTPS :21443 Test HTTPS :21444
Original policy reachable reachable reachable
Temporary TCP restriction reachable reachable timeout
Original policy restored reachable reachable reachable

During the restriction, a local TLS-verified authenticated request to :21444 still returned HTTP 200. Effective packet-filter inspection confirmed TCP :21444 was absent from allowed destination ranges. The temporary change narrowed the existing all-to-all rule for this test port; it did not establish a permanent least-privilege deployment. Existing application grants and SSH rules were retained. The policy test explicitly used TCP (the unspecified-protocol test also considers UDP).

The original policy was restored and verified byte-for-byte after reloading the admin editor. External strict-host-key SSH to Dots remained available. This proves a real network-policy denial separately from application authentication; it does not yet claim an authenticated API request through the native proxies. The HTTPS test server and staged independent-terminal runner are ready for that next step.

@abruption

Copy link
Copy Markdown
Owner Author

Live authenticated HTTPS acceptance: passed

On 2026-10-18 08:43:58–08:44:10 KST, the user ran the independent-terminal trial on Dots using the candidate proxy module from 6b49024. The destination was a disposable HTTPS API listening only on the Mac's Tailscale address, with a dedicated test certificate and bearer credential.

10/10 HTTPS checks passed across native HTTP CONNECT and SOCKS5h proxies:

Check HTTP proxy SOCKS5h
Valid token /health, exact expected JSON 200 200
Missing token 401 401
Incorrect token 401 401
Authenticated but forbidden endpoint 403 403
Untrusted server certificate curl 60 curl 60

The API server's sanitized request log independently matched the success/rejection responses. No tokens or response bodies are included in the evidence.

Both proxies were then disabled. Follow-up strict-host-key SSH authentication and command execution succeeded; backend Running, no pending configuration, both proxy ports closed, and original absent configuration restored. Evidence: result-20261017T234358Z-1293.jsonl, final passed=true/restored=true/private_https_api=passed.

Network policy denial was validated separately in the preceding comment: reachable → restricted timeout with server alive → reachable after policy restoration. The HTTPS runner correctly says tailnet_policy_denial=not_tested because it did not itself perform that separate policy experiment.

Cleanup completed: temporary API server stopped, both server listener ports closed, Dots test token/public certificate removed, and Mac test token/private key/certificate removed. Sanitized evidence and scripts retained. Original tailnet policy remains restored. No merge/release performed.

Limitations: dedicated test API (not an existing production integration); external SSH during the brief proxy-enabled phase was not independently sampled; live forced-failure rollback and VM replacement were not part of this run.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant