File tree Expand file tree Collapse file tree 3 files changed +4
-1
lines changed
Expand file tree Collapse file tree 3 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ ENV PATH="$PATH:/go/bin"
1717ENV FIPS=true
1818ENV CGO_ENABLED=1
1919ENV MAGEFILE_CACHE=/fleet-server/build/.magefile
20+ ENV MS_GOTOOLCHAIN_TELEMETRY_ENABLED=0
2021ENTRYPOINT [ "mage" ]
2122CMD [ "build:release" ]
2223
@@ -41,7 +42,7 @@ ARG DEV=""
4142ARG SNAPSHOT=""
4243ARG TARGETPLATFORM
4344
44- RUN FIPS=true CGO_ENABLED=1 GCFLAGS="${GCFLAGS}" LDFLAGS="${LDFLAGS}" SNAPSHOT="${SNAPSHOT}" DEV="${DEV}" PLATFORMS="${TARGETPLATFORM}" mage build:release
45+ RUN MS_GOTOOLCHAIN_TELEMETRY_ENABLED=0 FIPS=true CGO_ENABLED=1 GCFLAGS="${GCFLAGS}" LDFLAGS="${LDFLAGS}" SNAPSHOT="${SNAPSHOT}" DEV="${DEV}" PLATFORMS="${TARGETPLATFORM}" mage build:release
4546
4647FROM docker.elastic.co/wolfi/chainguard-base-fips:latest
4748ARG VERSION
Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ As we are using micrsoft/go as a base we follow their conventions.
1414
1515Our FIPS changes require the ` requirefips ` and ` ms_tls13kdf ` buildtags.
1616When compiling ` GOEXPERIMENT=systemcrypto ` and ` CGO_ENABLED=1 ` must be set.
17+ Additionally the ` MS_GOTOOLCHAIN_TELEMETRY_ENABLED=0 ` env var is set to disable telemetry for [ microsoft/go] ( https://github.com/microsoft/go ) .
1718
1819The ` FIPS=true ` env var is used by our magefile as the FIPS toggle.
1920This env var applies to all targets, at a minimum the ` requirefips ` and ` ms_tls13kdf ` tags will be set.
Original file line number Diff line number Diff line change @@ -363,6 +363,7 @@ func environMap() map[string]string {
363363func addFIPSEnvVars (env map [string ]string ) {
364364 env ["GOEXPERIMENT" ] = "systemcrypto"
365365 env ["CGO_ENABLED" ] = "1"
366+ env ["MS_GOTOOLCHAIN_TELEMETRY_ENABLED" ] = "0"
366367}
367368
368369// teeCommand runs the specified command, stdout and stederr will be written to stdout and will be collected and returned.
You can’t perform that action at this time.
0 commit comments