Skip to content

v0.2.0 - #7

Merged
levidurfee merged 4 commits into
mainfrom
development
Nov 1, 2026
Merged

levidurfee merged 4 commits into
mainfrom
development

Conversation

@levidurfee

Copy link
Copy Markdown
Contributor

The v0.2.0 release, step 2 of the release steps in CONTRIBUTING.md. After the merge, the merge commit on main gets the tag v0.2.0.

Changes since v0.1.0 (see CHANGELOG.md):

🤖 Generated with Claude Code

https://claude.ai/code/session_01NYjhaGCRVp9GXLUuUZv8g1

levidurfee and others added 4 commits November 1, 2026 23:08
WithBaseURL allowed plain http for localhost, 127.0.0.1 and ::1. A name
is looked up, and the lookup can reach DNS: when the hosts file does not
list localhost, or when DNS comes first in nsswitch. The resolver then
asks for localhost.<search domain> first, so whoever controls that zone
can answer with another machine, which receives the token in clear text.
A review reproduced this with the old code in a network namespace.

Plain http is now allowed only when the host is exactly 127.0.0.1 or
::1. IP literals are never looked up, and net/http never proxies them.
The host no longer needs lowercasing, which existed only so that
net/http's proxy bypass matched "LOCALHOST".

This breaks callers that pass http://localhost; they can use
http://127.0.0.1, http://[::1] or https://localhost.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NYjhaGCRVp9GXLUuUZv8g1
Refuse plain http to the name localhost
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NYjhaGCRVp9GXLUuUZv8g1
Move the changelog entries to v0.2.0
@levidurfee
levidurfee merged commit 6e37f04 into main Nov 1, 2026
6 checks passed
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