-
Notifications
You must be signed in to change notification settings - Fork 937
Closed
Description
Tests that import github.com/vmware/govmomi/simulator will panic when loading if GODEBUG=fips140=only is set.
This is due to SHA-1 usage in simulator/vpx
govmomi/simulator/vpx/service_content.go
Line 32 in 8d78f54
| InstanceUuid: uuid.NewSHA1(uuid.NameSpaceOID, uuid.NodeID()).String(), |
This failure is also present when running unit tests for simulator:
simulator|main ⇒ GODEBUG=fips140=only go test ./...
panic: crypto/sha1: use of SHA-1 is not allowed in FIPS 140-only mode
goroutine 1 [running]:
crypto/sha1.(*digest).checkSum(0x10145ca80?)
/usr/local/go/src/crypto/sha1/sha1.go:160 +0x180
crypto/sha1.(*digest).Sum(0x140000928c0, {0x0, 0x0, 0x0})
/usr/local/go/src/crypto/sha1/sha1.go:154 +0x6c
github.com/google/uuid.NewHash({0x10167d000, 0x140000928c0}, {0x6b, 0xa7, 0xb8, 0x12, 0x9d, 0xad, 0x11, 0xd1, ...}, ...)
/Users/mlaterman/go/pkg/mod/github.com/google/[email protected]/hash.go:37 +0xbc
github.com/google/uuid.NewSHA1({0x6b, 0xa7, 0xb8, 0x12, 0x9d, 0xad, 0x11, 0xd1, 0x80, 0xb4, ...}, ...)
/Users/mlaterman/go/pkg/mod/github.com/google/[email protected]/hash.go:58 +0x98
github.com/vmware/govmomi/simulator/vpx.init()
/Users/mlaterman/git/govmomi/simulator/vpx/service_content.go:32 +0x2d8
FAIL github.com/vmware/govmomi/simulator 0.521s
? github.com/vmware/govmomi/simulator/esx [no test files]
? github.com/vmware/govmomi/simulator/internal [no test files]
? github.com/vmware/govmomi/simulator/vpx [no test files]
FAIL
Metadata
Metadata
Assignees
Labels
No labels