Skip to content

Commit

Permalink
[fips] - Enable fips on select component
Browse files Browse the repository at this point in the history
This would enable *fipsonly* on the following component:
- kubelet
- kubectl
- kube-controller-manager
- kube-scheduler

The apiserver is currently being held back because not all client is going to be fips.
Especially in non govcloud environment.

datadog:patch
  • Loading branch information
nyodas committed Feb 6, 2025
1 parent 52ece2b commit db35ec8
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/dd-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: 1.22
go-version: 1.23
- name: Set env
run: echo SANITIZED_TARGET_PLATFORM=${KUBE_BUILD_PLATFORM/\//-} >> $GITHUB_ENV
env:
Expand All @@ -36,7 +36,8 @@ jobs:
env:
KUBE_BUILD_PLATFORMS: ${{ matrix.platform }}
KUBE_RELEASE_RUN_TESTS: n
run: make quick-release CGO_ENABLED=1 KUBE_CGO_OVERRIDES="kube-apiserver kube-controller-manager kube-scheduler kubelet" KUBE_BUILD_PLATFORMS=$KUBE_BUILD_PLATFORMS
GOFLAGS: "-tags=fips"
run: make quick-release CGO_ENABLED=1 KUBE_CGO_OVERRIDES="kube-apiserver kube-controller-manager kube-scheduler kubelet" KUBE_BUILD_PLATFORMS=$KUBE_BUILD_PLATFORMS GOFLAGS=$GOFLAGS
- name: Calculate checksums
id: calculate_checksums
shell: bash
Expand Down
6 changes: 6 additions & 0 deletions cmd/kube-controller-manager/fips.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
//go:build fips

package main

// enforce fips compliance if boringcrypto is enabled
import _ "crypto/tls/fipsonly"
6 changes: 6 additions & 0 deletions cmd/kube-scheduler/fips.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
//go:build fips

package main

// enforce fips compliance if boringcrypto is enabled
import _ "crypto/tls/fipsonly"
6 changes: 6 additions & 0 deletions cmd/kubectl/fips.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
//go:build fips

package main

// enforce fips compliance if boringcrypto is enabled
import _ "crypto/tls/fipsonly"
6 changes: 6 additions & 0 deletions cmd/kubelet/fips.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
//go:build fips

package main

// enforce fips compliance if boringcrypto is enabled
import _ "crypto/tls/fipsonly"

0 comments on commit db35ec8

Please sign in to comment.