Skip to content

simplify: remove TLS and hosts file, serve plain HTTP on port 4242#33

Merged
aniongithub merged 1 commit into
mainfrom
simplify/remove-tls-hosts
May 12, 2026
Merged

simplify: remove TLS and hosts file, serve plain HTTP on port 4242#33
aniongithub merged 1 commit into
mainfrom
simplify/remove-tls-hosts

Conversation

@aniongithub
Copy link
Copy Markdown
Owner

Summary

Remove the entire TLS subsystem and hosts file modification. The server now always serves plain HTTP on 127.0.0.1:4242.

Since all traffic is localhost-only, TLS added zero security value while causing friction on every OS (sudo/admin for certs, hosts file, setcap, Chrome NSS database, etc).

Changes

  • Delete internal/tls/ (5 files) and cmd/mind-map/tls.go — entire TLS subsystem
  • Simplify main.go — remove TLS detection, always ListenAndServe, default port 4242
  • Simplify service.go — remove mindtls import/usage, default port 4242
  • Simplify install.sh — remove /etc/hosts mod, TLS cert gen/install, setcap
  • Simplify install.ps1 — remove hosts file mod and TLS setup
  • Update README.md — remove TLS section, update all URLs to http://localhost:4242

What's preserved

  • Admin/sudo elevation in install scripts (still needed for service install/start/stop)
  • All service management functionality
  • DevContainer config (uses separate port 51888 for dev)

Testing

  • go build ./... — clean
  • go test ./... — all pass (config, mcp, sync, wiki)
  • go mod tidy — no changes needed

11 files changed, -553 lines net

Remove the entire TLS subsystem (local CA generation, OS trust store
installation for macOS/Linux/Windows) and hosts file modification.
The server now always serves plain HTTP on 127.0.0.1:4242.

Since all traffic is localhost-only, TLS added zero security value
while causing friction on every OS (sudo/admin for certs, hosts file,
setcap, Chrome NSS database, etc).

- Delete internal/tls/ (5 files) and cmd/mind-map/tls.go
- Simplify main.go: always ListenAndServe, default port 4242
- Simplify service.go: remove TLS scheme detection, port 4242
- Simplify install.sh: remove /etc/hosts, TLS, setcap blocks
- Simplify install.ps1: remove hosts file and TLS setup blocks
- Update README.md: remove TLS section, URLs to http://localhost:4242
@aniongithub aniongithub merged commit 4874d4f into main May 12, 2026
1 check passed
@aniongithub aniongithub deleted the simplify/remove-tls-hosts branch May 12, 2026 19:32
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