How to Point Go Modules at Chainsaw
Configure the Go module proxy (GOPROXY) to fetch modules through your Chainsaw instance.
Overview
Point Go modules at your Chainsaw instance by setting GOPROXY so every
go get / go mod download routes through the firewall.
chain305.com with your own Chainsaw deployment host
and swap CLIENT_ID / CLIENT_SECRET for credentials issued from the
Access page in the dashboard. The @default segment is the org
slug — confirm yours under Settings → Organization → Slug. Legacy
non-org-scoped URLs return HTTP 400 with error CHW-4314.Prerequisites
- A running Chainsaw instance (see Tutorial 01)
- Client credentials (Client ID and Secret)
- Go installed
Clear Local Caches (First-Time Setup)
go clean -modcache
Environment Variables
export GOPROXY=https://CLIENT_ID:CLIENT_SECRET@chain305.com/chainproxy/repository/@default/gomod
# Internal modules: fetched directly, skip the public checksum database
# export GOPRIVATE=github.com/yourorg/*
Leave GOSUMDB at its default (sum.golang.org) so Go checks every public module against the checksum database; Chainsaw does not do that check for you. Do not add ,direct to GOPROXY: Go would then fetch any module Chainsaw does not serve straight from its source, bypassing your policy.
Verify
Run a go build or go mod download in a module, then confirm with
chainsaw doctor verify-hook and Report → Audit log in the dashboard.
Next Steps
- How to Configure Your Package Manager to Use Chainsaw — All ecosystems in one place
- How to Manage Repositories and Upstream Mirrors