Skip to content

Commit

Permalink
feat(hardening): Apply FIPS hardening to the patcher
Browse files Browse the repository at this point in the history
  • Loading branch information
pgcrooks-sysdig committed Jan 22, 2025
1 parent 2fc1be8 commit 5777a0c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
8 changes: 4 additions & 4 deletions runtimes/cloudformation/Makefile
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
GOOS?=linux
GOARCH?= amd64
GOOS ?= linux
GOARCH ?= amd64

agent-kilt.zip: cmd/handler/handler
cd cmd/handler/ && zip ../../agent-kilt.zip ./handler

cmd/handler/handler:
cd cmd/handler && CGO_ENABLED=0 GOOS=${GOOS} GOARCH=${GOARCH} go build .
cd cmd/handler && CGO_ENABLED=1 GOEXPERIMENT=boringcrypto GOOS=${GOOS} GOARCH=${GOARCH} go build .

clean:
rm agent-kilt.zip || true
rm cmd/handler/handler || true

test:
go test -v ./...
GOEXPERIMENT=boringcrypto go test -v ./...

.PHONY: clean test
1 change: 1 addition & 0 deletions runtimes/cloudformation/cmd/handler/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package main

import (
"context"
_ "crypto/tls/fipsonly"
"encoding/json"
"github.com/Jeffail/gabs/v2"
"os"
Expand Down

0 comments on commit 5777a0c

Please sign in to comment.