Skip to content

v0.3.1

Latest

Choose a tag to compare

@github-actions github-actions released this 22 Nov 21:23
86028c2

Thumbs up

Container image

docker pull ghcr.io/pigyon/tanuki:0.3.1

Platforms: linux/amd64, linux/arm64
Digest: sha256:4c5d25fa54ff2bdd0a0eb61e6956357235b7001e2f9fdabe59af8dae4dcda64d

Pin this release in compose.yaml:

TANUKI_TAG=0.3.1 docker compose up -d

Fixes two ways a target's org name could reach the Anthropic API through percent-encoded URLs, and rebuilds the image on patched Go and x/net releases.

Fixes

  • Percent-encoded hostnames are detected whole. In a URL like redirect_uri=https%3A%2F%2Facme.com%2Fcb, the hex digits of the escape were read as part of the hostname, so the target was registered as 2facme.com with the org name 2facme. In an engagement with no scope entry for the target, a later bare Acme or acme_prod was then sent upstream unrewritten. The leak gate didn't catch it because it checks mapped org names. %40 did the same to email addresses. The rewrite also damaged the encoded URL: %2F%2Fapi.acme.com became %2F%<fiction>.
  • An org name right after an encoded delimiter is rewritten. In https%3A%2F%2Fgithub.com%2Facme%2Frepo, the F of %2F was read as part of the next word, so the org rule never matched acme. The leak gate uses the same word boundaries, so it didn't refuse the request either. This happened after any delimiter escape ending in A–F (%2F, %3D, %3A, %5B, …), with or without a scope, and was also present in 0.3.0.
  • The encoded forms %3A%2F%2F, %40 and %2F now count as host markers, so an encoded return URL on an uncommon TLD (%2F%2Fportal.acme.in%2F) is detected too.

Upgrading

Run ./tanuki map on any engagement you used with 0.3.0. A real value that begins with 2f, 3a or 40 (for example 2facme.com) came from an encoded URL. That engagement may have sent the target's name upstream, and the stale row keeps rewriting encoded URLs wrongly, so start a fresh engagement with ./tanuki init. Run ./tanuki verify over any report drafted on 0.3.0.

Build and supply chain

  • Built with Go 1.27.4 and x/net 0.62.0. The v0.3.0 image was built with go1.27.3 and x/net 0.61.0, and is flagged for GO-2026-6859 (net/http) and for GO-2026-6860 and GO-2026-6866 (x/net/html). Tanuki isn't exposed to any of them: the proxy reads the whole request body before it writes any headers, and it uses only x/net/publicsuffix, not x/net/html. Scanners will still flag the old image; this one scans clean.
  • The builder image is pinned by tag and digest, so a rebuild uses the same toolchain, and Dependabot proposes each Go release.
  • CI tests on Go 1.27, the release the image ships with (it was testing on 1.26), with golangci-lint v2.15.0 (was v2.13.2).
  • golang.org/x/sys 0.50.0, docker/login-action 4.8.0.

What's Changed

  • deps: bump golang.org/x/net from 0.61.0 to 0.62.0 in the go-dependencies group by @dependabot[bot] in #20
  • ci: bump docker/login-action from 4.6.0 to 4.7.0 in the actions group by @dependabot[bot] in #19
  • deps: bump golang.org/x/sys from 0.49.0 to 0.50.0 in the go-dependencies group by @dependabot[bot] in #21
  • ci: bump docker/login-action from 4.7.0 to 4.8.0 in the actions group by @dependabot[bot] in #22
  • Detect percent-encoded hostnames whole, and ship the Go release CI tests by @nedlir in #23
  • docs: point the compose pin example at 0.3.1 by @nedlir in #24
  • Treat the end of a percent-escape as a word edge by @nedlir in #25

Full Changelog: v0.3.0...v0.3.1