Skip to content

x/build: restrict outbound network access from builds by default #30612

@bradfitz

Description

@bradfitz

We should make sure our tests never do outbound network requests by default, or that we only hit endpoints that we control.

For instance, the longtest builder is often failing now on:

--- FAIL: TestScript (0.00s)
    --- FAIL: TestScript/mod_gopkg_unstable (54.35s)
        script_test.go:188: 
            > env GO111MODULE=on
            > cp go.mod.empty go.mod
            > go get -d gopkg.in/dummy.v2-unstable
....
            go: golang.org/x/[email protected]: git -c protocol.version=0 fetch --unshallow -f origin refs/heads/*:refs/heads/* refs/tags/*:refs/tags/* in $WORK/gopath/pkg/mod/cache/vcs/4a22365141bc4eea5d5ac4a1395e653f2669485db75ef119e7bbec8e19b12a21: exit status 128:
            	fatal: remote error: Access denied to IP 35.193.215.129

... because we're hitting some Gerrit quota issue it seems.

I'm going to firewall outbound port 443 and port 22 connections for now and set the GOPROXY to our existing private Athens service on GKE to fix the longtest issue above.

/cc @dmitshur @bcmills

Metadata

Metadata

Assignees

No one assigned

    Labels

    Buildersx/build issues (builders, bots, dashboards)FrozenDueToAgeNeedsFixThe path to resolution is known, but the work has not been done.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions