Skip to content

Commit 7380983

Browse files
committed
Add FIPS Compliance
Changes: - Update Dockerfile for FIPS compliance
1 parent 0344817 commit 7380983

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: Makefile

+3-3
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ ifeq ($(TARGET_GOARCH), amd64)
2828
RACE = -race
2929
endif
3030

31-
GOFLAGS ?= -a -mod=vendor -buildvcs=false $(RACE)
31+
GOFLAGS ?= -a -mod=vendor -buildvcs=false -tags="strictfipsruntime" $(RACE)
3232

3333
.DEFAULT_GOAL := help
3434

@@ -65,11 +65,11 @@ verify: ## Run verifications. Example: make verify
6565
.PHONY: verify
6666

6767
build: ## Build the executable. Example: make build
68-
env GOOS=$(TARGET_GOOS) GOARCH=$(TARGET_GOARCH) go build $(GOFLAGS) -o _output/csi-driver-shared-resource ./cmd/csidriver
68+
env GOOS=$(TARGET_GOOS) GOARCH=$(TARGET_GOARCH) GOEXPERIMENT=strictfipsruntime CGO_ENABLED=1 go build $(GOFLAGS) -o _output/csi-driver-shared-resource ./cmd/csidriver
6969
.PHONY: build
7070

7171
build-webhook: ## Build the executable. Example: make build
72-
env GOOS=$(TARGET_GOOS) GOARCH=$(TARGET_GOARCH) go build $(GOFLAGS) -o _output/csi-driver-shared-resource-webhook ./cmd/webhook
72+
env GOOS=$(TARGET_GOOS) GOARCH=$(TARGET_GOARCH) GOEXPERIMENT=strictfipsruntime CGO_ENABLED=1 go build $(GOFLAGS) -o _output/csi-driver-shared-resource-webhook ./cmd/webhook
7373
.PHONY: build-webhook
7474

7575
build-image: ## Build the images and push them to the remote registry. Example: make build-image

0 commit comments

Comments
 (0)