simplify: remove TLS and hosts file, serve plain HTTP on port 4242#33
Merged
Conversation
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
internal/tls/(5 files) andcmd/mind-map/tls.go— entire TLS subsystemmain.go— remove TLS detection, alwaysListenAndServe, default port4242service.go— removemindtlsimport/usage, default port4242install.sh— remove/etc/hostsmod, TLS cert gen/install,setcapinstall.ps1— remove hosts file mod and TLS setupREADME.md— remove TLS section, update all URLs tohttp://localhost:4242What's preserved
Testing
go build ./...— cleango test ./...— all pass (config, mcp, sync, wiki)go mod tidy— no changes needed11 files changed, -553 lines net