-
Notifications
You must be signed in to change notification settings - Fork 170
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add fips validation scripts and ci step
- Loading branch information
1 parent
c235d34
commit d3ced97
Showing
3 changed files
with
33 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#!/bin/bash | ||
|
||
# The small go program below will validate that a | ||
# FIPS validated crypto lib | ||
cat > ./hack/fips/main.go << 'EOF' | ||
package main | ||
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the Apache License 2.0. | ||
import ( | ||
_ "crypto/tls/fipsonly" | ||
utillog "github.com/Azure/ARO-RP/pkg/util/log" | ||
) | ||
func main() { | ||
log := utillog.GetLogger() | ||
log.Println("FIPS mode enabled") | ||
} | ||
EOF | ||
trap "rm ./hack/fips/main.go" EXIT | ||
echo "Attempting to run program that requires FIPS crypto" | ||
go run ./hack/fips/main.go |