Skip to content

Build with rypt SDK v0.2.0 - #2

Merged
levidurfee merged 2 commits into
mainfrom
sdk-v0.2.0
Nov 2, 2026
Merged

levidurfee merged 2 commits into
mainfrom
sdk-v0.2.0

Conversation

@levidurfee

@levidurfee levidurfee commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

rypt SDK v0.2.0 (x6c-co/rypt#5) allows plain http only to 127.0.0.1 and ::1, and refuses the name localhost. A name is looked up, and DNS could send the token to another machine. https://localhost still works.

Changes

  • go.mod: github.com/x6c-co/rypt v0.1.0 → v0.2.0. go mod tidy also drops four stale moby/* lines from go.sum, which were already unused on main.
  • newRyptForTest passes the httptest URL (http://127.0.0.1:<port>) unchanged, instead of swapping in localhost.
  • The transport-failure case uses http://127.0.0.1:1, so it still reaches the Outage classification through a refused connection.
  • New TestRyptRefusesPlainHTTPToLocalhost: rypt-store relies on the SDK to refuse http://localhost, while 127.0.0.1, [::1] and https://localhost still work.
  • rypt.go and docs/GAPS.md name v0.2.0. The three listed gaps are unchanged in this release.
  • Go 1.27.3 (second commit): CI's govulncheck failed on GO-2026-6809 (CVE-2026-111943). In Go 1.27.2, crypto/x509 does not distrust a set of compromised intermediate certificates, and FinishLogin reaches x509.Certificate.Verify through the WebAuthn library. Go 1.27.3 fixes this. The commit moves the toolchain line in go.mod and the golang image in the Dockerfile; the image sets GOTOOLCHAIN=local, so it ignores go.mod. The image published from main on 2026-10-16 was built with 1.27.2.

Tests

gofmt, go vet, go test -race ./... (14 packages) and govulncheck pass on Go 1.27.3. CI in this repo has not started on pushes or PRs, so it was started by hand on this branch. The changed tests passed 3 runs in a row. A second agent reviewed the diff and found no problems. Nothing in the server config, docs or deploy files passed a plain-http localhost URL to the SDK.

🤖 Generated with Claude Code

https://claude.ai/code/session_01NYjhaGCRVp9GXLUuUZv8g1

levidurfee and others added 2 commits November 2, 2026 00:15
rypt v0.2.0 allows plain http in WithBaseURL only to the addresses
127.0.0.1 and ::1, and refuses the name localhost, because a name is
looked up and DNS could send the token to another machine.
https://localhost still works.

newRyptForTest now passes the httptest URL (http://127.0.0.1:<port>)
unchanged instead of swapping in localhost, and the transport-failure
case uses http://127.0.0.1:1, so it still reaches the Outage
classification through a refused connection. The new
TestRyptRefusesPlainHTTPToLocalhost records that rypt-store relies on
the SDK for this refusal, while 127.0.0.1, [::1] and https://localhost
still work.

rypt.go and docs/GAPS.md name v0.2.0; the three listed gaps are
unchanged in this release. go mod tidy also drops four stale moby/*
go.sum lines that were already unused on main.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NYjhaGCRVp9GXLUuUZv8g1
Go 1.27.2's crypto/x509 does not distrust a set of compromised
intermediate certificates (GO-2026-6809, CVE-2026-111943), and
govulncheck reports that FinishLogin reaches x509.Certificate.Verify
through the WebAuthn library, so CI fails. Go 1.27.3 fixes it. Move
both pins: the toolchain line in go.mod, and the golang image in the
Dockerfile, which sets GOTOOLCHAIN=local and so ignores go.mod.
@levidurfee
levidurfee merged commit 6370c0a into main Nov 2, 2026
5 checks passed
@levidurfee
levidurfee deleted the sdk-v0.2.0 branch November 2, 2026 00:40
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